core / com.acmerobotics.roadrunner.localization / ThreeTrackingWheelLocalizer

ThreeTrackingWheelLocalizer

abstract class ThreeTrackingWheelLocalizer : Localizer

Localizer based on three unpowered tracking omni wheels.

Parameters

wheelPositions - wheel positions relative to the center of the robot (positive X points forward on the robot)

wheelOrientations - angular orientations of the wheels measured counterclockwise from positive X in radians

Constructors

<init>

ThreeTrackingWheelLocalizer(wheelPositions: List<Vector2d>, wheelOrientations: List<Double>)

Localizer based on three unpowered tracking omni wheels.

Properties

poseEstimate

open var poseEstimate: Pose2d

Current robot pose estimate.

Functions

getWheelPositions

abstract fun getWheelPositions(): List<Double>

Returns the positions of the tracking wheels in the desired distance units (not encoder counts!)

update

open fun update(): Unit

Completes a single localization update.