Package com.pathplanner.lib.path
Class PathPoint
java.lang.Object
com.pathplanner.lib.path.PathPoint
A point along a pathplanner path
-
Field Summary
Modifier and TypeFieldDescriptionThe constraints applied to this pointdouble
The distance of this point along the path, in metersdouble
The max velocity at this pointfinal Translation2d
The position of this pointThe target rotation at this pointdouble
The waypoint relative position of this point. -
Constructor Summary
ConstructorDescriptionPathPoint
(Translation2d position) Create a path pointPathPoint
(Translation2d position, RotationTarget rotationTarget) Create a path pointPathPoint
(Translation2d position, RotationTarget rotationTarget, PathConstraints constraints) Create a path point -
Method Summary
-
Field Details
-
position
The position of this point -
distanceAlongPath
public double distanceAlongPathThe distance of this point along the path, in meters -
maxV
public double maxVThe max velocity at this point -
rotationTarget
The target rotation at this point -
constraints
The constraints applied to this point -
waypointRelativePos
public double waypointRelativePosThe waypoint relative position of this point. Used to determine proper event marker timing
-
-
Constructor Details
-
PathPoint
public PathPoint(Translation2d position, RotationTarget rotationTarget, PathConstraints constraints) Create a path point- Parameters:
position
- Position of the pointrotationTarget
- Rotation target at this pointconstraints
- The constraints at this point
-
PathPoint
Create a path point- Parameters:
position
- Position of the pointrotationTarget
- Rotation target at this point
-
PathPoint
Create a path point- Parameters:
position
- Position of the point
-
-
Method Details