Fixed camera openni-PCL stopping after only one grab

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1390 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-06-16 18:07:51 +00:00
parent 9c20c20300
commit f6ce17012a
3 changed files with 18 additions and 8 deletions
+8 -1
View File
@@ -122,7 +122,14 @@ void CameraThread::mainLoop()
}
else if(!this->isKilled())
{
UDEBUG("no more images...");
if(_cameraRGBD)
{
UERROR("Retrieved data is empty! Stopping the camera...");
}
else
{
UWARN("no more images...");
}
this->kill();
this->post(new CameraEvent());
}