Public Member Functions | Private Member Functions | Private Attributes | List of all members
VIZ::ModelVisualizerRVIZ Class Reference

#include <model_visualizer_rviz.hpp>

Inheritance diagram for VIZ::ModelVisualizerRVIZ:
Inheritance graph
[legend]

Public Member Functions

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)
 
 ModelVisualizerRVIZ (ros::Publisher publisher, std::string base_frame, std::string prefix, double marker_lifetime)
 
- Public Member Functions inherited from VIZ::VisualizerRVIZ
void clearAllMarkerOfTopic ()
 
void publishCollectedMarkers ()
 
 VisualizerRVIZ (const ros::Publisher &publisher)
 

Private Member Functions

visualization_msgs::MarkerArray generateModelMarkers (std::string pattern_name, const ISM::TracksPtr tracks, const std::map< int, std::vector< ISM::VoteSpecifierPtr >> track_index_to_votes)
 
void initObjectToColorMap (ISM::TracksPtr tracks, ISM::TracksPtr ism_object_tracks)
 

Private Attributes

std::string base_frame_
 
double marker_lifetime_
 
std::map< std::string, std::map< std::string, std_msgs::ColorRGBA > > object_to_color_map_
 
std::string prefix_
 

Additional Inherited Members

- Protected Member Functions inherited from VIZ::VisualizerRVIZ
void addMarker (visualization_msgs::Marker marker)
 
void addMarker (visualization_msgs::MarkerArray markers)
 
void publishMarkers ()
 

Detailed Description

Definition at line 29 of file model_visualizer_rviz.hpp.

Constructor & Destructor Documentation

VIZ::ModelVisualizerRVIZ::ModelVisualizerRVIZ ( ros::Publisher  publisher,
std::string  base_frame,
std::string  prefix,
double  marker_lifetime 
)
inline

Definition at line 32 of file model_visualizer_rviz.hpp.

Member Function Documentation

void VIZ::ModelVisualizerRVIZ::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 
)

Manages generation and publication of marker for model visualization.

Parameters
pattern_nameName of (sub)pattern.
tracksTracks of real objects (objects which don’t represent ISMs).
ism_object_tracksTracks of objects which represent ISMs.
track_index_to_votesVotes ordered by track index.

Definition at line 28 of file model_visualizer_rviz.cpp.

visualization_msgs::MarkerArray VIZ::ModelVisualizerRVIZ::generateModelMarkers ( std::string  pattern_name,
const ISM::TracksPtr  tracks,
const std::map< int, std::vector< ISM::VoteSpecifierPtr >>  track_index_to_votes 
)
private

Generates markers for model visualization.

Parameters
pattern_nameName of (sub)pattern.
tracksTracks of all objects.
track_index_to_votesVotes ordered by track index.

Definition at line 42 of file model_visualizer_rviz.cpp.

void VIZ::ModelVisualizerRVIZ::initObjectToColorMap ( ISM::TracksPtr  tracks,
ISM::TracksPtr  ism_object_tracks 
)
private

Definition at line 136 of file model_visualizer_rviz.cpp.

Member Data Documentation

std::string VIZ::ModelVisualizerRVIZ::base_frame_
private

Definition at line 62 of file model_visualizer_rviz.hpp.

double VIZ::ModelVisualizerRVIZ::marker_lifetime_
private

Definition at line 64 of file model_visualizer_rviz.hpp.

std::map<std::string, std::map<std::string, std_msgs::ColorRGBA> > VIZ::ModelVisualizerRVIZ::object_to_color_map_
private

Definition at line 65 of file model_visualizer_rviz.hpp.

std::string VIZ::ModelVisualizerRVIZ::prefix_
private

Definition at line 63 of file model_visualizer_rviz.hpp.


The documentation for this class was generated from the following files:


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