core / com.acmerobotics.roadrunner.trajectory / PathTrajectorySegment / <init>

<init>

PathTrajectorySegment(paths: List<Path> = emptyList(), trajectoryConstraintsList: List<TrajectoryConstraints> = emptyList(), start: MotionState = MotionState(0.0, 0.0, 0.0), goal: MotionState = MotionState(paths.sumByDouble { it.length() }, 0.0, 0.0), resolution: Double = 0.25)

Parameters

paths - paths

trajectoryConstraintsList - list of trajectory constraints

start - profile start state

goal - profile goal (end) state

resolution - resolution for the motion profile

PathTrajectorySegment(path: Path, trajectoryConstraints: TrajectoryConstraints, start: MotionState = MotionState(0.0, 0.0, 0.0), goal: MotionState = MotionState(path.length(), 0.0, 0.0), resolution: Double = 0.25)

Parameters

path - path

trajectoryConstraints - trajectory constraints

resolution - resolution for the motion profile

PathTrajectorySegment(paths: List<Path> = emptyList(), constraints: DriveConstraints, start: MotionState = MotionState(0.0, 0.0, 0.0, 0.0), goal: MotionState = MotionState(paths.sumByDouble { it.length() }, 0.0, 0.0, 0.0))

Parameters

paths - paths

constraints - drive constraints

PathTrajectorySegment(path: Path, constraints: DriveConstraints, start: MotionState = MotionState(0.0, 0.0, 0.0, 0.0), goal: MotionState = MotionState(path.length(), 0.0, 0.0, 0.0))

Parameters

path - path

constraints - drive constraints

PathTrajectorySegment(paths: List<Path>, profile: MotionProfile)

Trajectory segment backed by a list of Path objects.

Parameters

paths - paths

profile - motion profile