-
Notifications
You must be signed in to change notification settings - Fork 156
Python Example: Path Groups
Michael Jansen edited this page Dec 7, 2023
·
1 revision
Using AutoBuilder
and PathPlannerAuto
is the preferred way to utilize autos created in PathPlanner. See Python Example: Build an Auto. However, you can still use autos to mimic the path group functionality available in previous PathPlanner versions.
Getting a path group will only retrieve the paths added to that auto. Any other commands added to the auto will not be included. Use the example above if you want to create a full auto from the GUI.
from pathplannerlib.auto import PathPlannerAuto
# Use the PathPlannerAuto class to get a path group from an auto
pathGroup = PathPlannerAuto.getPathGroupFromAutoFile('Example Auto');
# You can also get the starting pose from the auto. Only call this if the auto actually has a starting pose.
startingPose = PathPlannerAuto.getStartingPoseFromAutoFile('Example Auto');
- Controls & Shortcuts
- Editing Paths & Autos
- Navigation Menu
- Settings
- Project Browser
- Telemetry Page
- Navigation Grid Editor
- Register Named Commands
- Build an Auto
- Follow a Single Path
- Create a Path On-the-fly
- Path Groups
- Automatic Pathfinding
Advanced Usage
- Register Named Commands
- Build an Auto
- Follow a Single Path
- Create a Path On-the-fly
- Path Groups
- Automatic Pathfinding
Advanced Usage
- Register Named Commands
- Build an Auto
- Follow a Single Path
- Create a Path On-the-fly
- Path Groups
- Automatic Pathfinding