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