This commit is contained in:
matlabbe
2024-10-05 16:03:43 -07:00
parent c21b0ee84e
commit 7819fd4790
+2 -2
View File
@@ -108,9 +108,9 @@ void RGBDOdometry::onOdomInit()
int qosCamInfo = this->declare_parameter("qos_camera_info", (int)qos());
subscribeRGBD = this->declare_parameter("subscribe_rgbd", subscribeRGBD);
rgbdCameras = this->declare_parameter("rgbd_cameras", rgbdCameras);
if(rgbdCameras <= 0)
if(rgbdCameras < 0)
{
rgbdCameras = 1;
rgbdCameras = 0;
}
keepColor_ = this->declare_parameter("keep_color", keepColor_);