Closed roberttuttle closed 4 months ago
Closing this issue as reported, but it should be noted that the PathPlanner GUI does seem to allow the data state (rotation target with a zero waypoint init) that does end up producing the exception / crash. It is unclear how the rotation targets in the affected paths ended up in this data state.
Describe the bug AutoBuilder.pathFindThenFollowPath using Python lib is generating a path that produces a ZeroDivisionError: float division by zero unhandled fatal exception / crash
To Reproduce Steps to reproduce the behavior: Execute command that uses AutoBuilder.pathFindThenFollowPath where starting pose is different than the starting pose of a fixed path to run after dynamic generation / pathfinding.
Expected behavior Generated paths that produce a distanceBetweenTargets of 0.0 handles divide by zero cases correctly / gracefully
Versions: (please complete the following information):
Additional context
Exception tracing from DSLog events: (notice the
'distanceBetweenTargets': 0.0
entry which is the source of the div by zero error)