pathplanner
pathplanner copied to clipboard
Control Length of 0 distance becomes NaN (Breaks & Crashes GUI)
Describe the bug The point heading and control length can become NaN (Not A Number) if the control point is dragged on top of the anchor point (Control Length is then 0). Once the value becomes NaN, it cannot be changed back to a proper number.
To Reproduce
- Drag a control point to be exactly on top an anchor point (
Next Control Length
= 0) - Try to change the the current
Next Control Length
to a number besides 0 by typing in a new number -
Next Control Length
will now become NaN - It is now impossible to change the value from NaN and if you attempt to do so the generated robot path disappears.
- If you leave and try to re-open the path, PathPlanner GUI will crash.
Expected behavior
- The value should not become NaN when changed from 0 to another number
- Maybe have a way to separate overlapping anchor and control points?
Screenshots
Setting the control point on top of the anchor point (by dragging it)
Trying to change length to a non-zero value (1 in this case), it instead becomes NaN
Simulated Driving Time
and the time on the time bar also become NaN
Versions:
- OS: Windows 10
- GUI Version: 2024.1.6
- PPLib Version: 2024.2.7
- PPLib Language: Java
Additional context This happened because I accidently put the control point on top of the anchor point. I couldn't figure out any way to move the control point besides changing the value for length as you cannot drag it off if the 2 points overlap.
Yes, I ran into this too because I was trying to make a python script that would write some autos, and it did this exact thing by accident and there no way to move it off.