Public Member Functions | Private 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 ()
 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...
 

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::uav_simple_tracking ( unsigned int  target)

Constructor that initializes the private member variables.

Parameters
targetThe ID of the target being tracked by this UAV.

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

Member Function Documentation

◆ step()

behavior_state_t uav_simple_tracking::step ( )

Execute one cycle of the tracking algorithm.

Returns
Return the state of the tracking algorithm.

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

◆ target_callback()

void uav_simple_tracking::target_callback ( const cpswarm_msgs::TargetPositionEvent::ConstPtr &  msg)
private

Callback function to receive target position updates.

Parameters
msgID and position of target.

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

Member Data Documentation

◆ pos

position uav_simple_tracking::pos
private

A helper object for position related tasks.

Definition at line 52 of file uav_simple_tracking.h.

◆ target

cpswarm_msgs::TargetPositionEvent uav_simple_tracking::target
private

The target being tracked by this UAV.

Definition at line 57 of file uav_simple_tracking.h.

◆ target_sub

Subscriber uav_simple_tracking::target_sub
private

Subscriber to receive target position updates.

Definition at line 47 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 Sun Dec 29 2019 10:26:16