Skip to content

Commit

Permalink
[Fix] Bug in horizontal plane mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
hridaybavle committed Apr 19, 2024
1 parent e49172b commit e884c4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion s_graphs/src/s_graphs/backend/plane_mapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ int PlaneMapper::associate_plane(
maha_dist = sqrt(error.transpose() * cov * error);
}
if (maha_dist < hort_min_maha_dist) {
vert_min_maha_dist = maha_dist;
hort_min_maha_dist = maha_dist;
data_association = hort_plane.second.id;
}
}
Expand Down
3 changes: 2 additions & 1 deletion s_graphs/src/s_graphs/frontend/plane_analyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ std::vector<pcl::PointCloud<PointNormal>::Ptr> PlaneAnalyzer::extract_segmented_
// segmented_cloud->back().b = 177;
}

extracted_cloud_vec.push_back(extracted_cloud_filtered);
if (extracted_cloud_filtered->points.size() > min_seg_points_)
extracted_cloud_vec.push_back(extracted_cloud_filtered);

// sensor_msgs::PointCloud2 extracted_cloud_msg;
// pcl::toROSMsg(*extracted_cloud_filtered, extracted_cloud_msg);
Expand Down

0 comments on commit e884c4c

Please sign in to comment.