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

A strategy that simply returns the first element in the list of tracking vectors Should be used if you expect your tracker to only return a single element. More...

#include <simple_tracking_strategy.h>

Inheritance diagram for SimpleTrackingStrategy:
Inheritance graph
[legend]
Collaboration diagram for SimpleTrackingStrategy:
Collaboration graph
[legend]

Public Member Functions

virtual bool initialize (const std::unordered_map< uint32_t, Position > &tracking_vectors)
 Does nothing here since we are always initialized. More...
 
virtual bool getTrackingVector (const std::unordered_map< uint32_t, Position > &tracking_vectors, std::tuple< uint32_t, Position > &tracking_vector)
 Get the first tracking vector. More...
 

Detailed Description

A strategy that simply returns the first element in the list of tracking vectors Should be used if you expect your tracker to only return a single element.

Member Function Documentation

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

Get the first tracking vector.

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

Implements TrackingStrategy.

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

Does nothing here since we are always initialized.

Parameters
tracking_vectorsThe vectors to the tracked targets
Returns
Always returns true

Implements TrackingStrategy.


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