PathPlanner 2024 - Displaying Paths with Field2d #436
jonathandao0
started this conversation in
General
Replies: 1 comment
-
Your options are either:
I'd recommend going with option 2 unless you want to display a path on a field 2d before actually running it, in which case option 1 is probably the cleanest. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In previous versions of PathPlanner, you could display the trajectory in a Field2d object using something like this:
In testing out the PathPlanner 2024 Beta, I tried modifying the code to the following:
This causes the code to crash because
point.holonomicRotation
is null for all points, except for the final one which is set byGoalEndState
when a path is generated. Is there a recommended way for generating aList<Pose2d>
from a Path in the updated library other than setting the rotation to 0 for each point?Beta Was this translation helpful? Give feedback.
All reactions