-
Notifications
You must be signed in to change notification settings - Fork 555
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
Random crash with STOMP with path constraints #2462
Comments
interesting... first off, these functions are still lacking proper testing. But it seems like you are starting with a start state that doesn't meet the path constraints (0,1 being an invalid window). Usually, this should have been caught by the plugin adapter without actually running the algorithm. What is your input trajectory size (timestep count)? Also, number of dof? Line 9 in the stacktrace looks somewhat suspicious, though... |
@henningkayser , thanks for your comment. In my case it's a 6-DOF arm in simulation.
I'm using standalone STOMP planning (not as a post-processor). |
This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups. |
@patrickKXMD could you test if #2625 fixes this issue for you? |
I ran my test based on your commit and no crash happens yet |
Description
There is a random SIGSEGV when using STOMP with path constraints in my project.
Here is the backtrace
I may have found the root cause after some digging.
https://github.com/ros-planning/moveit2/blob/9249e44330d241559ed868dbc293fc2a3d1e1907/moveit_planners/stomp/include/stomp_moveit/cost_functions.hpp#L124-L128
here when
invalid_windows.back().first
is0
andtimestep
is1
https://github.com/ros-planning/moveit2/blob/9249e44330d241559ed868dbc293fc2a3d1e1907/moveit_planners/stomp/include/stomp_moveit/cost_functions.hpp#L139-L147
mu = 0.5 * (start + end)
will be0
andcosts(j)
becameinf
which is invalid for later use and finally cause the crash.I can workaround it but don't know how to fix it properly.
please let me know if I'm wrong, thanks.
Your environment
The text was updated successfully, but these errors were encountered: