mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-06 09:47:46 +08:00
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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user