CompositePosePath

@Serializable
@SerialName(value = "CompositePosePath")
data class CompositePosePath(val paths: List<PosePath>, val offsets: List<Double> = paths.scan(0.0) { acc, path -> acc + path.length() }) : PosePath

Constructors

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

Properties

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

Functions

Link copied to clipboard
open fun begin(n: Int): Pose2dDual<Arclength>

Evaluates the pose path at the beginning (arc length = 0).

Link copied to clipboard
open fun end(n: Int): Pose2dDual<Arclength>

Evaluates the pose path at the end (arc length = length).

Link copied to clipboard
open operator override fun get(s: Double, n: Int): Pose2dDual<Arclength>
Link copied to clipboard
open override fun length(): Double

Returns the total arc length of the path.

Link copied to clipboard
open fun map(map: PoseMap): MappedPosePath

Applies a pose transformation map to this path.

Link copied to clipboard
open operator override fun plus(other: PosePath): CompositePosePath

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

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

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