ASCO Aerial Autonomy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
TrackingStrategy Class Referenceabstract

Defines a strategy for choosing a target to track among a group of tracked targets. More...

#include <tracking_strategy.h>

Inheritance diagram for TrackingStrategy:
Inheritance graph
[legend]

Public Member Functions

virtual bool initialize (const std::unordered_map< uint32_t, Position > &tracking_vectors)=0
 Initialize the strategy from a group of targets. More...
 
virtual bool getTrackingVector (const std::unordered_map< uint32_t, Position > &tracking_vectors, std::tuple< uint32_t, Position > &tracking_vector)=0
 Get the tracking vector for one target based on the implemented strategy. More...
 

Detailed Description

Defines a strategy for choosing a target to track among a group of tracked targets.

Member Function Documentation

virtual bool TrackingStrategy::getTrackingVector ( const std::unordered_map< uint32_t, Position > &  tracking_vectors,
std::tuple< uint32_t, Position > &  tracking_vector 
)
pure virtual

Get the tracking vector for one target based on the implemented strategy.

Parameters
tracking_vectorsThe vectors to the tracked targets
tracking_vectorChosen target
Returns
True if successful, false otherwise

Implemented in ClosestTrackingStrategy, and SimpleTrackingStrategy.

virtual bool TrackingStrategy::initialize ( const std::unordered_map< uint32_t, Position > &  tracking_vectors)
pure virtual

Initialize the strategy from a group of targets.

Parameters
tracking_vectorsThe vectors to the tracked targets
Returns
True if successful, false otherwise

Implemented in ClosestTrackingStrategy, and SimpleTrackingStrategy.


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