Public Member Functions | Private Attributes
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>

List of all members.

Public Member Functions

MarkerArray createCylinders (const std::vector< CylindricalShell > &list, const std::string &frame)
 Create a MarkerArray message from a list of cylindrical shells.
MarkerArray createHandleNumbers (const std::vector< std::vector< CylindricalShell > > &handles, const std::string &frame)
 Create a MarkerArray message from a list of cylindrical shells.
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.
 Visualizer (double marker_lifetime)
 Constructor. Set the lifetime of markers in RViz.

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 Thu Jun 6 2019 17:36:23