Skip to content

Commit

Permalink
minor4: clean-up and error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Runqiu Bao committed Apr 11, 2022
1 parent 07a0be5 commit d48090a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions recognition/src/linemod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,9 @@ pcl::LINEMOD::removeOverlappingDetections (
size_t translation_clustering_threshold_2D_in_critical_direction) const
{
// check if clustering is disabled
if (translation_clustering_threshold == 0 && rotation_clustering_threshold == 0.f) {
return;
}
if (translation_clustering_threshold == 0) {
translation_clustering_threshold = 1;
PCL_ERROR ("Detection result clustering is disabled! translation_clustering_threshold equals %d\n", translation_clustering_threshold);
}

const size_t n_templates = templates_.size ();
Expand Down

0 comments on commit d48090a

Please sign in to comment.