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 () |
Execute one cycle of the tracking algorithm. More... | |
uav_simple_tracking (unsigned int target) | |
Constructor that initializes the private member variables. More... | |
Private Member Functions | |
void | target_callback (const cpswarm_msgs::TargetPositionEvent::ConstPtr &msg) |
Callback function to receive target position updates. 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... | |
Subscriber | target_sub |
Subscriber to receive target position updates. 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 | ( | unsigned int | target | ) |
Constructor that initializes the private member variables.
target | The ID of the target being tracked by this UAV. |
Definition at line 3 of file lib/uav_simple_tracking.cpp.
behavior_state_t uav_simple_tracking::step | ( | ) |
Execute one cycle of the tracking algorithm.
Definition at line 12 of file lib/uav_simple_tracking.cpp.
|
private |
Callback function to receive target position updates.
msg | ID and position of target. |
Definition at line 33 of file lib/uav_simple_tracking.cpp.
|
private |
A helper object for position related tasks.
Definition at line 52 of file uav_simple_tracking.h.
|
private |
The target being tracked by this UAV.
Definition at line 57 of file uav_simple_tracking.h.
|
private |
Subscriber to receive target position updates.
Definition at line 47 of file uav_simple_tracking.h.