model_visualizer_rviz.hpp
Go to the documentation of this file.
1 
17 #pragma once
18 //Local includes
21 
22 //ISM inlcudes
23 #include <ISM/common_type/VoteSpecifier.hpp>
24 #include <ISM/common_type/Tracks.hpp>
25 
26 
27 namespace VIZ
28 {
30 
31 public:
32  ModelVisualizerRVIZ(ros::Publisher publisher, std::string base_frame, std::string prefix, double marker_lifetime)
33  : VisualizerRVIZ(publisher), base_frame_(base_frame), prefix_(prefix), marker_lifetime_(marker_lifetime)
34  {};
35 
36 
45  void addVisualization(const std::string pattern_name, const ISM::TracksPtr tracks, const ISM::TracksPtr ism_object_tracks,
46  const std::map<int, std::vector<ISM::VoteSpecifierPtr>> track_index_to_votes);
47 
48 
49 private:
50 
58  visualization_msgs::MarkerArray generateModelMarkers(std::string pattern_name, const ISM::TracksPtr tracks, const std::map<int, std::vector<ISM::VoteSpecifierPtr>> track_index_to_votes);
59 
60  void initObjectToColorMap(ISM::TracksPtr tracks, ISM::TracksPtr ism_object_tracks);
61 
62  std::string base_frame_;
63  std::string prefix_;
65  std::map<std::string, std::map<std::string, std_msgs::ColorRGBA>> object_to_color_map_;
66 };
67 }
68 
69 
70 
void addVisualization(const std::string pattern_name, const ISM::TracksPtr tracks, const ISM::TracksPtr ism_object_tracks, const std::map< int, std::vector< ISM::VoteSpecifierPtr >> track_index_to_votes)
void initObjectToColorMap(ISM::TracksPtr tracks, ISM::TracksPtr ism_object_tracks)
ModelVisualizerRVIZ(ros::Publisher publisher, std::string base_frame, std::string prefix, double marker_lifetime)
std::map< std::string, std::map< std::string, std_msgs::ColorRGBA > > object_to_color_map_
visualization_msgs::MarkerArray MarkerArray
visualization_msgs::MarkerArray generateModelMarkers(std::string pattern_name, const ISM::TracksPtr tracks, const std::map< int, std::vector< ISM::VoteSpecifierPtr >> track_index_to_votes)


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