42 pub_ = nh.
advertise<visualization_msgs::MarkerArray>(topic, 1,
true);
47 marker.id =
getID(name);
54 for (std::map<std::string, visualization_msgs::Marker>::iterator it =
markers_.begin();
57 marker_array.markers.push_back(it->second);
68 visualization_msgs::Marker clear_marker;
69 clear_marker.id =
getID(name);
70 clear_marker.action = visualization_msgs::Marker::DELETE;
77 for (std::map<std::string, visualization_msgs::Marker>::iterator it =
markers_.begin();
void publish(const boost::shared_ptr< M > &message) const
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)