@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@NotNull public Pose2d getPoseEstimate()
Current robot pose estimate.
public void setPoseEstimate(@NotNull Pose2d value)
Current robot pose estimate.
@Nullable public Pose2d getPoseVelocity()
Current robot pose velocity (optional)
public void update()
Completes a single localization update.