visualizer_rviz.hpp
Go to the documentation of this file.
1 
17 #pragma once
18 #ifndef ISM_VISUALIZATIONS_VISUALIZERRVIZ_HPP
19 #define ISM_VISUALIZATIONS_VISUALIZERRVIZ_HPP
20 
21 #include <ros/ros.h>
22 #include <visualization_msgs/MarkerArray.h>
23 
24 namespace VIZ
25 {
26 
28 {
31 
32 public:
33  VisualizerRVIZ(const ros::Publisher& publisher):
34  publisher_(publisher)
35  {}
37  {
38  publisher_.publish(marker_array_);
39  }
40 
41  void clearAllMarkerOfTopic();
42 
43 protected:
45  {
46  marker_array_.markers.push_back(marker);
47  }
49  marker_array_.markers.insert(marker_array_.markers.end(), markers.markers.begin(), markers.markers.end());
50  }
51 
52  inline void publishMarkers()
53  {
54  publisher_.publish(marker_array_);
55  }
56 };
57 }
58 
59 
60 #endif // VISUALIZERRVIZ_HPP
void publish(const boost::shared_ptr< M > &message) const
VisualizerRVIZ(const ros::Publisher &publisher)
visualization_msgs::Marker Marker
visualization_msgs::MarkerArray marker_array_
visualization_msgs::MarkerArray MarkerArray
void addMarker(visualization_msgs::Marker marker)
ros::Publisher publisher_
void addMarker(visualization_msgs::MarkerArray markers)


asr_ism_visualizations
Author(s): Hanselmann Fabian, Heller Florian, Heizmann Heinrich, Kübler Marcel, Meißner Pascal, Reckling Reno, Stöckle Patrick, Trautmann Jeremias
autogenerated on Fri Nov 8 2019 03:28:47