PathPlanner
PathPlanner is a tool that we use to make the trajectories the robot follows during auto
Documentation: https://pathplanner.dev/home.html
Open PathPlanner
Select your robot code folder as the project, this tell PathPlanner you are making paths for this project and it will put it in the right spot for that project
Design your routine in a single path file for brainstorming purposes
Segment it accosting to the following section
Create the auto class
The Trajectory Library (Where your auto pulls the trajectory’s from) will detect paths in the generated location so DON'T MOVE THEM
Segmenting
In order to sequence auto actions the auto needs to be segmented at every landmark point, for example the intake location
Best Practices for Segmenting
Segments should be named memorably and clearly
Segments should be reused
Segments should be made up of linked start and end points (ex: Source, Scoring Location A, Preplaced piece A)
Segments should be organized in folders
Segments should be optimized for time
Segments should use appropriate acceleration and velocity constraints
Once you have your path segments it will be useful for visualization if you use pathplanner's auto section to sequence them (this will not be referenced in code)
Last updated