SubZero Common
Common library components for an FRC CommandRobot
|
#include <TargetTracker.h>
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. | |
Definition at line 97 of file TargetTracker.h.
double subzero::TargetTracker::TargetTrackerConfig::areaPercentageThreshold |
Ignore any targets below this percentage to exclude spurious detections.
Definition at line 151 of file TargetTracker.h.
units::degree_t subzero::TargetTracker::TargetTrackerConfig::cameraAngle |
Camera angle relative to the floor; positive = up.
Definition at line 102 of file TargetTracker.h.
units::inch_t subzero::TargetTracker::TargetTrackerConfig::cameraLensHeight |
Camera height relative to the floor.
Definition at line 107 of file TargetTracker.h.
double subzero::TargetTracker::TargetTrackerConfig::confidenceThreshold |
Targets must have a greater value in order to be used.
Definition at line 112 of file TargetTracker.h.
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.
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.
units::inch_t subzero::TargetTracker::TargetTrackerConfig::gamepieceWidth |
Width of the gamepiece.
Definition at line 122 of file TargetTracker.h.
frc::Pose2d subzero::TargetTracker::TargetTrackerConfig::invalidTrackedPose |
Move invalid objects to this pose.
Definition at line 161 of file TargetTracker.h.
std::string subzero::TargetTracker::TargetTrackerConfig::limelightName |
Name of the limelight in shuffleboard.
Definition at line 117 of file TargetTracker.h.
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.
frc::Pose2d subzero::TargetTracker::TargetTrackerConfig::simGamepiecePose |
Pose of the mock gamepiece in sim.
Definition at line 133 of file TargetTracker.h.
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.