Class RobotPoseIO.RobotPoseIOInputs
java.lang.Object
frc.robot.subsystems.robotpose.io.RobotPoseIO.RobotPoseIOInputs
- Enclosing interface:
- RobotPoseIO
Container of robot pose telemetry fields that AdvantageKit will persist.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanTrue when vision measurements are allowed to blend into the estimate.edu.wpi.first.math.geometry.Pose2dLatest fused pose estimate in meters and radians.booleanTrue when a vision measurement has been received.edu.wpi.first.math.geometry.Pose2dMost recent vision pose in meters and radians.doubleTimestamp of the last vision pose in seconds.edu.wpi.first.math.geometry.Pose2dRaw odometry-only pose from wheel encoders and gyro, without vision corrections. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
estimatedPose
public edu.wpi.first.math.geometry.Pose2d estimatedPoseLatest fused pose estimate in meters and radians. -
odometryOnlyPose
public edu.wpi.first.math.geometry.Pose2d odometryOnlyPoseRaw odometry-only pose from wheel encoders and gyro, without vision corrections.Useful as an AdvantageScope ghost bot to visualize odometry drift compared to the fused estimate.
-
lastVisionPose
public edu.wpi.first.math.geometry.Pose2d lastVisionPoseMost recent vision pose in meters and radians. -
lastVisionTimestampSeconds
public double lastVisionTimestampSecondsTimestamp of the last vision pose in seconds. -
hasVisionMeasurement
public boolean hasVisionMeasurementTrue when a vision measurement has been received. -
enableVisionFusion
public boolean enableVisionFusionTrue when vision measurements are allowed to blend into the estimate.
-
-
Constructor Details
-
RobotPoseIOInputs
public RobotPoseIOInputs()
-