mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 17:40:23 +08:00
fixed build without openni2
This commit is contained in:
@@ -500,10 +500,12 @@ void CameraOpenNI2::setOpenNI2StampsAndIDsUsed(bool used)
|
|||||||
|
|
||||||
void CameraOpenNI2::setIRDepthShift(int horizontal, int vertical)
|
void CameraOpenNI2::setIRDepthShift(int horizontal, int vertical)
|
||||||
{
|
{
|
||||||
|
#ifdef RTABMAP_OPENNI2
|
||||||
UASSERT(horizontal >= 0);
|
UASSERT(horizontal >= 0);
|
||||||
UASSERT(vertical >= 0);
|
UASSERT(vertical >= 0);
|
||||||
_depthHShift = horizontal;
|
_depthHShift = horizontal;
|
||||||
_depthVShift = vertical;
|
_depthVShift = vertical;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CameraOpenNI2::init(const std::string & calibrationFolder, const std::string & cameraName)
|
bool CameraOpenNI2::init(const std::string & calibrationFolder, const std::string & cameraName)
|
||||||
|
|||||||
Reference in New Issue
Block a user