CompositeCancelableTrajectory

@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.

Constructors

Link copied to clipboard
constructor(trajectories: List<CancelableTrajectory>, offsets: List<Double> = trajectories.scan(0.0) { acc, t -> acc + t.length() })

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Cancels the composite trajectory at the given displacement, returning a new trajectory starting from that point.

Link copied to clipboard
open override fun duration(): Duration
Link copied to clipboard
open override fun endWrtDisp(): Pose2dDual<Time>
Link copied to clipboard
open override fun endWrtTime(): Pose2dDual<Time>
Link copied to clipboard
open operator override fun get(param: Double): Pose2dDual<Time>
Link copied to clipboard
open override fun length(): Double
Link copied to clipboard
open override fun map(map: PoseMap): DisplacementTrajectory
Link copied to clipboard
open operator override fun plus(other: Trajectory<Arclength>): CompositeTrajectory
Link copied to clipboard
open override fun project(query: Vector2d, init: Double): Double
Link copied to clipboard
open override fun start(): Pose2dDual<Time>
Link copied to clipboard
open override fun wrtDisp(): DisplacementTrajectory
Link copied to clipboard
open override fun wrtTime(): TimeTrajectory