Skip to content

Commit

Permalink
Merge pull request #99 from mrkulk/patch-1
Browse files Browse the repository at this point in the history
Fix to solve error in gather_demonstrations_as_hdf5 (panda)
  • Loading branch information
amandlek committed Aug 18, 2020
2 parents 666588a + 8e4e606 commit d4e0f6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions robosuite/wrappers/data_collection_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def step(self, action):
info["gripper_actuation"] = np.array(action[14:])
info["left_dpos"] = np.array(action[7:10]) # add in second arm info
info["left_dquat"] = np.array(action[10:14])
elif self.env.mujoco_robot.name == "panda":
info["gripper_actuation"] = np.array(action[7:])
else:
info = {}
info["joint_velocities"] = np.array(action[: self.env.mujoco_robot.dof])
Expand Down

0 comments on commit d4e0f6a

Please sign in to comment.