uav_simple_tracking/src/uav_simple_tracking.cpp
void update_callback (const cpswarm_msgs::TargetPositionEvent::ConstPtr& msg)
{
    // update information for this target
    if (msg->id == target.id)
        target = *msg;
}
/**
 * @brief Callback function to receive target update events.
 * @param msg ID and position of target.
 */
@brief Callback function to receive target update events.
@param msg ID and position of target.
@brief Callback function to receive target update events . @param msg ID and position of target .
void update_callback (const cpswarm_msgs::TargetPositionEvent::ConstPtr& msg)
{
    if (msg->id == target.id)
        target = *msg;
}
void update_callback ( const cpswarm_msgs :: TargetPositionEvent :: ConstPtr & msg ) { if ( msg -> id == target . id ) target = * msg ; }
@brief Callback function to receive target update events.
@brief Callback function to receive target update events .
// update information for this target