Main Page
Namespaces
Classes
Files
File List
File Members
include
asr_ism_visualizations
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
27
class
VisualizerRVIZ
28
{
29
visualization_msgs::MarkerArray
marker_array_
;
30
ros::Publisher
publisher_
;
31
32
public
:
33
VisualizerRVIZ
(
const
ros::Publisher
& publisher):
34
publisher_(publisher)
35
{}
36
inline
void
publishCollectedMarkers
()
37
{
38
publisher_.
publish
(marker_array_);
39
}
40
41
void
clearAllMarkerOfTopic
();
42
43
protected
:
44
inline
void
addMarker
(
visualization_msgs::Marker
marker)
45
{
46
marker_array_.markers.push_back(marker);
47
}
48
inline
void
addMarker
(
visualization_msgs::MarkerArray
markers){
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
VIZ::VisualizerRVIZ::publishCollectedMarkers
void publishCollectedMarkers()
Definition:
visualizer_rviz.hpp:36
VIZ
Definition:
ism_pose_prediction_visualizer_rviz.hpp:32
ros::Publisher::publish
void publish(const boost::shared_ptr< M > &message) const
VIZ::VisualizerRVIZ::VisualizerRVIZ
VisualizerRVIZ(const ros::Publisher &publisher)
Definition:
visualizer_rviz.hpp:33
VIZ::Marker
visualization_msgs::Marker Marker
Definition:
VizHelperRVIZ.hpp:48
VIZ::VisualizerRVIZ::publishMarkers
void publishMarkers()
Definition:
visualizer_rviz.hpp:52
VIZ::VisualizerRVIZ
Definition:
visualizer_rviz.hpp:27
VIZ::VisualizerRVIZ::marker_array_
visualization_msgs::MarkerArray marker_array_
Definition:
visualizer_rviz.hpp:29
VIZ::MarkerArray
visualization_msgs::MarkerArray MarkerArray
Definition:
VizHelperRVIZ.hpp:49
VIZ::VisualizerRVIZ::clearAllMarkerOfTopic
void clearAllMarkerOfTopic()
Definition:
visualizer_rviz.cpp:22
ros.h
VIZ::VisualizerRVIZ::addMarker
void addMarker(visualization_msgs::Marker marker)
Definition:
visualizer_rviz.hpp:44
VIZ::VisualizerRVIZ::publisher_
ros::Publisher publisher_
Definition:
visualizer_rviz.hpp:30
ros::Publisher
VIZ::VisualizerRVIZ::addMarker
void addMarker(visualization_msgs::MarkerArray markers)
Definition:
visualizer_rviz.hpp:48
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