class MotionProfileBuilder
(source)
Easy-to-use builder for creating motion profiles.
<init> |
Easy-to-use builder for creating motion profiles. MotionProfileBuilder(start: MotionState) |
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 |