You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add full naming convention aliases for robot limbs (#641)
* Add full naming convention aliases for robot limbs
Add right_arm, left_arm, right_leg, left_leg properties to RobotModel
base class with isinstance type checking and NotImplementedError handling.
Also add backward-compatible aliases to individual robot models:
- PR2: right_arm, left_arm, right_arm_with_torso, left_arm_with_torso
- Panda, Fetch, Kuka: arm, arm_with_torso (for single-arm robots)
- Nextage, R8_6: right_arm, left_arm
This allows using full names (robot.right_arm) while maintaining
backward compatibility with abbreviated names (robot.rarm).
* Add test for limb naming convention aliases
Test right_arm, left_arm, arm aliases and their end_coords variants
for dual-arm robots (PR2) and single-arm robots (Fetch, Kuka).
Also verify that non-existent limbs (legs) return None.
* Update examples to use new limb naming convention
- batch_ik_demo.py: Use arm/right_arm instead of rarm
- pybullet_robot_interface.py: Use arm/arm_end_coords instead of rarm
* Update examples to use new naming convention (right_arm, left_arm)
* Address review: use @Property wrappers instead of direct assignment
0 commit comments