Package-level declarations

Types

Link copied to clipboard
@Serializable
@SerialName(value = "AfterDisp")
class AfterDispTrigger(val disp: Double) : MarkerTrigger
Link copied to clipboard
@Serializable
@SerialName(value = "AfterTime")
class AfterTimeTrigger(val time: Double) : MarkerTrigger
Link copied to clipboard
@Serializable
@SerialName(value = "AtPoint")
class AtPointTrigger @JvmOverloads constructor(val point: Vector2d, val tolerance: Double = 2.0) : MarkerTrigger
Link copied to clipboard
@Serializable
@SerialName(value = "AtPose")
class AtPoseTrigger @JvmOverloads constructor(val pose: Pose2d, val linearTolerance: Double = 2.0, val angularTolerance: Double = Math.toRadians(5.0)) : MarkerTrigger
Link copied to clipboard
@Serializable
@SerialName(value = "CancelableTrajectory")
class CancelableTrajectory(val thisPath: PosePath, val cProfile: CancelableProfile, val offsets: List<Double>) : DisplacementTrajectory
Link copied to clipboard
@Serializable
@SerialName(value = "CompositeCancelableTrajectory")
class CompositeCancelableTrajectory @JvmOverloads constructor(val trajectories: List<CancelableTrajectory>, val offsets: List<Double> = trajectories.scan(0.0) { acc, t -> acc + t.length() }) : Trajectory<Arclength>

Represents a composite trajectory made up of multiple CancelableTrajectory segments. Allows cancellation at any displacement along the combined trajectory, returning a new composite trajectory.

Link copied to clipboard
@Serializable
@SerialName(value = "CompositeTrajectory")
class CompositeTrajectory @JvmOverloads constructor(val trajectories: List<DisplacementTrajectory>, val offsets: List<Double> = trajectories.scan(0.0) { acc, t -> acc + t.length() }) : Trajectory<Arclength>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "DisplacementTrajectory")
open class DisplacementTrajectory(val path: PosePath, val profile: DisplacementProfile) : Trajectory<Arclength>
Link copied to clipboard
@Serializable
class Marker(val trigger: MarkerTrigger, val callback: MarkerCallback = MarkerCallback {})

Represents a trajectory marker, which consists of a trigger condition and a callback to execute when triggered.

Link copied to clipboard
fun interface MarkerCallback

Functional interface for marker callbacks triggered during trajectory execution. Implementations define actions to perform when a marker is triggered.

Link copied to clipboard
fun interface MarkerTrigger

Functional interface representing a marker trigger. A marker trigger determines whether a specific condition is met during the execution of a trajectory, based on the robot's state, the trajectory, and the current progress along the trajectory.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Do not instantiate directly. See SafePosePathBuilder.

Link copied to clipboard
Link copied to clipboard

Wrapper for PosePathSeqBuilder that provides the same guarantees without throwing PosePathSeqBuilder.RotationContinuityException.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "TimeTrajectory")
class TimeTrajectory(val path: PosePath, val profile: TimeProfile) : Trajectory<Time>
Link copied to clipboard
class TimeTurn(val beginPose: Pose2d, val angle: Double, val constraints: TurnConstraints)

A time-indexed turn beginning at beginPose and rotating CCW angle radians subject to constraints.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class TrajectoryBuilderParams(val arcLengthSamplingEps: Double, val profileParams: ProfileParams)
Link copied to clipboard
@Serializable
@SerialName(value = "TrajectoryWithMarkers")
data class TrajectoryWithMarkers<Param : DualParameter>(val trajectory: Trajectory<Param>, val markers: List<Marker>) : Trajectory<Param>

Trajectory with markers.

Link copied to clipboard
data class TurnConstraints(val maxAngVel: Double, val minAngAccel: Double, val maxAngAccel: Double)

Functions

Link copied to clipboard
fun compose(vararg trajectories: Trajectory<*>): CompositeTrajectory
Link copied to clipboard