core / com.acmerobotics.roadrunner.profile / MotionProfileGenerator / generateSimpleMotionProfile

generateSimpleMotionProfile

@JvmStatic @JvmOverloads fun generateSimpleMotionProfile(start: MotionState, goal: MotionState, maximumVelocity: Double, maximumAcceleration: Double, maximumJerk: Double = Double.NaN, overshoot: Boolean = false): MotionProfile

Generates a simple motion profile with constant maximumVelocity, maximumAcceleration, and maximumJerk. If constraints can't be obeyed, there are two possible fallbacks. If overshoot is true, then two profiles will be concatenated (the first one overshoots the goal and the second one reverses back to reach the goal). Otherwise, The highest order constraint (e.g., max jerk for jerk-limited profiles) is repeatedly violated until the goal is satisfiable.

Parameters

start - start motion state

goal - goal motion state

maximumVelocity - maximum velocity

maximumAcceleration - maximum acceleration

maximumJerk - maximum jerk

overshoot -