Skip to content

Commit d4e0f6a

Browse files
authored
Merge pull request ARISE-Initiative#99 from mrkulk/patch-1
Fix to solve error in gather_demonstrations_as_hdf5 (panda)
2 parents 666588a + 8e4e606 commit d4e0f6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

robosuite/wrappers/data_collection_wrapper.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def step(self, action):
132132
info["gripper_actuation"] = np.array(action[14:])
133133
info["left_dpos"] = np.array(action[7:10]) # add in second arm info
134134
info["left_dquat"] = np.array(action[10:14])
135+
elif self.env.mujoco_robot.name == "panda":
136+
info["gripper_actuation"] = np.array(action[7:])
135137
else:
136138
info = {}
137139
info["joint_velocities"] = np.array(action[: self.env.mujoco_robot.dof])

0 commit comments

Comments
 (0)