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
Modifier and TypeFieldDescriptiondouble
The acceleration at that point of the trajectory.double
The curvature at that point of the trajectory.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.double
The speed at that point of the trajectory. -
Constructor Summary
-
Method Summary
-
Field Details
-
proto
Trajectory.State protobuf for serialization. -
timeSeconds
The time elapsed since the beginning of the trajectory. -
velocityMetersPerSecond
The speed at that point of the trajectory. -
accelerationMetersPerSecondSq
The acceleration at that point of the trajectory. -
poseMeters
The pose at that point of the trajectory. -
curvatureRadPerMeter
The curvature at that point of the trajectory.
-
-
Constructor Details
-
State
public State()Default constructor. -
State
public State(double timeSeconds, double velocityMetersPerSecond, double accelerationMetersPerSecondSq, Pose2d poseMeters, double curvatureRadPerMeter) Constructs a State with the specified parameters.- Parameters:
timeSeconds
- The time elapsed since the beginning of the trajectory.velocityMetersPerSecond
- The speed at that point of the trajectory.accelerationMetersPerSecondSq
- The acceleration at that point of the trajectory.poseMeters
- The pose at that point of the trajectory.curvatureRadPerMeter
- The curvature at that point of the trajectory.
-
-
Method Details