Skip to content

Commit

Permalink
Fix: fetch grip directions (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
arth-shukla authored Jun 2, 2024
1 parent 38ef2d1 commit 993c56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mani_skill/agents/robots/fetch/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ def is_grasping(self, object: Actor, min_force=0.5, max_angle=85):
rforce = torch.linalg.norm(r_contact_forces, axis=1)

# direction to open the gripper
ldirection = self.finger1_link.pose.to_transformation_matrix()[..., :3, 1]
rdirection = -self.finger2_link.pose.to_transformation_matrix()[..., :3, 1]
ldirection = -self.finger1_link.pose.to_transformation_matrix()[..., :3, 1]
rdirection = self.finger2_link.pose.to_transformation_matrix()[..., :3, 1]
langle = common.compute_angle_between(ldirection, l_contact_forces)
rangle = common.compute_angle_between(rdirection, r_contact_forces)
lflag = torch.logical_and(
Expand Down

0 comments on commit 993c56f

Please sign in to comment.