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

generateSimpleMotionProfile

@JvmStatic @JvmOverloads fun generateSimpleMotionProfile(start: MotionState, goal: MotionState, maxVel: Double, maxAccel: Double, maxJerk: Double = Double.NaN, overshoot: Boolean = false): MotionProfile

Generates a simple motion profile with constant maxVel, maxAccel, and maxJerk. 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

maxVel - maximum velocity

maxAccel - maximum acceleration

maxJerk - maximum jerk

overshoot -