Skip to content

Commit 77a4751

Browse files
authored
Merge pull request #697 from ARISE-Initiative/joint_pos_gripper_controller_fix
update part controller config to include joint indices
2 parents a8341f1 + 09c1371 commit 77a4751

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robosuite/robots/robot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ def _load_arm_controllers(self):
912912
self.part_controller_config[gripper_name]["ndim"] = self.gripper[arm].dof
913913
self.part_controller_config[gripper_name]["policy_freq"] = self.control_freq
914914
self.part_controller_config[gripper_name]["joint_indexes"] = {
915-
"joints": self.gripper_joints[arm],
915+
"joints": self._ref_joints_indexes_dict[gripper_name],
916916
"actuators": self._ref_joint_gripper_actuator_indexes[arm],
917917
"qpos": self._ref_gripper_joint_pos_indexes[arm],
918918
"qvel": self._ref_gripper_joint_vel_indexes[arm],

0 commit comments

Comments
 (0)