Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mani_skill/envs/tasks/tabletop/peg_insertion_side.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def has_peg_inserted(self):
# Only head position is used in fact
peg_head_pos_at_hole = (self.box_hole_pose.inv() * self.peg_head_pose).p
# x-axis is hole direction
x_flag = -0.015 <= peg_head_pos_at_hole[:, 0]
x_flag = (-0.015 <= peg_head_pos_at_hole[:, 0]) & (peg_head_pos_at_hole[:, 0] <= 0.015)
y_flag = (-self.box_hole_radii <= peg_head_pos_at_hole[:, 1]) & (
peg_head_pos_at_hole[:, 1] <= self.box_hole_radii
)
Expand Down