mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-03 16:27:46 +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.");
|
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);
|
_depth->setMirroringEnabled(false);
|
||||||
_color->setMirroringEnabled(false);
|
_color->setMirroringEnabled(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user