8 nh.param(this_node::getName() +
"/queue_size", queue_size, 1);
18 if (
pos.out_of_bounds(
target.pose.pose)) {
void target_callback(const cpswarm_msgs::TargetPositionEvent::ConstPtr &msg)
Callback function to receive target position updates.
behavior_state_t step()
Execute one cycle of the tracking algorithm.
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.
uav_simple_tracking(unsigned int target)
Constructor that initializes the private member variables.
behavior_state_t
An enumeration for the state of the behavior algorithm.