Skip to content

Commit

Permalink
Fix gripper_pos obs shape
Browse files Browse the repository at this point in the history
This fixes "panda/gripper_pos" type to be compatible with the space.Box shape 1.
  • Loading branch information
Jendker authored Dec 7, 2024
1 parent cd5f7e7 commit a8bb9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion franka_sim/franka_sim/envs/panda_pick_gym_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _compute_observation(self) -> dict:

gripper_pos = np.array(
self._data.ctrl[self._gripper_ctrl_id] / 255, dtype=np.float32
)
).reshape(1)
obs["state"]["panda/gripper_pos"] = gripper_pos

# joint_pos = np.stack(
Expand Down

0 comments on commit a8bb9be

Please sign in to comment.