core / com.acmerobotics.roadrunner.trajectory / WaitSegment

WaitSegment

class WaitSegment : TrajectorySegment

Static trajectory segment that holds a constant pose. Used for giving trajectories extra time to settle.

Parameters

pose - pose to hold

duration - duration

Constructors

<init>

WaitSegment(pose: Pose2d, duration: Double)

Static trajectory segment that holds a constant pose. Used for giving trajectories extra time to settle.

Functions

acceleration

fun acceleration(time: Double): Pose2d

Returns the pose acceleration at the given time.

duration

fun duration(): Double

Returns the duration of the segment.

get

fun get(time: Double): Pose2d

Returns the pose at the given time.

velocity

fun velocity(time: Double): Pose2d

Returns the pose velocity at the given time.