fixed OdometryViewer where clouds were not all removed or shown

This commit is contained in:
Mathieu Labbe
2015-04-06 14:32:32 -04:00
parent 5b5a32839c
commit 39ef8c0f0a
5 changed files with 39 additions and 34 deletions
+3 -2
View File
@@ -625,8 +625,9 @@ void CloudViewer::removeAllClouds()
bool CloudViewer::removeCloud(const std::string & id)
{
_addedClouds.remove(id);
return _visualizer->removePointCloud(id);
bool success = _visualizer->removePointCloud(id);
_addedClouds.remove(id); // remove after visualizer
return success;
}
bool CloudViewer::getPose(const std::string & id, Transform & pose)