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

Interface for classes that provide a vector to a tracked target. More...

#include <base_tracker.h>

Inheritance diagram for BaseTracker:
Inheritance graph
[legend]

Public Member Functions

 BaseTracker (TrackingStrategy *tracking_strategy)
 
virtual bool initialize ()
 Initialze the tracker. Can simply return true if the subclass requires no additional initialization. More...
 
virtual bool getTrackingVector (Position &pos)
 Get the tracking vector. More...
 
virtual bool getTrackingVector (std::tuple< uint32_t, Position > &pos)
 Get the tracking vector. More...
 
virtual bool getTrackingVectors (std::unordered_map< uint32_t, Position > &pos)=0
 Get the tracking vectors. More...
 
virtual bool trackingIsValid ()=0
 Check whether tracking is valid. More...
 

Detailed Description

Interface for classes that provide a vector to a tracked target.

Constructor & Destructor Documentation

BaseTracker::BaseTracker ( TrackingStrategy tracking_strategy)
inline

Member Function Documentation

bool BaseTracker::getTrackingVector ( Position pos)
virtual

Get the tracking vector.

Parameters
posReturned tracking vector
Returns
True if successful, false otherwise
bool BaseTracker::getTrackingVector ( std::tuple< uint32_t, Position > &  pos)
virtual

Get the tracking vector.

Parameters
posReturned tracking vector
Returns
True if successful, false otherwise
virtual bool BaseTracker::getTrackingVectors ( std::unordered_map< uint32_t, Position > &  pos)
pure virtual

Get the tracking vectors.

Parameters
posReturned map of tracking vectors
Returns
True if successful, false otherwise

Implemented in RoiToPositionConverter, AlvarTracker, SimpleTracker, and SimpleMultiTracker.

bool BaseTracker::initialize ( )
virtual

Initialze the tracker. Can simply return true if the subclass requires no additional initialization.

Returns
True if initialization succeeds, false otherwise
virtual bool BaseTracker::trackingIsValid ( )
pure virtual

Check whether tracking is valid.

Returns
True if the tracking is valid, false otherwise

Implemented in RoiToPositionConverter, AlvarTracker, SimpleTracker, and SimpleMultiTracker.


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