Added setDepthColorSyncEnabled(true) for OpenNI2 devices to synchronize RGB and depth images

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1860 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2014-10-16 00:07:25 +00:00
parent 22ce2525fc
commit 8f451029e2

View File

@@ -420,6 +420,11 @@ bool CameraOpenNI2::init()
UERROR("CameraOpenNI2: Failed to set depth/color registration.");
}
if (_device->setDepthColorSyncEnabled(true) != openni::STATUS_OK)
{
UERROR("CameraOpenNI2: Failed to set depth color sync");
}
_depth->setMirroringEnabled(false);
_color->setMirroringEnabled(false);