Class WPI_PathPoint
- java.lang.Object
-
- io.github.frc5024.purepursuit.util.WPI_PathPoint
-
public class WPI_PathPoint extends java.lang.Object
This class is the datastructure used to parse WPILib Path json files into something Lib5K understands. The fields of this class must match the JS object fields from the json files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
WPI_PathPoint.WPI_PathPose
This class is the datastructure used to denote pose in a WPILib path json file
-
Field Summary
Fields Modifier and Type Field Description double
acceleration
double
curvature
WPI_PathPoint.WPI_PathPose
pose
double
time
double
velocity
-
Constructor Summary
Constructors Constructor Description WPI_PathPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Translation2d
getTranslation()
Convert the WPI_PathPoint into a Translation2d
-
-
-
Field Detail
-
time
public double time
-
velocity
public double velocity
-
acceleration
public double acceleration
-
pose
public WPI_PathPoint.WPI_PathPose pose
-
curvature
public double curvature
-
-
Method Detail
-
getTranslation
public Translation2d getTranslation()
Convert the WPI_PathPoint into a Translation2d- Returns:
- Translation2d object
-
-