Skip to content

Path Planner

The path planner is used to calculate trajectory from WPILibs pathweaver.

Usage

You can use it by creating an instance of the path planner class using this code:

wom::PathPlanner pathPlanner;

Then you can use it to calculate trajectory like this:

pathPlanner.getTrajectory("path/to/trajectory.json");

where the path is relative to the deploy directory.

The files can be created using WPILibs pathweaver found here.