class PathTrajectorySegment : TrajectorySegment
Trajectory segment backed by a list of Path objects.
trajectoryConstraintsList
- motion constraints for each respective path
resolution
- resolution used for the motion profile (see MotionProfileGenerator.generateMotionProfile)
PathTrajectorySegment(path: Path, trajectoryConstraints: TrajectoryConstraints, resolution: Int = 250) PathTrajectorySegment(paths: List<Path> = emptyList(), trajectoryConstraintsList: List<TrajectoryConstraints> = emptyList(), resolution: Int = 250)
Trajectory segment backed by a list of Path objects. |
val paths: List<Path>
paths |
|
val profile: MotionProfile |
|
val trajectoryConstraintsList: List<TrajectoryConstraints>
motion constraints for each respective path |
fun acceleration(time: Double): Pose2d
Returns the pose acceleration at the given time. |
|
fun duration(): Double
Returns the duration of the segment. |
|
operator fun get(time: Double): Pose2d
Returns the pose at the given time. |
|
fun velocity(time: Double): Pose2d
Returns the pose velocity at the given time. |