core / com.acmerobotics.roadrunner.trajectory / PointTurn

PointTurn

class PointTurn : TrajectorySegment

Point turn trajectory segment.

Parameters

start - start pose

angle - angle to sweep through (may exceed a full revolution)

constraints - drive constraints

Constructors

<init>

PointTurn(start: Pose2d, angle: Double, constraints: DriveConstraints)

Point turn trajectory segment.

Properties

angle

val angle: Double

angle to sweep through (may exceed a full revolution)

constraints

val constraints: DriveConstraints

drive constraints

profile

val profile: MotionProfile

Motion profile for the time parametrization of the turn.

start

val start: Pose2d

start pose

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.