Skip to content

Commit

Permalink
bug fix for grasp generation
Browse files Browse the repository at this point in the history
  • Loading branch information
HaozhiQi committed Nov 28, 2022
1 parent 9a12a68 commit 9771097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hora/tasks/allegro_hand_grasp.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def reset_idx(self, env_ids):
self.gym.set_actor_root_state_tensor_indexed(self.sim, gymtorch.unwrap_tensor(self.root_state_tensor),
gymtorch.unwrap_tensor(object_indices), len(object_indices))

pos = to_torch(self.canonical_pose)[None].repeat(len(env_ids), 1)
pos = to_torch(self.canonical_pose, device=self.device)[None].repeat(len(env_ids), 1)
pos += 0.25 * rand_floats[:, 5:5 + self.num_allegro_hand_dofs]
pos = tensor_clamp(pos, self.allegro_hand_dof_lower_limits, self.allegro_hand_dof_upper_limits)

Expand Down

0 comments on commit 9771097

Please sign in to comment.