core / com.acmerobotics.roadrunner.geometry / Pose2d

Pose2d

data class Pose2d (source)

Class for representing 2D robot poses (x, y, and heading) and their derivatives.

Constructors

<init>

Pose2d(pos: Vector2d, heading: Double)

Class for representing 2D robot poses (x, y, and heading) and their derivatives.

Pose2d(x: Double = 0.0, y: Double = 0.0, heading: Double = 0.0)

Properties

heading

val heading: Double

x

val x: Double

y

val y: Double

Functions

div

operator fun div(scalar: Double): Pose2d

epsilonEquals

infix fun epsilonEquals(other: Pose2d): Boolean

epsilonEqualsHeading

infix fun epsilonEqualsHeading(other: Pose2d): Boolean

headingVec

fun headingVec(): Vector2d

minus

operator fun minus(other: Pose2d): Pose2d

plus

operator fun plus(other: Pose2d): Pose2d

times

operator fun times(scalar: Double): Pose2d

toString

fun toString(): String

unaryMinus

operator fun unaryMinus(): Pose2d

vec

fun vec(): Vector2d