Browse Source
[fix] initialize IK before controller to prevent startup oscillation
Ensures heavy URDF parsing completes before control thread runs
main
silencht
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
4 deletions
-
teleop/teleop_hand_and_arm.py
|
|
|
@ -136,17 +136,17 @@ if __name__ == '__main__': |
|
|
|
|
|
|
|
# arm |
|
|
|
if args.arm == "G1_29": |
|
|
|
arm_ctrl = G1_29_ArmController(motion_mode=args.motion, simulation_mode=args.sim) |
|
|
|
arm_ik = G1_29_ArmIK() |
|
|
|
arm_ctrl = G1_29_ArmController(motion_mode=args.motion, simulation_mode=args.sim) |
|
|
|
elif args.arm == "G1_23": |
|
|
|
arm_ctrl = G1_23_ArmController(motion_mode=args.motion, simulation_mode=args.sim) |
|
|
|
arm_ik = G1_23_ArmIK() |
|
|
|
arm_ctrl = G1_23_ArmController(motion_mode=args.motion, simulation_mode=args.sim) |
|
|
|
elif args.arm == "H1_2": |
|
|
|
arm_ctrl = H1_2_ArmController(simulation_mode=args.sim) |
|
|
|
arm_ik = H1_2_ArmIK() |
|
|
|
arm_ctrl = H1_2_ArmController(simulation_mode=args.sim) |
|
|
|
elif args.arm == "H1": |
|
|
|
arm_ctrl = H1_ArmController(simulation_mode=args.sim) |
|
|
|
arm_ik = H1_ArmIK() |
|
|
|
arm_ctrl = H1_ArmController(simulation_mode=args.sim) |
|
|
|
|
|
|
|
# end-effector |
|
|
|
if args.ee == "dex3": |
|
|
|
|