core / com.acmerobotics.roadrunner.localization / Localizer

Localizer

interface Localizer

Generic interface for estimating robot pose over time.

Properties

poseEstimate

abstract var poseEstimate: Pose2d

Current robot pose estimate.

Functions

update

abstract fun update(): Unit

Completes a single localization update.

Inheritors

MecanumLocalizer

class MecanumLocalizer : Localizer

Default localizer for mecanum drives based on the drive encoders and (optionally) a heading sensor.

SwerveLocalizer

class SwerveLocalizer : Localizer

Default localizer for swerve drives based on the drive encoder positions, module orientations, and (optionally) a heading sensor.

TankLocalizer

class TankLocalizer : Localizer

Default localizer for tank drives based on the drive encoders and (optionally) a heading sensor.

ThreeTrackingWheelLocalizer

abstract class ThreeTrackingWheelLocalizer : Localizer

Localizer based on three unpowered tracking omni wheels.

TwoTrackingWheelLocalizer

abstract class TwoTrackingWheelLocalizer : Localizer

Localizer based on two unpowered tracking omni wheels and an orientation sensor.