public class Trajectory
Time-parametrized trajectory of poses.
Constructor and Description |
---|
Trajectory(java.util.List<? extends com.acmerobotics.roadrunner.trajectory.TrajectorySegment> segments)
Time-parametrized trajectory of poses.
|
Trajectory()
Time-parametrized trajectory of poses.
|
Modifier and Type | Method and Description |
---|---|
Pose2d |
acceleration(double time)
Returns the pose acceleration at the specified
time . |
double |
duration()
Returns the trajectory duration.
|
Pose2d |
end()
Returns the end pose.
|
Pose2d |
endAcceleration()
Returns the end pose acceleration.
|
Pose2d |
endVelocity()
Returns the end pose velocity.
|
Pose2d |
get(double time)
Returns the pose at the specified
time . |
java.util.List<com.acmerobotics.roadrunner.trajectory.TrajectorySegment> |
getSegments()
trajectory segments
|
Pose2d |
start()
Returns the start pose.
|
Pose2d |
startAcceleration()
Returns the start pose acceleration.
|
Pose2d |
startVelocity()
Returns the start pose velocity.
|
Pose2d |
velocity(double time)
Returns the pose velocity at the specified
time . |
public Trajectory(@NotNull java.util.List<? extends com.acmerobotics.roadrunner.trajectory.TrajectorySegment> segments)
Time-parametrized trajectory of poses.
segments
- trajectory segmentspublic Trajectory()
Time-parametrized trajectory of poses.
public double duration()
Returns the trajectory duration.
@NotNull public Pose2d velocity(double time)
Returns the pose velocity at the specified time
.
time
@NotNull public Pose2d acceleration(double time)
Returns the pose acceleration at the specified time
.
time
@NotNull public Pose2d start()
Returns the start pose.
@NotNull public Pose2d startVelocity()
Returns the start pose velocity.
@NotNull public Pose2d startAcceleration()
Returns the start pose acceleration.
@NotNull public Pose2d end()
Returns the end pose.
@NotNull public Pose2d endVelocity()
Returns the end pose velocity.
@NotNull public Pose2d endAcceleration()
Returns the end pose acceleration.
@NotNull public java.util.List<com.acmerobotics.roadrunner.trajectory.TrajectorySegment> getSegments()
trajectory segments