getAutonomousCommand

fun getAutonomousCommand(autoName: String, setOdomAtStart: Boolean): Command

Gets a command that follows a path created in PathPlanner.

Return

A command that follows the path.

Parameters

pathName

The path's file name.

setOdomAtStart

Whether to update the robot's odometry to the start pose of the path.