public class MotionProfile
Trapezoidal motion profile composed of motion segments.
| Constructor and Description |
|---|
MotionProfile(java.util.List<com.acmerobotics.roadrunner.profile.MotionSegment> segments)
Trapezoidal motion profile composed of motion segments.
|
| Modifier and Type | Method and Description |
|---|---|
double |
duration()
Returns the duration of the motion profile.
|
MotionState |
end()
Returns the end
class MotionState. |
MotionProfile |
flipped()
Returns a flipped version of the motion profile.
|
MotionState |
get(double t)
Returns the
class MotionState at time t. |
MotionProfile |
plus(MotionProfile other)
Returns a new motion profile with
other concatenated. |
MotionProfile |
reversed()
Returns a reversed version of the motion profile.
|
MotionState |
start()
Returns the start
class MotionState. |
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