From c2720956af6013317001b25db5b7699d19576699 Mon Sep 17 00:00:00 2001 From: linbo <1034003879@qq.com> Date: Wed, 11 Nov 2026 14:20:58 +0800 Subject: [PATCH] config: enable 209 dual arms, LiteS001 hands and mixed-protocol neck --- cmvr-es/config/devices/arm/neck_arm.pb.txt | 28 +++++++++++ cmvr-es/config/devices/dexhand/dexhand.pb.txt | 13 ++++- .../config/devices/motor/neck_motors.pb.txt | 49 +++++++++++++++++++ cmvr-es/config/manager/device_manager.pb.txt | 30 ++++++++++-- 4 files changed, 116 insertions(+), 4 deletions(-) create mode 100644 cmvr-es/config/devices/arm/neck_arm.pb.txt create mode 100644 cmvr-es/config/devices/motor/neck_motors.pb.txt diff --git a/cmvr-es/config/devices/arm/neck_arm.pb.txt b/cmvr-es/config/devices/arm/neck_arm.pb.txt new file mode 100644 index 00000000..b5b8fd15 --- /dev/null +++ b/cmvr-es/config/devices/arm/neck_arm.pb.txt @@ -0,0 +1,28 @@ +# Independent joint-only neck; joint order follows motor IDs 1, 2, 3. +arm { + robot_arms { + id: "neck_arm" + motor { + motor_system_id: "neck_can_motors" + motor_group_ids: "neck_v236" + motor_group_ids: "neck_v238" + dof: 3 + joint_names: "neck_joint_1" + joint_names: "neck_joint_2" + joint_names: "neck_joint_3" + upd_freq: 50 + } + motion { + joint_trajectory_smoother { + sample_period_s: 0.02 + quintic_bspline { control_point_spacing_rad: 0.1 } + } + move_j { + settle_timeout_s: 2.0 + settle_position_tolerance_rad: 0.002 + settle_velocity_tolerance_rad_s: 0.02 + settle_stable_sample_count: 3 + } + } + } +} diff --git a/cmvr-es/config/devices/dexhand/dexhand.pb.txt b/cmvr-es/config/devices/dexhand/dexhand.pb.txt index ed9d980c..f75cdc56 100644 --- a/cmvr-es/config/devices/dexhand/dexhand.pb.txt +++ b/cmvr-es/config/devices/dexhand/dexhand.pb.txt @@ -20,7 +20,7 @@ dexhand { model: "ROH-LiteS001" has_tactile_feedback: false oymotion_ap001 { - can_interface: "can0" + can_interface: "b5d2can0" hand_id: 2 master_id: 1 command_timeout_ms: 255 @@ -81,4 +81,15 @@ dexhand { has_tactile_feedback: true zero_sim_touch {} } + dexhands { + id: "left_hand_lites001" + model: "ROH-LiteS001" + has_tactile_feedback: false + oymotion_ap001 { + can_interface: "b5d2can1" + hand_id: 2 + master_id: 1 + command_timeout_ms: 255 + } + } } diff --git a/cmvr-es/config/devices/motor/neck_motors.pb.txt b/cmvr-es/config/devices/motor/neck_motors.pb.txt new file mode 100644 index 00000000..a50fc3a7 --- /dev/null +++ b/cmvr-es/config/devices/motor/neck_motors.pb.txt @@ -0,0 +1,49 @@ +# Neck: CAN2, ID1 V2.36; ID2/3 V2.38. Output shaft units: rad, rad/s. +motor { + id: "neck_can_motors" + motor_groups { + id: "neck_v236" + bus_type: MOTOR_BUS_CAN + vendor: MOTOR_VENDOR_LINGKONG + protocol: MOTOR_PROTOCOL_LINGKONG_CAN + can { channel_id: 2 } + motors { + motors { + id: 1 + joint_name: "neck_joint_1" + gear_ratio: 10 + limit_q_lb: -3.14 + limit_q_ub: 3.14 + limit_qd: 10 + lingkong { response_timeout_ms: 100 reached_position_tolerance_rad: 0.001 } + } + } + } + motor_groups { + id: "neck_v238" + bus_type: MOTOR_BUS_CAN + vendor: MOTOR_VENDOR_LINGKONG + protocol: MOTOR_PROTOCOL_LINGKONG_CAN_V2_38 + can { channel_id: 2 } + motors { + motors { + id: 2 + joint_name: "neck_joint_2" + gear_ratio: 10 + limit_q_lb: -3.14 + limit_q_ub: 3.14 + limit_qd: 10 + lingkong { response_timeout_ms: 100 reached_position_tolerance_rad: 0.001 } + } + motors { + id: 3 + joint_name: "neck_joint_3" + gear_ratio: 10 + limit_q_lb: -3.14 + limit_q_ub: 3.14 + limit_qd: 10 + lingkong { response_timeout_ms: 100 reached_position_tolerance_rad: 0.001 } + } + } + } +} diff --git a/cmvr-es/config/manager/device_manager.pb.txt b/cmvr-es/config/manager/device_manager.pb.txt index d8ad7752..7d02c685 100644 --- a/cmvr-es/config/manager/device_manager.pb.txt +++ b/cmvr-es/config/manager/device_manager.pb.txt @@ -263,18 +263,42 @@ device_manager { id: "tchl_dual_arm_motors" type: DEVICE_TYPE_MOTOR_SYSTEM config_file: "devices/motor/tchl_dual_arm_motors.pb.txt" - enable: false + enable: true } devices { id: "right_tchl_arm" type: DEVICE_TYPE_ROBOT_ARM config_file: "devices/arm/tchl_dual_arm.pb.txt" - enable: false + enable: true } devices { id: "left_tchl_arm" type: DEVICE_TYPE_ROBOT_ARM config_file: "devices/arm/tchl_dual_arm.pb.txt" - enable: false + enable: true + } + devices { + id: "right_hand_lites001" + type: DEVICE_TYPE_DEXHAND + config_file: "devices/dexhand/dexhand.pb.txt" + enable: true + } + devices { + id: "left_hand_lites001" + type: DEVICE_TYPE_DEXHAND + config_file: "devices/dexhand/dexhand.pb.txt" + enable: true + } + devices { + id: "neck_can_motors" + type: DEVICE_TYPE_MOTOR_SYSTEM + config_file: "devices/motor/neck_motors.pb.txt" + enable: true + } + devices { + id: "neck_arm" + type: DEVICE_TYPE_ROBOT_ARM + config_file: "devices/arm/neck_arm.pb.txt" + enable: true } }