core / com.acmerobotics.roadrunner.localization / ThreeTrackingWheelLocalizer

ThreeTrackingWheelLocalizer

abstract class ThreeTrackingWheelLocalizer : Localizer

Localizer based on three unpowered tracking omni wheels.

Parameters

wheelPoses - wheel poses relative to the center of the robot (positive X points forward on the robot)

Constructors

<init>

ThreeTrackingWheelLocalizer(wheelPoses: List<Pose2d>)

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.