public class MotionProfileBuilder
Easy-to-use builder for creating motion profiles.
Constructor and Description |
---|
MotionProfileBuilder(MotionState start)
Easy-to-use builder for creating motion profiles.
|
Modifier and Type | Method and Description |
---|---|
MotionProfileBuilder |
appendAccelerationControl(double accel,
double dt)
Appends a constant-acceleration control for the provided duration.
|
MotionProfileBuilder |
appendJerkControl(double jerk,
double dt)
Appends a constant-jerk control for the provided duration.
|
MotionProfileBuilder |
appendProfile(MotionProfile profile)
Appends a
class MotionProfile to the current queue of control actions. |
MotionProfile |
build()
Constructs and returns the
class MotionProfile instance. |
public MotionProfileBuilder(@NotNull MotionState start)
Easy-to-use builder for creating motion profiles.
start
- start motion state@NotNull public MotionProfileBuilder appendJerkControl(double jerk, double dt)
Appends a constant-jerk control for the provided duration.
@NotNull public MotionProfileBuilder appendAccelerationControl(double accel, double dt)
Appends a constant-acceleration control for the provided duration.
@NotNull public MotionProfileBuilder appendProfile(@NotNull MotionProfile profile)
Appends a class MotionProfile
to the current queue of control actions.
class MotionProfile
@NotNull public MotionProfile build()
Constructs and returns the class MotionProfile
instance.
class MotionProfile