-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
RPP cusp not detected for in-place rotation (for reversing) #3089
Comments
Maybe its better to just skip the in-place rotation poses with same (x,y) [while keeping the first and the last of those consecutive pose] in the cusp detection loop. Best option would be to support RotateToGoalHeading & RotateToPath along with allow_reversing for differential-robot at same time. Any thoughts? |
I think you're spot on with the difference between
I think it could even fit in really well into the existing structure to add in that parameter + a new There would probably need to be a slight change in the cusp calculation to also return for in place rotations, but that should be easy to check for as you point out with Would this be something you'd be open to contributing? |
Hello @SteveMacenski. Sorry for the late reply. I actually did some testing few weeks ago with the above modifications, but now I am not actively working with this planner. If my boss let me work on this in future, I will submit a pr. |
This is still a valid issue, so I want to keep this open! |
#3934 to resolve |
Bug report
Required Info:
Steps to reproduce issue
Use SMAC-lattice planner with in-place rotation on
and set use_rotate_to_heading: false and allow_reversing: true in RPP
The above figure shows a cusp with in-place rotation.
Expected behavior
The lookup should first be till the cusp and after robot arrives at cusp it should lookup to next point.
Actual behavior
Cusp is not detected and robot lookup directly crosses the cusp even when robot has not arrived to the cusp pose.
Additional information
This is due to cusp being detected by negative dot product of consecutive pose on this line. As the in-place rotation have multiple consecutive pose at same location, the dot product is zero and cusp is not detected.
Maybe instead of dot product < 0, changing it to <= 0 may help. But it will bring along additional bugs such as
Sorry for my bad drawing skills!
The text was updated successfully, but these errors were encountered: