Skip to content

Commit

Permalink
Fixed #1216
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Oct 5, 2024
1 parent c21b0ee commit 7819fd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rtabmap_odom/src/nodelets/rgbd_odometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_);

Expand Down

0 comments on commit 7819fd4

Please sign in to comment.