Package frc.robot.subsystems.vision
Class Vision.VisionConfig
java.lang.Object
frc.robot.subsystems.vision.Vision.VisionConfig
- Enclosing class:
- Vision
Static configuration for the Vision subsystem, including Limelight identifiers,
camera-to-robot transforms, pipeline indices, and pose estimation covariance parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRobot-relative pose of the rear Limelight.NetworkTables hostname for the rear-facing Limelight.intdoubleVariance used to effectively ignore a measurement dimension (e.g., heading from MT2 or single-tag MT1).doubleMeasurements older than this many seconds are not fused.Robot-relative pose of the left Limelight.NetworkTables hostname for the left-facing Limelight.intgetName()Robot-relative pose of the right Limelight.NetworkTables hostname for the right-facing Limelight.intRobot-centre to turret pivot offset (metres).Turret pivot to camera offset (metres).doubleDefault rotational standard deviation for vision pose measurements (radians).doubleDefault translational standard deviation for vision pose measurements (metres).doublePre-built std-dev matrix using the default X/Y/theta values.
-
Constructor Details
-
VisionConfig
public VisionConfig()
-
-
Method Details
-
getName
-
getBackLL
NetworkTables hostname for the rear-facing Limelight. -
getBackConfig
Robot-relative pose of the rear Limelight. Translation in metres (x, y, z); rotation in degrees (roll, pitch, yaw). -
getLeftLL
NetworkTables hostname for the left-facing Limelight. -
getLeftConfig
Robot-relative pose of the left Limelight. Translation in metres (x, y, z); rotation in degrees (roll, pitch, yaw). -
getRightLL
NetworkTables hostname for the right-facing Limelight. -
getRightConfig
Robot-relative pose of the right Limelight. Translation in metres (x, y, z); rotation in degrees (roll, pitch, yaw). -
getRobotToTurretCenter
Robot-centre to turret pivot offset (metres). -
getTurretCenterToCamera
Turret pivot to camera offset (metres). -
getBackTagPipeline
public int getBackTagPipeline() -
getLeftTagPipeline
public int getLeftTagPipeline() -
getRightTagPipeline
public int getRightTagPipeline() -
getVisionStdDevX
public double getVisionStdDevX()Default translational standard deviation for vision pose measurements (metres). Lower values trust vision more; higher values trust odometry more. -
getVisionStdDevY
public double getVisionStdDevY()- See Also:
-
visionStdDevX
-
getVisionStdDevTheta
public double getVisionStdDevTheta()Default rotational standard deviation for vision pose measurements (radians). Only used for MT1; MT2 heading is always discarded (kLargeVariance). -
getKLargeVariance
public double getKLargeVariance()Variance used to effectively ignore a measurement dimension (e.g., heading from MT2 or single-tag MT1). -
getKMaxTimeDeltaSeconds
public double getKMaxTimeDeltaSeconds()Measurements older than this many seconds are not fused. -
getVisionStdMatrix
Pre-built std-dev matrix using the default X/Y/theta values.
-