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

Simple tracker for a given fixed position. More...

#include <simple_tracker.h>

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

Public Member Functions

 SimpleTracker (parsernode::Parser &drone_hardware, tf::Transform camera_transform)
 Constructor that stores drone hardware and camera transform for further use. More...
 
virtual bool getTrackingVectors (std::unordered_map< uint32_t, Position > &pos)
 Get the tracking vector. More...
 
virtual bool trackingIsValid ()
 Check whether tracking is valid. More...
 
void setTrackingIsValid (bool is_valid)
 Set whether the tracking is valid. More...
 
void setTargetPositionGlobalFrame (Position p)
 Set the target position in the global frame. More...
 
tf::Transform cameraTransform ()
 Get the camera transform stored. More...
 
- Public Member Functions inherited from BaseTracker
 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...
 

Detailed Description

Simple tracker for a given fixed position.

Constructor & Destructor Documentation

SimpleTracker::SimpleTracker ( parsernode::Parser &  drone_hardware,
tf::Transform  camera_transform 
)

Constructor that stores drone hardware and camera transform for further use.

Parameters
drone_hardwareUAV Hardware for getting sensor data
camera_transformCamera transform from UAV base

Member Function Documentation

tf::Transform SimpleTracker::cameraTransform ( )

Get the camera transform stored.

Returns
Reference to the camera transform
bool SimpleTracker::getTrackingVectors ( std::unordered_map< uint32_t, Position > &  pos)
virtual

Get the tracking vector.

Parameters
posReturned tracking vector
Returns
True if successful, false otherwise

Implements BaseTracker.

void SimpleTracker::setTargetPositionGlobalFrame ( Position  p)

Set the target position in the global frame.

Parameters
pPosition to set
void SimpleTracker::setTrackingIsValid ( bool  is_valid)

Set whether the tracking is valid.

Parameters
is_validTrue if the tracking should be valid false otherwise
bool SimpleTracker::trackingIsValid ( )
virtual

Check whether tracking is valid.

Returns
True if the tracking is valid, false otherwise

Implements BaseTracker.


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