Public Member Functions | Private Attributes | List of all members
Visualizer Class Reference

Visualizer creates ROS messages to visualize the results of the localization in RViz. The possible objects that can be visualized are: neighborhoods, cylindrical shells, and handles. More...

#include <visualizer.h>

Public Member Functions

MarkerArray createCylinders (const std::vector< CylindricalShell > &list, const std::string &frame)
 Create a MarkerArray message from a list of cylindrical shells. More...
 
MarkerArray createHandleNumbers (const std::vector< std::vector< CylindricalShell > > &handles, const std::string &frame)
 Create a MarkerArray message from a list of cylindrical shells. More...
 
void createHandles (const std::vector< std::vector< CylindricalShell > > &handles, const std::string &frame, std::vector< MarkerArray > &marker_arrays, MarkerArray &all_handle_markers)
 Create a list of MarkerArray messages and a MarkerArray from a list of handles. The former represents each handle as a MarkerArray message, and the latter represents all handles in a single MarkerArray message. More...
 
 Visualizer (double marker_lifetime)
 Constructor. Set the lifetime of markers in RViz. More...
 

Private Attributes

double marker_lifetime
 

Detailed Description

Visualizer creates ROS messages to visualize the results of the localization in RViz. The possible objects that can be visualized are: neighborhoods, cylindrical shells, and handles.

Author
Andreas ten Pas

Definition at line 49 of file visualizer.h.

Constructor & Destructor Documentation

Visualizer::Visualizer ( double  marker_lifetime)

Constructor. Set the lifetime of markers in RViz.

Parameters
num_threadsthe lifetime in seconds

Definition at line 4 of file visualizer.cpp.

Member Function Documentation

MarkerArray Visualizer::createCylinders ( const std::vector< CylindricalShell > &  list,
const std::string &  frame 
)

Create a MarkerArray message from a list of cylindrical shells.

Parameters
listthe list of cylindrical shells
framethe frame in which the shells are located

Definition at line 9 of file visualizer.cpp.

MarkerArray Visualizer::createHandleNumbers ( const std::vector< std::vector< CylindricalShell > > &  handles,
const std::string &  frame 
)

Create a MarkerArray message from a list of cylindrical shells.

Parameters
listthe list of cylindrical shells
framethe frame in which the shells are located

Definition at line 68 of file visualizer.cpp.

void Visualizer::createHandles ( const std::vector< std::vector< CylindricalShell > > &  handles,
const std::string &  frame,
std::vector< MarkerArray > &  marker_arrays,
MarkerArray all_handle_markers 
)

Create a list of MarkerArray messages and a MarkerArray from a list of handles. The former represents each handle as a MarkerArray message, and the latter represents all handles in a single MarkerArray message.

Parameters
handlesthe list of handles
framethe frame in which the handles are located
marker_arraysthe resultant list of MarkerArray messages
all_handle_markersthe resultant single MarkerArray message that consists of all handles

Definition at line 134 of file visualizer.cpp.

Member Data Documentation

double Visualizer::marker_lifetime
private

Definition at line 85 of file visualizer.h.


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


handle_detector
Author(s):
autogenerated on Mon Jun 10 2019 13:29:00