Dynamic markers support class. More...
Public Member Functions | |
void | clean (void) |
Remove markers that should not be transmitted. More... | |
void | decrement (void) |
Mark existing markers for deletion. More... | |
vector < visualization_msgs::Marker > | getOutgoingMarkers (void) |
Obtain the list of outgoing markers. More... | |
void | update (visualization_msgs::Marker &marker) |
Update a internal marker. More... | |
Private Attributes | |
vector < visualization_msgs::Marker > | markers |
Internal storing vector of markers. More... | |
Dynamic markers support class.
This class allows to easily publish a variable number of markers without paying attention to the delete action requests.
Definition at line 27 of file view_laser_targets.cpp.
|
inline |
Remove markers that should not be transmitted.
Definition at line 72 of file view_laser_targets.cpp.
|
inline |
Mark existing markers for deletion.
Definition at line 52 of file view_laser_targets.cpp.
|
inline |
Obtain the list of outgoing markers.
Definition at line 88 of file view_laser_targets.cpp.
|
inline |
Update a internal marker.
The updated marker will be marked for publishing, this marker may or may not already be present in the class.
marker | a marker to update |
Definition at line 37 of file view_laser_targets.cpp.
|
private |
Internal storing vector of markers.
Definition at line 95 of file view_laser_targets.cpp.