diff --git a/cmvr-es/config/devices/arm/xiaozhao_lingkong_neck.pb.txt b/cmvr-es/config/devices/arm/xiaozhao_lingkong_neck.pb.txt index ff7a4061..1d1908d4 100644 --- a/cmvr-es/config/devices/arm/xiaozhao_lingkong_neck.pb.txt +++ b/cmvr-es/config/devices/arm/xiaozhao_lingkong_neck.pb.txt @@ -21,7 +21,7 @@ arm { } move_j { settle_timeout_s: 2.0 - settle_position_tolerance_rad: 0.002 + settle_position_tolerance_rad: 0.02 settle_velocity_tolerance_rad_s: 0.02 settle_stable_sample_count: 3 } diff --git a/cmvr-es/config/devices/arm/xiaozhao_tchl_arm.pb.txt b/cmvr-es/config/devices/arm/xiaozhao_tchl_arm.pb.txt index 04e0ceff..682ae117 100644 --- a/cmvr-es/config/devices/arm/xiaozhao_tchl_arm.pb.txt +++ b/cmvr-es/config/devices/arm/xiaozhao_tchl_arm.pb.txt @@ -40,7 +40,7 @@ arm { joints { joint_name: "joint3-right" q_lb: -3.14 q_ub: 3.14 qd: 1.0 qdd: 20.0 } joints { joint_name: "joint4-right" q_lb: -2.1 q_ub: 0 qd: 1.0 qdd: 20.0 } joints { joint_name: "joint5-right" q_lb: -3.14 q_ub: 3.14 qd: 1.0 qdd: 20.0 } - joints { joint_name: "joint6-right" q_lb: -0.5 q_ub: 0.4 qd: 1.0 qdd: 20.0 } + joints { joint_name: "joint6-right" q_lb: -0.5 q_ub: 0.42 qd: 1.0 qdd: 20.0 } joints { joint_name: "joint7-right" q_lb: -0.70 q_ub: 0.7 qd: 1.0 qdd: 20.0 } } soft_limit { diff --git a/cmvr-es/config/devices/dexhand/dexhand.pb.txt b/cmvr-es/config/devices/dexhand/dexhand.pb.txt index f2260be1..926fbd21 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: "can1" hand_id: 2 master_id: 1 command_timeout_ms: 255 diff --git a/cmvr-es/config/devices/motor/xiaozhao_linkong_motors.pb.txt b/cmvr-es/config/devices/motor/xiaozhao_linkong_motors.pb.txt index 6d621c99..a265913d 100644 --- a/cmvr-es/config/devices/motor/xiaozhao_linkong_motors.pb.txt +++ b/cmvr-es/config/devices/motor/xiaozhao_linkong_motors.pb.txt @@ -36,7 +36,7 @@ motor { joint_name: "neck-joint2" gear_ratio: 10 limit_q_lb: -0.75 - limit_q_ub: 0.70 + limit_q_ub: 0.75 limit_qd: 10 lingkong { response_timeout_ms: 100 @@ -49,7 +49,7 @@ motor { joint_name: "neck-joint3" gear_ratio: 10 limit_q_lb: -0.45 - limit_q_ub: 0.40 + limit_q_ub: 0.42 limit_qd: 10 lingkong { response_timeout_ms: 100 diff --git a/cmvr-es/config/devices/motor/xiaozhao_tchl_motors.pb.txt b/cmvr-es/config/devices/motor/xiaozhao_tchl_motors.pb.txt index 5147e1da..17493e28 100644 --- a/cmvr-es/config/devices/motor/xiaozhao_tchl_motors.pb.txt +++ b/cmvr-es/config/devices/motor/xiaozhao_tchl_motors.pb.txt @@ -61,7 +61,7 @@ motor { joints { joint_name: "joint3-right" q_lb: -3.14 q_ub: 3.14 qd: 1.0 qdd: 20.0 } joints { joint_name: "joint4-right" q_lb: -2.1 q_ub: 0 qd: 1.0 qdd: 20.0 } joints { joint_name: "joint5-right" q_lb: -3.14 q_ub: 3.14 qd: 1.0 qdd: 20.0 } - joints { joint_name: "joint6-right" q_lb: -0.59 q_ub: 0.4 qd: 1.0 qdd: 20.0 } + joints { joint_name: "joint6-right" q_lb: -0.59 q_ub: 0.42 qd: 1.0 qdd: 20.0 } joints { joint_name: "joint7-right" q_lb: -0.70 q_ub: 0.7 qd: 1.0 qdd: 20.0 } joints { joint_name: "joint1-left" q_lb: -3.14 q_ub: 3.14 qd: 1.0 qdd: 5.0 } joints { joint_name: "joint2-left" q_lb: -1.57 q_ub: 1.57 qd: 1.0 qdd: 5.0 } diff --git a/cmvr-es/config/manager/real_device_manager.pb.txt b/cmvr-es/config/manager/real_device_manager.pb.txt index 3a2785df..74e8bc96 100644 --- a/cmvr-es/config/manager/real_device_manager.pb.txt +++ b/cmvr-es/config/manager/real_device_manager.pb.txt @@ -20,7 +20,7 @@ device_manager { id: "right_hand_lites001" type: DEVICE_TYPE_DEXHAND config_file: "devices/dexhand/dexhand.pb.txt" - enable: false + enable: true } devices { diff --git a/cmvr-es/config/manager/task_manager.pb.txt b/cmvr-es/config/manager/task_manager.pb.txt index 912d6008..69af8817 100644 --- a/cmvr-es/config/manager/task_manager.pb.txt +++ b/cmvr-es/config/manager/task_manager.pb.txt @@ -6,7 +6,7 @@ task_manager { run_mode: TASK_RUN_MODE_PERIODIC_STEP control_period_s: 0.001 config_file: "tasks/touch_screen_task/touch_screen_task_xiaozhao_real.pb.txt" - enable: false + enable: true } tasks { id: "grpc_server" @@ -30,13 +30,13 @@ task_manager { run_mode: TASK_RUN_MODE_PERIODIC_STEP control_period_s: 0.02 config_file: "tasks/self_collision_task/self_collision_task_xiaozhao_right.pb.txt" - enable: false + enable: true } tasks { id: "quic_edge" type: TASK_TYPE_QUIC_EDGE run_mode: TASK_RUN_MODE_BLOCKING_SERVICE config_file: "tasks/quic_edge_task/quic_edge_task.pb.txt" - enable: true + enable: false } } diff --git a/cmvr-es/config/tasks/touch_screen_task/touch_screen_task.pb.txt b/cmvr-es/config/tasks/touch_screen_task/touch_screen_task.pb.txt index f1f48317..8548eb14 100644 --- a/cmvr-es/config/tasks/touch_screen_task/touch_screen_task.pb.txt +++ b/cmvr-es/config/tasks/touch_screen_task/touch_screen_task.pb.txt @@ -76,7 +76,7 @@ touch_screen_task { # rx、ry、rz 表示绕固定 G 坐标轴 X、Y、Z 依次旋转。 # 旋转组合为 R_G_H = Rz(rz) * Ry(ry) * Rx(rx)。 # PBVS 会结合上面的 T_H_P 将该目标转换为 TCP P 的目标姿态。 - hand_orientation_G { rx: 0.0 ry: 0.0 rz: -1.57 } + hand_orientation_G { rx: -0.1 ry: 0.0 rz: -1.57 } # 点击目标点到 TCP 预对齐位置的偏移,表达在 G 坐标系,单位为米。 position_offset_G { x: 0.0 y: 0.0 z: 0.00 } mode: TOUCH_SCREEN_ALIGN_MODE_RX_RY_AND_POSITION diff --git a/cmvr-es/config/tasks/touch_screen_task/touch_screen_task_xiaozhao_real.pb.txt b/cmvr-es/config/tasks/touch_screen_task/touch_screen_task_xiaozhao_real.pb.txt index 6ff4f0b5..94d16f36 100644 --- a/cmvr-es/config/tasks/touch_screen_task/touch_screen_task_xiaozhao_real.pb.txt +++ b/cmvr-es/config/tasks/touch_screen_task/touch_screen_task_xiaozhao_real.pb.txt @@ -14,10 +14,10 @@ touch_screen_task { # 参考 MuJoCo 头部姿态。实机确认视野和关节位置后,可启用启动时的头部 MoveJ。 head_initialization { - enable: false - joint_positions { joint_name: "neck-joint1" rad: -1.055819 } - joint_positions { joint_name: "neck-joint2" rad: 0.621808 } - joint_positions { joint_name: "neck-joint3" rad: -0.160239 } + enable: true + joint_positions { joint_name: "neck-joint1" rad: -1.235204 } + joint_positions { joint_name: "neck-joint2" rad: 0.612523} + joint_positions { joint_name: "neck-joint3" rad:-0.279480 } velocity: 0.25 # rad/s acceleration: 1 # rad/s^2 } @@ -28,13 +28,13 @@ touch_screen_task { before_start: true after_finish: true after_failure: true - joint_positions { joint_name: "joint1-right" rad: -0.057569 } - joint_positions { joint_name: "joint2-right" rad: 1.044305 } - joint_positions { joint_name: "joint3-right" rad: 1.577581 } - joint_positions { joint_name: "joint4-right" rad: -1.699421 } - joint_positions { joint_name: "joint5-right" rad: -2.574735 } - joint_positions { joint_name: "joint6-right" rad: 0.038704 } - joint_positions { joint_name: "joint7-right" rad: 0.016973 } + joint_positions { joint_name: "joint1-right" rad: -0.742312} + joint_positions { joint_name: "joint2-right" rad:0.871908 } + joint_positions { joint_name: "joint3-right" rad: 2.109117 } + joint_positions { joint_name: "joint4-right" rad: -1.892831 } + joint_positions { joint_name: "joint5-right" rad:-2.249530} + joint_positions { joint_name: "joint6-right" rad:0.268739 } + joint_positions { joint_name: "joint7-right" rad:0.146545 } velocity: 1 # rad/s acceleration: 1 # rad/s^2 jerk: 5.0 # rad/s^3 @@ -43,10 +43,10 @@ touch_screen_task { } perception { - # ID 和尺寸沿用 MuJoCo 参考。两张标签的黑框外缘应等长,size_m 不含白边。 + # size_m 填各自标签的黑框外边长,不含白边。 tags { - screen { id: 2 size_m: 0.03 } - hand { id: 1 size_m: 0.03 } + screen { id: 1 size_m: 0.03 } + hand { id: 2 size_m: 0.025 } } # 实机两路相机采集 RGB。触屏像素 u/v 使用手相机 1280×720 原图坐标。 hand_camera { @@ -59,8 +59,8 @@ touch_screen_task { # MoveP 移至视觉对齐目标,再进入 PBVS。最小间隙检查针对 TCP。 enable: true velocity: 0.25 # rad/s - acceleration: 0.5 # rad/s^2 - jerk: 5.0 # rad/s^3 + acceleration: 1 # rad/s^2 + jerk: 50.0 # rad/s^3 timeout_s: 15.0 minimum_clearance_m: 0.01 } @@ -85,8 +85,10 @@ touch_screen_task { target { # H 相对 G 的目标姿态(rad)。按实机标签朝向复核,使 Tool -Y 指向屏面。 hand_orientation_G { rx: 0.0 ry: 0.0 rz: -3.141592653589793 } + # MoveP 和 PBVS 共用此偏移,绕屏幕 Tag G 的固定 X 轴再转 -5°,单位为弧度。 + rotation_offset_G { x: -0.3 y: 0.0 z: 0.0 } # TCP 对齐至点击点沿 G +Z 外移 20 mm 的位置。 - position_offset_G { x: 0.0 y: 0.0 z: 0.05 } + position_offset_G { x: 0.008 y: -0.012 z: 0.05 } mode: TOUCH_SCREEN_ALIGN_MODE_POSE_AND_POSITION } error_threshold {