Skip to content

Commit

Permalink
Fix: robot to obj dist sequentialtaskpick
Browse files Browse the repository at this point in the history
  • Loading branch information
arth-shukla committed Mar 6, 2024
1 parent 293494e commit 7ac3b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mani_skill2/envs/scenes/tasks/pick.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def compute_dense_reward(self, obs: Any, action: torch.Tensor, info: Dict):
tcp_pos = self.agent.tcp_pose.p

robot_to_obj_dist = torch.norm(
self.agent.torso_lift_link.pose.p - self.agent.tcp_pose.p, dim=1
self.agent.torso_lift_link.pose.p - obj_pos, dim=1
)


Expand Down

0 comments on commit 7ac3b92

Please sign in to comment.