Constructor and Description |
---|
TankLocalizer(TankDrive drive,
boolean useExternalHeading)
Default localizer for tank drives based on the drive encoders and (optionally) a heading sensor.
|
TankLocalizer(TankDrive drive)
Default localizer for tank drives based on the drive encoders and (optionally) a heading sensor.
|
Modifier and Type | Method and Description |
---|---|
Pose2d |
getPoseEstimate()
Current robot pose estimate.
|
void |
setPoseEstimate(Pose2d value)
Current robot pose estimate.
|
void |
update()
Completes a single localization update.
|
getPoseEstimate, setPoseEstimate, update
@JvmOverloads public TankLocalizer(@NotNull TankDrive drive, boolean useExternalHeading)
Default localizer for tank drives based on the drive encoders and (optionally) a heading sensor.
drive
- driveuseExternalHeading
- use external heading provided by an external sensor (e.g., IMU, gyroscope)@JvmOverloads public TankLocalizer(@NotNull TankDrive drive)
Default localizer for tank drives based on the drive encoders and (optionally) a heading sensor.
drive
- drive