Package edu.wpi.first.math.trajectory
Class Trajectory.State
java.lang.Object
edu.wpi.first.math.trajectory.Trajectory.State
- All Implemented Interfaces:
ProtobufSerializable
,WPISerializable
- Enclosing class:
- Trajectory
Represents a time-parameterized trajectory. The trajectory contains of various States that
represent the pose, curvature, time elapsed, velocity, and acceleration at that point.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
The acceleration at that point of the trajectory in m/s².double
The curvature at that point of the trajectory in rad/m.The pose at that point of the trajectory.static final TrajectoryStateProto
Trajectory.State protobuf for serialization.double
The time elapsed since the beginning of the trajectory in seconds.double
The speed at that point of the trajectory in meters per second. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
proto
Trajectory.State protobuf for serialization. -
time
The time elapsed since the beginning of the trajectory in seconds. -
velocity
The speed at that point of the trajectory in meters per second. -
acceleration
The acceleration at that point of the trajectory in m/s². -
pose
The pose at that point of the trajectory. -
curvature
The curvature at that point of the trajectory in rad/m.
-
-
Constructor Details
-
State
public State()Default constructor. -
State
Constructs a State with the specified parameters.- Parameters:
time
- The time elapsed since the beginning of the trajectory in seconds.velocity
- The speed at that point of the trajectory in m/s.acceleration
- The acceleration at that point of the trajectory in m/s².pose
- The pose at that point of the trajectory.curvature
- The curvature at that point of the trajectory in rad/m.
-
-
Method Details