CompositeTrajectory

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

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Transient
val path: CompositePosePath
Link copied to clipboard

Functions

Link copied to clipboard
open fun duration(): Duration

Returns the total time duration required to execute the trajectory.

Link copied to clipboard

Returns the robot state at the end of the trajectory with respect to displacement.

Link copied to clipboard

Returns the robot state at the end of the trajectory with respect to time.

Link copied to clipboard
open operator override fun get(s: Double): RobotState

Evaluates the trajectory at the given parameter value to obtain the robot state.

Link copied to clipboard
open override fun length(): Double

Returns the total arc length of the trajectory.

Link copied to clipboard

Applies a pose transformation map to this trajectory.

Link copied to clipboard
open operator fun plus(other: Trajectory<Arclength>): CompositeTrajectory

Combines this trajectory with another trajectory to create a composite trajectory.

Link copied to clipboard
open override fun project(query: Vector2d, init: Double): Double

Projects a query position onto the trajectory's path using Newton's method.

Link copied to clipboard
open fun start(): RobotState

Returns the robot state at the start of the trajectory (parameter = 0).

Link copied to clipboard
open override fun wrtDisp(): DisplacementTrajectory

Converts this trajectory to a displacement-parameterized representation.

Link copied to clipboard
open override fun wrtTime(): TimeTrajectory

Converts this trajectory to a time-parameterized representation.