uav_simple_tracking.h
Go to the documentation of this file.
1 #ifndef UAV_SIMPLE_TRACKING_H
2 #define UAV_SIMPLE_TRACKING_H
3 
4 #include <position.h>
5 #include <cpswarm_msgs/TargetPositionEvent.h>
6 
7 using namespace std;
8 using namespace ros;
9 
13 typedef enum {
18 
23 {
24 public:
29  uav_simple_tracking (unsigned int target);
30 
35  behavior_state_t step ();
36 
37 private:
42  void target_callback (const cpswarm_msgs::TargetPositionEvent::ConstPtr& msg);
43 
47  Subscriber target_sub;
48 
52  position pos;
53 
57  cpswarm_msgs::TargetPositionEvent target;
58 };
59 
60 #endif // UAV_SIMPLE_TRACKING_H
An implementation that allows to track a target by minimizing the offset between the cyber physical s...
cpswarm_msgs::TargetPositionEvent target
The target being tracked by this UAV.
Subscriber target_sub
Subscriber to receive target position updates.
position pos
A helper object for position related tasks.
int target
The ID of the target being tracked.
behavior_state_t
An enumeration for the state of the behavior algorithm.


uav_simple_tracking
Author(s): Micha Sende
autogenerated on Sun Dec 29 2019 10:26:16