CompoundPath

class CompoundPath(paths: List<Path>) : Path

Represents a compound path made up of multiple paths. The paths are assumed to be connected end-to-end, meaning the end pose of one path should match the start pose of the next path in the list.

Parameters

paths

A list of paths that make up the compound path.

Constructors

Link copied to clipboard
constructor(paths: List<Path>)

Types

Link copied to clipboard
class Builder

Properties

Link copied to clipboard
open override var endPose: Pose

The end pose of the path

Link copied to clipboard
open override var startPose: Pose

The start and end poses of the path

Functions

Link copied to clipboard
open fun getClosestPoint(position: Pose): Pose

Gets the closest point on the path to the given position

Link copied to clipboard
open override fun getClosestPointT(position: Pose): Double

Gets the closest point t value to the given position on the path

Link copied to clipboard
open override fun getCurvature(t: Double): Double

Gets the curvature at the given parameter t

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

Gets the arc length of the path

Link copied to clipboard
open override fun getLengthSoFar(t: Double): Double

Gets the arc length from the start of the path to the given parameter t

Link copied to clipboard
open override fun getPoint(t: Double): Pose

Gets the point at the given parameter t

Link copied to clipboard
open override fun getPose(t: Double): Pose

Gets the pose on the path at the given parameter t

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

Gets the parameter t value from the given arc length