mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Fixed #1216
This commit is contained in:
@@ -108,9 +108,9 @@ void RGBDOdometry::onOdomInit()
|
|||||||
int qosCamInfo = this->declare_parameter("qos_camera_info", (int)qos());
|
int qosCamInfo = this->declare_parameter("qos_camera_info", (int)qos());
|
||||||
subscribeRGBD = this->declare_parameter("subscribe_rgbd", subscribeRGBD);
|
subscribeRGBD = this->declare_parameter("subscribe_rgbd", subscribeRGBD);
|
||||||
rgbdCameras = this->declare_parameter("rgbd_cameras", rgbdCameras);
|
rgbdCameras = this->declare_parameter("rgbd_cameras", rgbdCameras);
|
||||||
if(rgbdCameras <= 0)
|
if(rgbdCameras < 0)
|
||||||
{
|
{
|
||||||
rgbdCameras = 1;
|
rgbdCameras = 0;
|
||||||
}
|
}
|
||||||
keepColor_ = this->declare_parameter("keep_color", keepColor_);
|
keepColor_ = this->declare_parameter("keep_color", keepColor_);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user