Path

interface Path

Path interface representing a path in 2D space

Inheritors

Properties

Link copied to clipboard
abstract var endPose: Pose

The end pose of the path

Link copied to clipboard

Interpolation mode between start and end heading

Link copied to clipboard
abstract var startPose: Pose

The start and end poses of the path

Link copied to clipboard

The velocity constraint for the path, which can be used to limit the maximum velocity at different points along 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
abstract fun getClosestPointT(position: Pose): Double

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

Link copied to clipboard
abstract fun getCurvature(t: Double): Double

Gets the curvature at the given parameter t

Link copied to clipboard

Get interpolated heading target at a given parameter t

Link copied to clipboard
abstract fun getLength(): Double

Gets the arc length of the path

Link copied to clipboard
abstract fun getLengthSoFar(t: Double): Double

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

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

Gets the point at the given parameter t

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

Gets the pose on the path at the given parameter t

Link copied to clipboard
abstract fun getTFromLength(length: Double): Double

Gets the parameter t value from the given arc length