core / com.acmerobotics.roadrunner.trajectory / TrajectoryGenerator / generateTrajectory

generateTrajectory

@JvmOverloads fun generateTrajectory(path: Path, velocityConstraint: TrajectoryVelocityConstraint, accelerationConstraint: TrajectoryAccelerationConstraint, start: MotionState = MotionState(0.0, 0.0, 0.0), goal: MotionState = MotionState(path.length(), 0.0, 0.0), temporalMarkers: List<TemporalMarker> = emptyList(), displacementMarkers: List<DisplacementMarker> = emptyList(), spatialMarkers: List<SpatialMarker> = emptyList(), resolution: Double = 0.25): Trajectory (source)

Generate a dynamic constraint trajectory.

Parameters

path - path

velocityConstraints - trajectory velocity constraints

accelerationConstraints - trajectory acceleration constraints

start - start motion state

goal - goal motion state

temporalMarkers - temporal markers

spatialMarkers - spatial markers

resolution - dynamic profile sampling resolution