TrajectoryWithMarkers

@Serializable
@SerialName(value = "TrajectoryWithMarkers")
data class TrajectoryWithMarkers<Param : DualParameter>(val trajectory: Trajectory<Param>, val markers: List<Marker>) : Trajectory<Param>

Trajectory with markers.

Constructors

Link copied to clipboard
constructor(trajectory: Trajectory<Param>, markers: List<Marker>)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun duration(): Duration

Returns the total time duration required to execute the trajectory.

Link copied to clipboard
open override fun endWrtDisp(): RobotState

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

Link copied to clipboard
open override fun endWrtTime(): RobotState

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

Link copied to clipboard
open operator override fun get(param: 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
open override fun map(map: PoseMap): DisplacementTrajectory

Applies a pose transformation map to this trajectory.

Link copied to clipboard
open operator override fun plus(other: Trajectory<Param>): 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 override 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.