9 viewer_->setBackgroundColor(0.2, 0.2, 0.2);
10 viewer_->addCoordinateSystem(0.1);
11 viewer_->initCameraParameters();
12 viewer_->setCameraPosition(-1,0,0,
23 boost::this_thread::sleep(boost::posix_time::microseconds(100000));
33 viewer_->removeAllPointClouds();
34 pcl::visualization::PointCloudColorHandlerRGBField<point_t> rgb(pointcloud);
36 viewer_->setPointCloudRenderingProperties(pcl::visualization::PCL_VISUALIZER_POINT_SIZE, 3);
42 pcl::visualization::PointCloudColorHandlerRGBField<point_t> rgb(pointcloud);
pcl::visualization::PCLVisualizer visualizer_t
boost::mutex viewer_mutex_
CloudVisualizer(const char *name)
Creates the viewer object.
void operator()()
Viewer update loop, will be called when viewer thread is started.
void addCloudToViewer(const pointcloud_t::Ptr pointcloud)
Thread-safe addition/replacement of the cloud.
void updateCloudInViewer(const pointcloud_t::Ptr pointcloud)
Thread-safe update to the cloud.
void stop()
Signal thread to stop the visualization loop.