public TwoTrackingWheelLocalizer(@NotNull java.util.List<com.acmerobotics.roadrunner.geometry.Pose2d> wheelPoses)
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)@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!)
public double getHeading()
Returns the heading of the robot (usually from a gyroscope or IMU).
@Nullable public java.lang.Double getHeadingVelocity()
Returns the heading of the robot (usually from a gyroscope or IMU).