Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choreo adds random curves to paths #1190

Open
realleo245 opened this issue Feb 4, 2025 · 7 comments
Open

Choreo adds random curves to paths #1190

realleo245 opened this issue Feb 4, 2025 · 7 comments
Labels
cause: solver-deficiency Sleipnir solver deficiency

Comments

@realleo245
Copy link

realleo245 commented Feb 4, 2025

Image

Sometimes, Choreo adds weird curves in the middle of a path.

Adding a point-at constraints makes it take a more normal path

Image
@calcmogul
Copy link
Member

calcmogul commented Feb 4, 2025

Could you upload a project with the issue here so we can troubleshoot? There's an "Export Diagnostic Report" button in the menu.

@realleo245
Copy link
Author

@calcmogul
Copy link
Member

OK, I've reproduced the issue on the "Station 1 to A" trajectory with Choreo 2025.0.2 on Linux.

@realleo245
Copy link
Author

realleo245 commented Feb 4, 2025 via email

@calcmogul
Copy link
Member

Looks like it hit a local minimum. #1123 doesn't fix it either; it has the same issue, even with the point-at constraint included.

@calcmogul
Copy link
Member

Turning off the keep-in rect fixes it on both 2025.0.2 and that PR.

@calcmogul
Copy link
Member

calcmogul commented Feb 5, 2025

The duals diverge toward the end of the solve when the keep-in rect is included. This can cause weird issues with the interior-point method's path following and lead to it finding weird local minima.

duals-with-keep-in-rect.txt
duals-without-keep-in-rect.txt

The root cause could be fixed by SleipnirGroup/Sleipnir#483.

@calcmogul calcmogul added the cause: solver-deficiency Sleipnir solver deficiency label Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cause: solver-deficiency Sleipnir solver deficiency
Projects
None yet
Development

No branches or pull requests

2 participants