mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
fixed compilation error (without openni2)
This commit is contained in:
@@ -458,11 +458,13 @@ bool CameraOpenNI2::setGain(int value)
|
|||||||
|
|
||||||
bool CameraOpenNI2::setMirroring(bool enabled)
|
bool CameraOpenNI2::setMirroring(bool enabled)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_OPENNI2
|
||||||
if(_color->isValid() && _depth->isValid())
|
if(_color->isValid() && _depth->isValid())
|
||||||
{
|
{
|
||||||
return _depth->setMirroringEnabled(enabled) == openni::STATUS_OK &&
|
return _depth->setMirroringEnabled(enabled) == openni::STATUS_OK &&
|
||||||
_color->setMirroringEnabled(enabled) == openni::STATUS_OK;
|
_color->setMirroringEnabled(enabled) == openni::STATUS_OK;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user