An implementation that allows to track a target by minimizing the offset between the cyber physical system (CPS) and the target. More...
#include <uav_simple_tracking.h>
Public Member Functions | |
behavior_state_t | step (cpswarm_msgs::TargetPositionEvent target) |
Execute one cycle of the tracking algorithm. More... | |
void | stop () |
Stop moving. More... | |
uav_simple_tracking (cpswarm_msgs::TargetPositionEvent target, double altitude) | |
Constructor that initializes the private member variables. More... | |
Private Attributes | |
position | pos |
A helper object for position related tasks. More... | |
cpswarm_msgs::TargetPositionEvent | target |
The target being tracked by this UAV. More... | |
An implementation that allows to track a target by minimizing the offset between the cyber physical system (CPS) and the target.
Definition at line 22 of file uav_simple_tracking.h.
uav_simple_tracking::uav_simple_tracking | ( | cpswarm_msgs::TargetPositionEvent | target, |
double | altitude | ||
) |
Constructor that initializes the private member variables.
target | The target being tracked by this UAV. |
altitude | The altitude at which the CPS operates. |
Definition at line 3 of file lib/uav_simple_tracking.cpp.
behavior_state_t uav_simple_tracking::step | ( | cpswarm_msgs::TargetPositionEvent | target | ) |
Execute one cycle of the tracking algorithm.
target | Updated target information. |
Definition at line 7 of file lib/uav_simple_tracking.cpp.
void uav_simple_tracking::stop | ( | ) |
Stop moving.
Definition at line 34 of file lib/uav_simple_tracking.cpp.
|
private |
A helper object for position related tasks.
Definition at line 48 of file uav_simple_tracking.h.
|
private |
The target being tracked by this UAV.
Definition at line 53 of file uav_simple_tracking.h.