Skip to content

fix: bound x-offset at both ends in PegInsertionSide success condition#1431

Open
Ottohere-Mourn wants to merge 1 commit into
mani-skill:mainfrom
Ottohere-Mourn:fix/issue-1391
Open

fix: bound x-offset at both ends in PegInsertionSide success condition#1431
Ottohere-Mourn wants to merge 1 commit into
mani-skill:mainfrom
Ottohere-Mourn:fix/issue-1391

Conversation

@Ottohere-Mourn

@Ottohere-Mourn Ottohere-Mourn commented Jun 7, 2026

Copy link
Copy Markdown

Summary

  • Fixed the PegInsertionSide task success condition to bound the x-offset at both the top and bottom
  • Previously only checked -0.015 <= x, allowing the peg to overshoot past the hole and still be counted as success
  • Now checks -0.015 <= x <= 0.015, requiring the peg head to be within ±1.5cm of the ideal insertion position along the x-axis

Fixes #1391

Test Plan

  • PegInsertionSide task no longer reports success when peg overshoots past the hole
  • Normal successful insertions are still correctly detected
  • No regression on other peg insertion tasks

…s condition

Fixes mani-skill#1391

The success condition for peg insertion only checked the lower x bound,
allowing the peg to overshoot past the hole and still be considered
successfully inserted. Added an upper bound check so the peg head must
be within [-0.015, 0.015] along the insertion axis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Fix success condition of peg insertion side to bound the x-offset at the top and bottom

1 participant