public class MotionProfile
Trapezoidal motion profile composed of motion segments.
public MotionProfile(@NotNull
java.util.List<com.acmerobotics.roadrunner.profile.MotionSegment> segments)
Trapezoidal motion profile composed of motion segments.
segments - profile motion segments@NotNull public MotionState get(double t)
Returns the class MotionState at time t.
class MotionState,
tpublic double duration()
Returns the duration of the motion profile.
@NotNull public MotionProfile reversed()
Returns a reversed version of the motion profile.
@NotNull public MotionProfile flipped()
Returns a flipped version of the motion profile.
@NotNull public MotionState start()
Returns the start class MotionState.
class MotionState@NotNull public MotionState end()
Returns the end class MotionState.
class MotionState@NotNull public MotionProfile plus(@NotNull MotionProfile other)
Returns a new motion profile with other concatenated.
other@NotNull public java.util.List<com.acmerobotics.roadrunner.profile.MotionSegment> getSegments()
profile motion segments