Public Member Functions | Private Attributes | List of all members
uav_simple_tracking Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

uav_simple_tracking::uav_simple_tracking ( cpswarm_msgs::TargetPositionEvent  target,
double  altitude 
)

Constructor that initializes the private member variables.

Parameters
targetThe target being tracked by this UAV.
altitudeThe altitude at which the CPS operates.

Definition at line 3 of file lib/uav_simple_tracking.cpp.

Member Function Documentation

behavior_state_t uav_simple_tracking::step ( cpswarm_msgs::TargetPositionEvent  target)

Execute one cycle of the tracking algorithm.

Parameters
targetUpdated target information.
Returns
Return the state of the tracking algorithm.

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.

Member Data Documentation

position uav_simple_tracking::pos
private

A helper object for position related tasks.

Definition at line 48 of file uav_simple_tracking.h.

cpswarm_msgs::TargetPositionEvent uav_simple_tracking::target
private

The target being tracked by this UAV.

Definition at line 53 of file uav_simple_tracking.h.


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


uav_simple_tracking
Author(s): Micha Sende
autogenerated on Sat Feb 6 2021 03:11:44