#include <TargetTracker.h>
Definition at line 95 of file TargetTracker.h.
◆ TargetTracker()
subzero::TargetTracker::TargetTracker |
( |
TargetTrackerConfig | config, |
|
|
std::function< frc::Pose2d()> | poseGetter, |
|
|
std::function< frc::Field2d *()> | fieldGetter ) |
◆ GetBestTarget()
Get the best target for tracking/intaking.
- Returns
- std::optional<DetectedObject>
◆ GetBestTargetPose()
std::optional< frc::Pose2d > subzero::TargetTracker::GetBestTargetPose |
( |
std::vector< DetectedObject > & | | ) |
|
From a list of detected objects, get the pose of the best one.
- Returns
- std::optional<frc::Pose2d>
◆ GetDistanceToTarget()
units::inch_t subzero::TargetTracker::GetDistanceToTarget |
( |
const DetectedObject & | | ) |
|
Get the estimated distance to the target.
- Returns
- units::inch_t
◆ GetTargetPose()
std::optional< frc::Pose2d > subzero::TargetTracker::GetTargetPose |
( |
const DetectedObject & | | ) |
|
Get the pose of the given object.
- Returns
- std::optional<frc::Pose2d>
◆ GetTargets()
Get a list of all found, valid targets.
- Returns
- std::vector<DetectedObject>
◆ HasTargetLock()
bool subzero::TargetTracker::HasTargetLock |
( |
std::vector< DetectedObject > & | | ) |
|
Check if a target has been acquired.
- Returns
- true
-
false
◆ UpdateTrackedTargets()
void subzero::TargetTracker::UpdateTrackedTargets |
( |
const std::vector< DetectedObject > & | objects | ) |
|
Push targets to SmartDashboard.
- Parameters
-
The documentation for this class was generated from the following file: