Class MotionProfile.Point
- java.lang.Object
-
- org.team1540.rooster.motionprofiling.MotionProfile.Point
-
- Enclosing class:
- MotionProfile
public static class MotionProfile.Point extends Object
A single instant within aMotionProfile.
-
-
Field Summary
Fields Modifier and Type Field Description doubleaccelerationThe acceleration of the profiled mechanism, in position units per second squared.doubledtThe time change since the previous point, in seconds.doubleheadingThe robot's heading in radians, or 0 if not applicable.doublejerkThe jerk of the profiled mechanism, in position units per second cubed.doublepositionThe position of the profiled mechanism.doublevelocityThe velocity of the profiled mechanism, in position units per second.doublexThe x-position of the robot, or 0 if not applicable.doubleyThe y-position of the robot, or 0 if not applicable.
-
Constructor Summary
Constructors Constructor Description Point(double dt, double x, double y, double position, double velocity, double acceleration, double jerk, double heading)Creates a newPoint.
-
-
-
Field Detail
-
dt
public double dt
The time change since the previous point, in seconds.
-
x
public double x
The x-position of the robot, or 0 if not applicable.
-
y
public double y
The y-position of the robot, or 0 if not applicable.
-
position
public double position
The position of the profiled mechanism.
-
velocity
public double velocity
The velocity of the profiled mechanism, in position units per second.
-
acceleration
public double acceleration
The acceleration of the profiled mechanism, in position units per second squared.
-
jerk
public double jerk
The jerk of the profiled mechanism, in position units per second cubed.
-
heading
public double heading
The robot's heading in radians, or 0 if not applicable.
-
-
Constructor Detail
-
Point
public Point(double dt, double x, double y, double position, double velocity, double acceleration, double jerk, double heading)Creates a newPoint.- Parameters:
dt- The time change since the previous point, in seconds.x- The x-position of the robot, or 0 if not applicable.y- The y-position of the robot, or 0 if not applicable.position- The position of the profiled mechanism.velocity- The velocity of the profiled mechanism, in position units per second.acceleration- The acceleration of the profiled mechanism, in position units per second squared.jerk- The jerk of the profiled mechanism, in position units per second cubed.heading- The robot's heading in radians, or 0 if not applicable.
-
-