Skip to content

Commit

Permalink
Addressed latest review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gnawme committed Jan 12, 2023
1 parent 06f029b commit 5107383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/PCLPointCloud2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pcl::PCLPointCloud2::concatenate (pcl::PCLPointCloud2 &cloud1, const pcl::PCLPoi
cloud1 = cloud2;
}

if (size2 == 0) {
if ((size1 == 0) || (size2 == 0)) {
cloud1.header.stamp = std::max (cloud1.header.stamp, cloud2.header.stamp);
return true;
}
Expand Down
4 changes: 2 additions & 2 deletions registration/src/correspondence_rejection_trimmed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ pcl::registration::CorrespondenceRejectorTrimmed::getRemainingCorrespondences(
{
// not really an efficient implementation
remaining_correspondences = original_correspondences;
unsigned int number_valid_correspondences = (static_cast<int>(std::floor(
overlap_ratio_ * static_cast<float>(remaining_correspondences.size()))));
auto number_valid_correspondences = static_cast<unsigned int>(std::floor(
overlap_ratio_ * static_cast<float>(remaining_correspondences.size())));
number_valid_correspondences =
std::max(number_valid_correspondences, nr_min_correspondences_);

Expand Down

0 comments on commit 5107383

Please sign in to comment.