A tracking strategy that locks on to the closest target when initialized.
More...
#include <closest_tracking_strategy.h>
A tracking strategy that locks on to the closest target when initialized.
| ClosestTrackingStrategy::ClosestTrackingStrategy |
( |
uint32_t |
max_tracking_retries = 20 | ) |
|
|
inline |
Constructor.
- Parameters
-
| max_tracking_retries | Number of times to retry tracking before lock is lost |
| bool ClosestTrackingStrategy::getTrackingVector |
( |
const std::unordered_map< uint32_t, Position > & |
tracking_vectors, |
|
|
std::tuple< uint32_t, Position > & |
tracking_vector |
|
) |
| |
|
virtual |
Get the tracking vector for the tracked target.
- Parameters
-
| tracking_vectors | The vectors to the tracked targets |
| tracking_vector | Tracked target which was closest when initialized |
- Returns
- True if successful, false otherwise
Implements TrackingStrategy.
| bool ClosestTrackingStrategy::initialize |
( |
const std::unordered_map< uint32_t, Position > & |
tracking_vectors | ) |
|
|
virtual |
Initialize the strategy from a group of targets. Locks on to closest target.
- Parameters
-
| tracking_vectors | The vectors to the tracked targets |
- Returns
- True if successful, false otherwise
Implements TrackingStrategy.
The documentation for this class was generated from the following files: