Pose

data class Pose @JvmOverloads constructor(    val x: Double = 0.0,     val y: Double = 0.0,     val heading: Double = 0.0)

Represents robot's position and heading

Parameters

x

x position

y

y position

heading

heading, in radians

Constructors

Link copied to clipboard
fun Pose(v: Vector, h: Double)

Secondary constructor that takes a vector and heading

Link copied to clipboard
fun Pose(    x: Double = 0.0,     y: Double = 0.0,     heading: Double = 0.0)

Properties

Link copied to clipboard
val heading: Double = 0.0
Link copied to clipboard
val vec: Vector

This pose's position vector

Link copied to clipboard
val x: Double = 0.0
Link copied to clipboard
val y: Double = 0.0

Functions

Link copied to clipboard
open override fun toString(): String

String of x, y, and heading in degrees