mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user