ThreeEncoderLocalizer

class ThreeEncoderLocalizer(left: RotaryEncoder, side: RotaryEncoder, right: RotaryEncoder, wheelRad: Double, wheelDist: Double, rotaryCalibrationConstant: Double) : Localizer

System to localize the robot using 3 - wheel odometry.

Parameters

left

Left encoder

side

Side encoder

right

Right encoder

wheelRad

Radius of the encoder wheels

wheelDist

Distance between the two forward wheels

Constructors

Link copied to clipboard
constructor(left: RotaryEncoder, side: RotaryEncoder, right: RotaryEncoder, wheelRad: Double, wheelDist: Double, rotaryCalibrationConstant: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override var localVelocity: Pose

Velocity in robot space

Link copied to clipboard
open override var pos: Pose
Link copied to clipboard
Link copied to clipboard
var rad: Double
Link copied to clipboard
Link copied to clipboard

Distance that the side encoder moves when the robot turns one radian

Link copied to clipboard
Link copied to clipboard
open override var speed: Double
Link copied to clipboard
open override var velocity: Pose

Velocity in absolute space

Functions

Link copied to clipboard
open override fun reset()

Reset the position of the localizer to (0,0,0)

Link copied to clipboard
open override fun update()

Update robot position based on encoder data