abstract class TwoTrackingWheelLocalizer : Localizer
(source)
Localizer based on two unpowered tracking omni wheels and an orientation sensor.
wheelPoses
- wheel poses relative to the center of the robot (positive X points forward on the robot)
<init> |
Localizer based on two unpowered tracking omni wheels and an orientation sensor. TwoTrackingWheelLocalizer(wheelPoses: List<Pose2d>) |
poseEstimate |
Current robot pose estimate. open var poseEstimate: Pose2d |
getHeading |
Returns the heading of the robot (usually from a gyroscope or IMU). abstract fun getHeading(): Double |
getWheelPositions |
Returns the positions of the tracking wheels in the desired distance units (not encoder counts!) abstract fun getWheelPositions(): List<Double> |
update |
Completes a single localization update. open fun update(): Unit |