Displays one cloud using the PCLVisualizer. More...
#include <cloud_visualizer.h>
Public Member Functions | |
void | addCloudToViewer (const pointcloud_t::Ptr pointcloud) |
Thread-safe addition/replacement of the cloud. | |
CloudVisualizer (const char *name) | |
Creates the viewer object. | |
void | operator() () |
Viewer update loop, will be called when viewer thread is started. | |
void | stop () |
Signal thread to stop the visualization loop. | |
void | updateCloudInViewer (const pointcloud_t::Ptr pointcloud) |
Thread-safe update to the cloud. | |
Private Attributes | |
bool | stop_ |
visualizer_ptr_t | viewer_ |
boost::mutex | viewer_mutex_ |
Displays one cloud using the PCLVisualizer.
To be used as thread.
Definition at line 15 of file cloud_visualizer.h.
rc::CloudVisualizer::CloudVisualizer | ( | const char * | name | ) |
Creates the viewer object.
Definition at line 7 of file cloud_visualizer.cc.
void rc::CloudVisualizer::addCloudToViewer | ( | const pointcloud_t::Ptr | pointcloud | ) |
Thread-safe addition/replacement of the cloud.
Definition at line 30 of file cloud_visualizer.cc.
void rc::CloudVisualizer::operator() | ( | ) |
Viewer update loop, will be called when viewer thread is started.
Definition at line 19 of file cloud_visualizer.cc.
void rc::CloudVisualizer::stop | ( | ) |
Signal thread to stop the visualization loop.
Definition at line 17 of file cloud_visualizer.cc.
void rc::CloudVisualizer::updateCloudInViewer | ( | const pointcloud_t::Ptr | pointcloud | ) |
Thread-safe update to the cloud.
Definition at line 39 of file cloud_visualizer.cc.
bool rc::CloudVisualizer::stop_ [private] |
Definition at line 36 of file cloud_visualizer.h.
visualizer_ptr_t rc::CloudVisualizer::viewer_ [private] |
Definition at line 35 of file cloud_visualizer.h.
boost::mutex rc::CloudVisualizer::viewer_mutex_ [private] |
Definition at line 37 of file cloud_visualizer.h.