public ThreeTrackingWheelLocalizer(@NotNull java.util.List<com.acmerobotics.roadrunner.geometry.Pose2d> wheelPoses)
Localizer based on three unpowered tracking omni wheels.
wheelPoses
- wheel poses relative to the center of the robot (positive X points forward on the robot)@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 setPoseVelocity(@Nullable Pose2d p)
Current robot pose velocity (optional)
public void update()
Completes a single localization update.
@NotNull public java.util.List<java.lang.Double> getWheelPositions()
Returns the positions of the tracking wheels in the desired distance units (not encoder counts!)
@Nullable public java.util.List<java.lang.Double> getWheelVelocities()
Returns the velocities of the tracking wheels in the desired distance units (not encoder counts!)