Browse Source

[fix] tele_data bug

main
silencht 5 months ago
parent
commit
f19a45e2ab
  1. 6
      teleop/teleop_hand_and_arm.py

6
teleop/teleop_hand_and_arm.py

@ -337,9 +337,9 @@ if __name__ == '__main__':
left_hand_action = [dual_gripper_action_array[0]] left_hand_action = [dual_gripper_action_array[0]]
right_hand_action = [dual_gripper_action_array[1]] right_hand_action = [dual_gripper_action_array[1]]
current_body_state = arm_ctrl.get_current_motor_q().tolist() current_body_state = arm_ctrl.get_current_motor_q().tolist()
current_body_action = [-tele_data.tele_state.left_thumbstick_value[1] * 0.3,
-tele_data.tele_state.left_thumbstick_value[0] * 0.3,
-tele_data.tele_state.right_thumbstick_value[0] * 0.3]
current_body_action = [-tele_data.left_ctrl_thumbstickValue[1] * 0.3,
-tele_data.left_ctrl_thumbstickValue[0] * 0.3,
-tele_data.right_ctrl_thumbstickValue[0] * 0.3]
elif (args.ee == "inspire_dfx" or args.ee == "inspire_ftp" or args.ee == "brainco") and args.xr_mode == "hand": elif (args.ee == "inspire_dfx" or args.ee == "inspire_ftp" or args.ee == "brainco") and args.xr_mode == "hand":
with dual_hand_data_lock: with dual_hand_data_lock:
left_ee_state = dual_hand_state_array[:6] left_ee_state = dual_hand_state_array[:6]

Loading…
Cancel
Save