SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
subzero::TargetTracker::TargetTrackerConfig Struct Reference

#include <TargetTracker.h>

+ Collaboration diagram for subzero::TargetTracker::TargetTrackerConfig:

Public Attributes

units::degree_t cameraAngle
 Camera angle relative to the floor; positive = up.
 
units::inch_t cameraLensHeight
 Camera height relative to the floor.
 
double confidenceThreshold
 Targets must have a greater value in order to be used.
 
std::string limelightName
 Name of the limelight in shuffleboard.
 
units::inch_t gamepieceWidth
 Width of the gamepiece.
 
units::dimensionless::scalar_t focalLength
 Calculated by doing: (known distance / known width in pixels) * gamepiece width.
 
frc::Pose2d simGamepiecePose
 Pose of the mock gamepiece in sim.
 
units::degree_t gamepieceRotation
 Rotation of the gamepiece relative to the field; helpful for automatic intaking.
 
double trigDistancePercentage
 Ranges from 0 to 1; Multiplies trig-based distances and then applies the inverse to width-based estimate.
 
double areaPercentageThreshold
 Ignore any targets below this percentage to exclude spurious detections.
 
uint8_t maxTrackedItems
 Max number of items that will be pushed to SmartDashboard as poses.
 
frc::Pose2d invalidTrackedPose
 Move invalid objects to this pose.
 

Detailed Description

Definition at line 97 of file TargetTracker.h.

Member Data Documentation

◆ areaPercentageThreshold

double subzero::TargetTracker::TargetTrackerConfig::areaPercentageThreshold

Ignore any targets below this percentage to exclude spurious detections.

Definition at line 151 of file TargetTracker.h.

◆ cameraAngle

units::degree_t subzero::TargetTracker::TargetTrackerConfig::cameraAngle

Camera angle relative to the floor; positive = up.

Definition at line 102 of file TargetTracker.h.

◆ cameraLensHeight

units::inch_t subzero::TargetTracker::TargetTrackerConfig::cameraLensHeight

Camera height relative to the floor.

Definition at line 107 of file TargetTracker.h.

◆ confidenceThreshold

double subzero::TargetTracker::TargetTrackerConfig::confidenceThreshold

Targets must have a greater value in order to be used.

Definition at line 112 of file TargetTracker.h.

◆ focalLength

units::dimensionless::scalar_t subzero::TargetTracker::TargetTrackerConfig::focalLength

Calculated by doing: (known distance / known width in pixels) * gamepiece width.

Definition at line 128 of file TargetTracker.h.

◆ gamepieceRotation

units::degree_t subzero::TargetTracker::TargetTrackerConfig::gamepieceRotation

Rotation of the gamepiece relative to the field; helpful for automatic intaking.

Definition at line 139 of file TargetTracker.h.

◆ gamepieceWidth

units::inch_t subzero::TargetTracker::TargetTrackerConfig::gamepieceWidth

Width of the gamepiece.

Definition at line 122 of file TargetTracker.h.

◆ invalidTrackedPose

frc::Pose2d subzero::TargetTracker::TargetTrackerConfig::invalidTrackedPose

Move invalid objects to this pose.

Definition at line 161 of file TargetTracker.h.

◆ limelightName

std::string subzero::TargetTracker::TargetTrackerConfig::limelightName

Name of the limelight in shuffleboard.

Definition at line 117 of file TargetTracker.h.

◆ maxTrackedItems

uint8_t subzero::TargetTracker::TargetTrackerConfig::maxTrackedItems

Max number of items that will be pushed to SmartDashboard as poses.

Definition at line 156 of file TargetTracker.h.

◆ simGamepiecePose

frc::Pose2d subzero::TargetTracker::TargetTrackerConfig::simGamepiecePose

Pose of the mock gamepiece in sim.

Definition at line 133 of file TargetTracker.h.

◆ trigDistancePercentage

double subzero::TargetTracker::TargetTrackerConfig::trigDistancePercentage

Ranges from 0 to 1; Multiplies trig-based distances and then applies the inverse to width-based estimate.

Definition at line 145 of file TargetTracker.h.


The documentation for this struct was generated from the following file: