mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +08:00
Fixed build error without realsense2
This commit is contained in:
@@ -440,15 +440,20 @@ bool CameraRealSense2::init(const std::string & calibrationFolder, const std::st
|
|||||||
|
|
||||||
bool CameraRealSense2::isCalibrated() const
|
bool CameraRealSense2::isCalibrated() const
|
||||||
{
|
{
|
||||||
|
#ifdef RTABMAP_REALSENSE2
|
||||||
return model_.isValidForProjection() || stereoModel_.isValidForRectification();
|
return model_.isValidForProjection() || stereoModel_.isValidForRectification();
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CameraRealSense2::getSerial() const
|
std::string CameraRealSense2::getSerial() const
|
||||||
{
|
{
|
||||||
#ifdef RTABMAP_REALSENSE2
|
#ifdef RTABMAP_REALSENSE2
|
||||||
return dev_->get_info(RS2_CAMERA_INFO_SERIAL_NUMBER);
|
return dev_->get_info(RS2_CAMERA_INFO_SERIAL_NUMBER);
|
||||||
#endif
|
#else
|
||||||
return "NA";
|
return "NA";
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void CameraRealSense2::setEmitterEnabled(bool enabled)
|
void CameraRealSense2::setEmitterEnabled(bool enabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user