public class WaitSegment implements TrajectorySegment
Static trajectory segment that holds a constant pose. Used for giving trajectories extra time to settle.
| Constructor and Description |
|---|
WaitSegment(Pose2d pose,
double duration)
Static trajectory segment that holds a constant pose. Used for giving trajectories extra time to settle.
|
| Modifier and Type | Method and Description |
|---|---|
Pose2d |
acceleration(double time)
Returns the pose acceleration at the given
time. |
double |
duration()
Returns the duration of the segment.
|
Pose2d |
get(double time)
Returns the pose at the given
time. |
Pose2d |
velocity(double time)
Returns the pose velocity at the given
time. |
acceleration, duration, get, velocitypublic WaitSegment(@NotNull
Pose2d pose,
double duration)
Static trajectory segment that holds a constant pose. Used for giving trajectories extra time to settle.
pose - pose to holdduration - duration