Qt App with instances of PCLPlotter and PCLVisualizer
I'm trying to hookup an app with instances of PCLPlotter and PCLVisualizer,
like shown in the figure below:
The cloud data as well as the plotter data is changing over time.
As proof of concept I wrote a test console app (part of the source code):
while (!viewer->wasStopped() && plotter->wasStopped())
// Get lock on the boolean update and check if cloud was updated
if (!viewer->updatePointCloud(cloud, "cloud"))
viewer->addPointCloud(cloud, rgb, "cloud");
plotter->addPlotData(array_X, arrayTemp, Run, "Sensor",
update = false;
If I press q in the plotter window the app starts. But I think that is not
how one should write an app?
Do you have any suggestions for implementation?
I'am using VS 2013 and PCL 1.80.