If you take a close look at the definition of the addPointCloud of the pcl visualizer you need to define the text as a string, hence i would suggest declaring a string, assign the text to that and parse that value as argument. For eg
i would suggest declaring a string, assign the text to that and parse that value as argument
This is not necessary, the compiler will implicitly create an std::string and pass it to the function.
error: no matching function for call to ‘pcl::visualization::PCLVisualizer::addPointCloud(pcl::PointCloud<pcl::PointXYZ>&, const char )’
Just read the error message carefully, it says everything. In PCL there are indeed no overloads of addPointCloud() function that accept a reference to point cloud. Each and every variant of addPointCloud() takes "const typename pcl::PointCloud<PointT>::ConstPtr&", which is a const reference to a const pointer to a point cloud. Kind of intricate, but this is C++.
So to solve your problem try to call the function as follows: viewer->addPointCloud<pcl::PointXYZ>(cloud_out.makeShared(), text_cloud);
at the end of corresponding function. U need to pass *viewer somehow to that function and easiest way is to make global variable at the top of that file.... thats all.
And yes u can see every step but coz it happens very fast with small ammount of points in cloud u need to pause your app in order to see iterations (or u can add cloud of every iteration in different color...)