Package lib.auton
Class PathManager
java.lang.Object
lib.auton.PathManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanWhenfalse, PathPlanner paths will be moved so that the starting position of the path lines up with the robot position when the auton starts.static final intstatic final double -
Method Summary
Modifier and TypeMethodDescriptionstatic edu.wpi.first.wpilibj2.command.Commandstatic edu.wpi.first.math.geometry.Pose2d[]makeTrajPreview(com.pathplanner.lib.trajectory.PathPlannerTrajectory traj, int steps) static edu.wpi.first.math.geometry.Pose2d[]makeTrajPreview(com.pathplanner.lib.trajectory.PathPlannerTrajectory traj, edu.wpi.first.math.geometry.Pose2d start, int steps) static edu.wpi.first.math.geometry.Pose2dsampleTraj(com.pathplanner.lib.trajectory.PathPlannerTrajectory traj, edu.wpi.first.math.geometry.Pose2d start, double time) static boolean
-
Field Details
-
ABSOLUTE_PATHPLANNER_POSITIONING
public static final boolean ABSOLUTE_PATHPLANNER_POSITIONINGWhenfalse, PathPlanner paths will be moved so that the starting position of the path lines up with the robot position when the auton starts.When
true, paths will not be moved, and the robot will try to get to the absolute position of the path on the field.- See Also:
-
PATHPLANNER_SLOWDOWN_FACTOR
public static final double PATHPLANNER_SLOWDOWN_FACTOR- See Also:
-
PATHPLANNER_PREVIEW_STEPS
public static final int PATHPLANNER_PREVIEW_STEPS- See Also:
-
-
Method Details
-
shouldFlip
public static boolean shouldFlip() -
c_path
-
makeTrajPreview
public static edu.wpi.first.math.geometry.Pose2d[] makeTrajPreview(com.pathplanner.lib.trajectory.PathPlannerTrajectory traj, int steps) -
makeTrajPreview
public static edu.wpi.first.math.geometry.Pose2d[] makeTrajPreview(com.pathplanner.lib.trajectory.PathPlannerTrajectory traj, edu.wpi.first.math.geometry.Pose2d start, int steps) -
sampleTraj
public static edu.wpi.first.math.geometry.Pose2d sampleTraj(com.pathplanner.lib.trajectory.PathPlannerTrajectory traj, edu.wpi.first.math.geometry.Pose2d start, double time)
-