Skip to content

Commit

Permalink
Fix slicing issue in push when random_init is False (#368)
Browse files Browse the repository at this point in the history
Fixing #367
  • Loading branch information
benedictflorance authored Apr 19, 2022
1 parent 29fe5d6 commit b0b66d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metaworld/envs/mujoco/sawyer_xyz/v2/sawyer_push_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def fix_extreme_obj_pos(self, orig_init_pos):
def reset_model(self):
self._reset_hand()
self._target_pos = self.goal.copy()
self.obj_init_pos = self.fix_extreme_obj_pos(self.init_config['obj_init_pos'])
self.obj_init_pos = np.array(self.fix_extreme_obj_pos(self.init_config['obj_init_pos']))
self.obj_init_angle = self.init_config['obj_init_angle']

if self.random_init:
Expand Down

0 comments on commit b0b66d1

Please sign in to comment.