Skip to content

Commit

Permalink
revise constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
chauncygu authored Sep 12, 2022
1 parent d15f427 commit f0d732b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dexteroushandenvs/tasks/shadow_hand_over.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,8 @@ def compute_cost(self):
self.cost_buf = torch.where(actions[:, 4] < -0.1, torch.ones_like(self.cost_buf), self.cost_buf)
self.cost_buf = torch.where(actions[:, 4] > 0.1, torch.ones_like(self.cost_buf), self.cost_buf)

self.cost_buf = torch.where(actions[:, 4 + 24] < -0.1, torch.ones_like(self.cost_buf), self.cost_buf)
self.cost_buf = torch.where(actions[:, 4 + 24] > 0.1, torch.ones_like(self.cost_buf), self.cost_buf)
# self.cost_buf = torch.where(actions[:, 4 + 24] < -0.1, torch.ones_like(self.cost_buf), self.cost_buf)
# self.cost_buf = torch.where(actions[:, 4 + 24] > 0.1, torch.ones_like(self.cost_buf), self.cost_buf)

# cost = self.shadow_hand_dof_lower_limits[1] #-0.4890 # 0.1400
# print("self.shadow_hand_dof_lower_limits:", self.shadow_hand_dof_lower_limits)
Expand Down

0 comments on commit f0d732b

Please sign in to comment.