A target that is monitored by the CPSs.
More...
#include <target.h>
A target that is monitored by the CPSs.
Definition at line 25 of file target.h.
target::target |
( |
const target & |
t | ) |
|
Copy constructor.
Definition at line 7 of file target.cpp.
Constructor that initializes some private member variables.
- Parameters
-
id | The target ID. |
state | The target state. |
Definition at line 11 of file target.cpp.
target::target |
( |
unsigned int |
id, |
|
|
target_state_t |
state, |
|
|
geometry_msgs::Pose |
pose |
|
) |
| |
Constructor that initializes some private member variables.
- Parameters
-
id | The target ID. |
state | The target state. |
pose | The position of the target. |
Definition at line 15 of file target.cpp.
target::target |
( |
unsigned int |
id, |
|
|
target_state_t |
state, |
|
|
geometry_msgs::Pose |
pose, |
|
|
Time |
stamp |
|
) |
| |
Constructor that initializes some private member variables.
- Parameters
-
id | The target ID. |
state | The target state. |
pose | The position of the target. |
stamp | The time stamp of target. |
Definition at line 19 of file target.cpp.
Destructor that destroys all objects.
Definition at line 36 of file target.cpp.
geometry_msgs::Pose target::get_pose |
( |
| ) |
|
Get the position of the target.
- Returns
- A pose containing the target position.
Definition at line 41 of file target.cpp.
Get the state of the target.
- Returns
- The current target state.
Definition at line 46 of file target.cpp.
Check whether the target tracked by this CPS has been lost. Switch state from TARGET_TRACKED to TARGET_LOST if the tracking timeout has expired.
- Returns
- Whether the target has been lost.
Definition at line 51 of file target.cpp.
void target::operator= |
( |
const target & |
t | ) |
|
Assignment operator.
- Parameters
-
t | The object from where to take the assignment values. |
Definition at line 74 of file target.cpp.
Update the information about a target.
- Parameters
-
state | The state of the target. |
pose | The position of the target. |
stamp | The time stamp of the update. |
Definition at line 80 of file target.cpp.
The ID of this target. Negative IDs are invalid.
Definition at line 108 of file target.h.
A node handle for the main ROS node.
Definition at line 103 of file target.h.
geometry_msgs::Pose target::pose |
|
private |
Position of the target.
Definition at line 118 of file target.h.
The loop rate object for running the behavior control loops at a specific frequency.
Definition at line 133 of file target.h.
Time stamp of latest update of the target.
Definition at line 123 of file target.h.
State of the target.
Definition at line 113 of file target.h.
The time in seconds after which a target transitions into the state TARGET_LOST when no target update has been received.
Definition at line 128 of file target.h.
The documentation for this class was generated from the following files: