Skip to content

Conversation

@MatthijsBurgh
Copy link
Contributor

@MatthijsBurgh MatthijsBurgh commented Sep 29, 2025

This allows the IK solver to continue finding a valid solution, which also satisfies the kinematic constraints.

In the old situation the IK solver would return a solution, which it thinks is valid, but it is not. The sampler will keep calling the IK solver. Though for IK solvers, which are not that random. There is a high chance of returning the same solution over and over. Which keeps failing the constraints.

By checking the constraints in the callback the IK solver will continue and return a valid solution.

Please backport to Jazzy and others

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

@mergify
Copy link

mergify bot commented Sep 29, 2025

Please target the main branch for development, we will backport the changes to jazzy for you if approved and if they don't break API.

@MatthijsBurgh MatthijsBurgh force-pushed the patch-1 branch 2 times, most recently from 7698d9f to fdd76e6 Compare September 29, 2025 14:34
@MatthijsBurgh MatthijsBurgh changed the base branch from jazzy to main September 29, 2025 14:34
@MatthijsBurgh
Copy link
Contributor Author

@henningkayser @tylerjw Please review this PR.

@MatthijsBurgh
Copy link
Contributor Author

@EzraBrooks do you know who can review this PR?

@EzraBrooks
Copy link
Member

I believe @v4hn

@MatthijsBurgh
Copy link
Contributor Author

@v4hn Could you please review this PR?

This allows the IK solver to continue finding a valid solution, which also satisfies the kinematic constraints.

In the old situation the IK solver would return a solution, which it thinks is valid, but it is not. The sampler will keep calling the IK solver. Though for IK solvers, which are not that random. There is a high chance of returning the same solution over and over. Which keeps failing the constraints.

By checking the constraints in the callback the IK solver will continue and return a valid solution.
@MatthijsBurgh
Copy link
Contributor Author

@ahcorde can you please take a look at this PR or assign it to another active developer?

@codecov
Copy link

codecov bot commented Nov 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 46.17%. Comparing base (f6acd91) to head (d3b324d).
⚠️ Report is 30 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3586      +/-   ##
==========================================
+ Coverage   46.17%   46.17%   +0.01%     
==========================================
  Files         720      720              
  Lines       59179    59180       +1     
  Branches     7595     7595              
==========================================
+ Hits        27320    27323       +3     
+ Misses      31692    31691       -1     
+ Partials      167      166       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ahcorde
Copy link
Contributor

ahcorde commented Nov 17, 2025

@nbbrooks can you also help here?

@EzraBrooks EzraBrooks self-requested a review November 17, 2025 14:42
@EzraBrooks EzraBrooks enabled auto-merge (squash) November 17, 2025 14:43
@EzraBrooks EzraBrooks merged commit ca2bb1b into moveit:main Nov 17, 2025
9 of 10 checks passed
@github-project-automation github-project-automation bot moved this to ✅ Done in MoveIt Nov 17, 2025
@MatthijsBurgh
Copy link
Contributor Author

@ahcorde @EzraBrooks can we backport to Jazzy and newer distros?

@EzraBrooks
Copy link
Member

I'm not familiar with the process for that on MoveIt, but I'll approve PRs if they're opened

@nbbrooks nbbrooks added the backport-jazzy Mergify label that triggers a PR backport to Jazzy label Nov 17, 2025
@nbbrooks
Copy link
Contributor

I believe mergify bot is configured to look at these tags and try to backport automatically. We will need to configure a backport-kilted label and workflow though.

mergify bot pushed a commit that referenced this pull request Nov 17, 2025
EzraBrooks pushed a commit that referenced this pull request Nov 17, 2025
(cherry picked from commit ca2bb1b)

Co-authored-by: Matthijs van der Burgh <[email protected]>
@MatthijsBurgh
Copy link
Contributor Author

@nbbrooks can you please also backport to kilted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-jazzy Mergify label that triggers a PR backport to Jazzy backport-kilted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants