From b807d2c1871bca8ab9d0e143acf2ab97b102bdb2 Mon Sep 17 00:00:00 2001 From: HiepLM Date: Wed, 24 Dec 2025 14:21:14 +0700 Subject: [PATCH] Merge branch 'main' of https://git.pnkr.asia/DuongTD/costmap_2d into main --- plugins/voxel_layer.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/voxel_layer.cpp b/plugins/voxel_layer.cpp index 86ddb4a..b7c2177 100755 --- a/plugins/voxel_layer.cpp +++ b/plugins/voxel_layer.cpp @@ -102,7 +102,7 @@ bool VoxelLayer::getParams(const std::string& config_file_name, robot::NodeHandl if (nh.hasParam("unknown_threshold")) { nh.getParam("unknown_threshold", unknown_threshold); - unknown_threshold_ = unknown_threshold; + unknown_threshold_ = unknown_threshold + (VOXEL_BITS - size_z_); } if (nh.hasParam("mark_threshold")) { @@ -111,9 +111,6 @@ bool VoxelLayer::getParams(const std::string& config_file_name, robot::NodeHandl } if (nh.hasParam("combination_method")) nh.getParam("combination_method", combination_method_); - - - this->matchSize();