core / com.acmerobotics.roadrunner.profile / MotionProfileBuilder

MotionProfileBuilder

class MotionProfileBuilder (source)

Easy-to-use builder for creating motion profiles.

Parameters

start - start motion state

Constructors

<init>

Easy-to-use builder for creating motion profiles.

MotionProfileBuilder(start: MotionState)

Functions

appendAccelerationControl

Appends a constant-acceleration control for the provided duration.

fun appendAccelerationControl(accel: Double, dt: Double): MotionProfileBuilder

appendJerkControl

Appends a constant-jerk control for the provided duration.

fun appendJerkControl(jerk: Double, dt: Double): MotionProfileBuilder

appendProfile

Appends a MotionProfile to the current queue of control actions.

fun appendProfile(profile: MotionProfile): MotionProfileBuilder

build

Constructs and returns the MotionProfile instance.

fun build(): MotionProfile