Reputation: 197
I am working with QT and have a QVTKWidget (pclvisualizer) viewer
to render and show the point clouds in my program.
I add a cloud with the ID name to my viewer which works well in Linux and Windows. But when I try to remove the point cloud from the viewer, the cloud is only removed in Linux - in Windows nothing happens and my Error message is displayed.
viewer->addPointCloud( myCloud, name ); // this works
if (viewer->removePointCloud(name)) { // this works only in linux
std::cout << "SUCCESS: pointcloud was removed from the viewer! ID: " << name << std::endl;
}
else {
std::cout << "ERROR: cannot remove cloud from the viewer! ID: " << name << std::endl;
}
Linux compiler is g++ 5.4.0. Windows version is compiled using Visual Studio 2015.
I have no idea what to do to fix this error. Any ideas what to do/what the problem might be?
Upvotes: 3
Views: 846
Reputation: 979
You might have the revision where this issue has not been fixed on Windows. I would suggest that you use the same version of PCL on both OS.
Upvotes: 1