Commit 7f3bda1b authored by wangdawei's avatar wangdawei

test

parent 6ed1a7ee
...@@ -112,8 +112,6 @@ FastVoxelMatcher::Match(const Rigid3f &init_pose, ...@@ -112,8 +112,6 @@ FastVoxelMatcher::Match(const Rigid3f &init_pose,
const VoxelMap &voxel_map, const VoxelMap &voxel_map,
const FastVoxelMatcher::Param &param) const const FastVoxelMatcher::Param &param) const
{ {
no_map_cnt = 0;
const std::vector<DiscreteScan> discrete_scans = GenerateDiscreteScans( const std::vector<DiscreteScan> discrete_scans = GenerateDiscreteScans(
init_pose, point_cloud, voxel_map, param); init_pose, point_cloud, voxel_map, param);
...@@ -287,6 +285,9 @@ void FastVoxelMatcher::ScoreCandidates(const VoxelMap &voxel_map, ...@@ -287,6 +285,9 @@ void FastVoxelMatcher::ScoreCandidates(const VoxelMap &voxel_map,
if(0 == candidates->size()){ if(0 == candidates->size()){
return; return;
} }
if(low_resolution){
no_map_cnt = 0;
}
std::vector<float> ground_sum; std::vector<float> ground_sum;
std::vector<float> above_ground_sum; std::vector<float> above_ground_sum;
std::vector<uint32_t> has_map_sum; std::vector<uint32_t> has_map_sum;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment