|
ASCO Aerial Autonomy
|
Simple tracker for a given fixed position. More...
#include <simple_tracker.h>
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... | |
Simple tracker for a given fixed position.
| SimpleTracker::SimpleTracker | ( | parsernode::Parser & | drone_hardware, |
| tf::Transform | camera_transform | ||
| ) |
Constructor that stores drone hardware and camera transform for further use.
| drone_hardware | UAV Hardware for getting sensor data |
| camera_transform | Camera transform from UAV base |
| tf::Transform SimpleTracker::cameraTransform | ( | ) |
Get the camera transform stored.
|
virtual |
Get the tracking vector.
| pos | Returned tracking vector |
Implements BaseTracker.
| void SimpleTracker::setTargetPositionGlobalFrame | ( | Position | p | ) |
Set the target position in the global frame.
| p | Position to set |
| void SimpleTracker::setTrackingIsValid | ( | bool | is_valid | ) |
Set whether the tracking is valid.
| is_valid | True if the tracking should be valid false otherwise |
|
virtual |
Check whether tracking is valid.
Implements BaseTracker.
1.8.6