ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Easy way to find it is to call printf() in every function and let it print a function-related string(like "main while loop")...if you repeat that step you'll finally find the line of code that results in the error an can ask for further help.

First guess:

void updateVis(boost::shared_ptr<pcl::visualization::pclvisualizer> viewer, pcl::PointCloud<pcl::pointxyzrgb>::ConstPtr cloud){
pcl::visualization::PointCloudColorHandlerRGBField<pcl::pointxyzrgb> rgb(cloud);
viewer->removePointCloud();
viewer->addPointCloud<pcl::pointxyzrgb> (cloud, rgb); viewer->spinOnce(); }

ensure removePointCloud() gives the memory free...maybe check there for the mistake...