Package-level declarations

Types

Link copied to clipboard
@Serializable
@SerialName(value = "ArclengthReparamPath")
data class ArclengthReparamCurve2d(val curve: PositionPath<*>, val samples: IntegralScanResult) : PositionPath<Arclength>

Arclength reparameterization of curve.

Link copied to clipboard
@Serializable
data class BezierCurve1d(val coefficients: List<Double>)
Link copied to clipboard
@Serializable
@SerialName(value = "BezierCurve2d")
class BezierCurve2dInternal(val x: BezierCurve1d, val y: BezierCurve1d) : PositionPath<Internal>
Link copied to clipboard
@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
Link copied to clipboard
@Serializable
@SerialName(value = "CompositePositionPath")
data class CompositePositionPath<Param : DualParameter> @JvmOverloads constructor(val paths: List<PositionPath<Param>>, val offsets: List<Double> = paths.scan(0.0) { acc, path -> acc + path.length() }) : PositionPath<Param>
Link copied to clipboard
@Serializable
data class ConstantHeadingPath(val heading: Rotation2d, val length: Double) : HeadingPath
Link copied to clipboard
interface HeadingPath
Link copied to clipboard
@Serializable
@SerialName(value = "HeadingPath")
data class HeadingPosePath(val posPath: PositionPath<Arclength>, val headingPath: HeadingPath) : PosePath
Link copied to clipboard
@Serializable
@SerialName(value = "IdentityPoseMap")
object IdentityPoseMap : PoseMap
Link copied to clipboard
@Serializable
@SerialName(value = "Line")
data class Line(val begin: Vector2d, val dir: Vector2d, val length: Double) : PositionPath<Arclength>

Line beginning at position begin, pointed in direction dir, and having length length.

Link copied to clipboard
@Serializable
data class LinearHeadingPath(val begin: Rotation2d, val angle: Double, val length: Double) : HeadingPath
Link copied to clipboard
@Serializable
@SerialName(value = "MappedPosePath")
data class MappedPosePath(val basePath: PosePath, val poseMap: PoseMap) : PosePath
Link copied to clipboard
@Serializable
@SerialName(value = "OffsetPosePath")
class OffsetPosePath(val path: PosePath, val offsets: List<Double> = listOf(0.0, path.length())) : PosePath
Link copied to clipboard
fun interface PoseMap
Link copied to clipboard
interface PosePath
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "PositionPathView")
data class PositionPathView<Param : DualParameter>(val path: PositionPath<Param>, val offset: Double, val length: Double) : PositionPath<Param>
Link copied to clipboard
@Serializable
data class QuinticSpline1d(val a: Double, val b: Double, val c: Double, val d: Double, val e: Double, val f: Double)
Link copied to clipboard
@Serializable
@SerialName(value = "QuinticSpline2d")
data class QuinticSpline2dInternal(val x: QuinticSpline1d, val y: QuinticSpline1d) : PositionPath<Internal>

Path comprised of two QuinticSpline1ds.

Link copied to clipboard
@Serializable
data class SplineHeadingPath(val begin: Rotation2d, val spline: QuinticSpline1d, val length: Double) : HeadingPath
Link copied to clipboard
data class TangentHeadingPath(val posPath: PositionPath<Arclength>, val offset: Double = 0.0) : HeadingPath
Link copied to clipboard
@Serializable
@SerialName(value = "TangentPath")
data class TangentPath(val path: PositionPath<Arclength>, val offset: Double) : PosePath
Link copied to clipboard
class TurnPath(val position: Vector2d, val headingPath: HeadingPath) : PosePath

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun project(path: PositionPath<Arclength>, query: Vector2d, init: Double): Double

Project position query onto position path path starting with initial guess init.

Link copied to clipboard