5 #include <geometry_msgs/Pose.h> 6 #include <cpswarm_msgs/TargetPositionEvent.h> 72 geometry_msgs::Pose get_pose ();
83 void operator= (
const target& t);
91 void update (
target_state_t state, geometry_msgs::Pose pose, Time stamp);
int id
The ID of this target. Negative IDs are invalid.
Time stamp
Time stamp of latest update of the target.
Publisher target_update_pub
Publisher for transmitting updated information about targets to other CPSs.
double target_tolerance
Minimum distance between two consecutive target positions such that a target update event is publishe...
Duration timeout
The time in seconds after which a target transitions into the state TARGET_LOST when no target update...
Publisher target_lost_pub
Publisher for transmitting information about lost targets to other CPSs.
Publisher target_done_pub
Publisher for transmitting information about completed targets to other CPSs.
target_state_t state
State of the target.
geometry_msgs::Pose last_pose
The position of the target the last time it was published as target position event.
geometry_msgs::Pose pose
Position of the target.
A target that is monitored by the CPSs.
Rate * rate
The loop rate object for running the behavior control loops at a specific frequency.
target_state_t
An enumeration for the state of a target.
NodeHandle nh
A node handle for the main ROS node.
geometry_msgs::Pose pose
Current position of the CPS.
Publisher target_found_pub
Publisher for transmitting information about found targets to other CPSs.