Skip to content

Clang format gpu/segmentation#4819

Merged
kunaltyagi merged 5 commits into
PointCloudLibrary:masterfrom
FabianSchuetze:clang_format_segmentation
Aug 20, 2021
Merged

Clang format gpu/segmentation#4819
kunaltyagi merged 5 commits into
PointCloudLibrary:masterfrom
FabianSchuetze:clang_format_segmentation

Conversation

@FabianSchuetze
Copy link
Copy Markdown
Contributor

After #4677 got merged, I wanted to do some summer cleaning (or winter cleaning if you read this from the southern hemisphere) in the segmentation codebase. I applied clang-format and did some manual modifications. Everything looks nice and shiny :-)

Comment thread gpu/segmentation/include/pcl/gpu/segmentation/gpu_extract_clusters.h Outdated
Comment thread gpu/segmentation/include/pcl/gpu/segmentation/gpu_extract_labeled_clusters.h Outdated
Comment thread gpu/segmentation/include/pcl/gpu/segmentation/gpu_extract_labeled_clusters.h Outdated
/*
if(tree_->cloud_.size() != host_cloud.size ())
{
PCL_ERROR("[pcl::gpu::EuclideanClusterExtraction] size of host cloud and device
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Him, this is a good question! This check seems to be active in the corresponding cpu method, but I am not sure this check is needed. I think constructing the tree with a superset of the pointcloud used for clustering should work. Nevertheless, I would prefer to activate it again in the GPU module for the sake of symmetry. What do you think?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@larshg Thoughts?

(separate PR)

if(tree_->cloud_.size() != host_cloud.size ())
{
PCL_ERROR("[pcl::gpu::EuclideanClusterExtraction] size of host cloud and device
cloud don't match!\n"); return;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comment above above

@larshg
Copy link
Copy Markdown
Contributor

larshg commented Jul 13, 2021

Add it to the script

local whitelist="apps/3d_rec_framework apps/include apps/modeler apps/src benchmarks 2d geometry ml octree simulation stereo tracking registration gpu/containers"
?

@FabianSchuetze
Copy link
Copy Markdown
Contributor Author

Sorry for the long radio silence - I've been moving place. I added the the folder to the format.sh script. Thanks for pointing that out, @larshg !

@mvieth mvieth changed the title Clang format segmentation Clang format gpu/segmentation Aug 11, 2021
@kunaltyagi
Copy link
Copy Markdown
Member

@mvieth Merge? 🚀

@mvieth
Copy link
Copy Markdown
Member

mvieth commented Aug 20, 2021

No objections from my side

@kunaltyagi kunaltyagi merged commit 85fc170 into PointCloudLibrary:master Aug 20, 2021
mvieth pushed a commit to mvieth/pcl that referenced this pull request Dec 27, 2021
* clang-format and some manual changes

* second round of clang-format

* corrected clang-format idiosyncrasies

* corrected spelling mistake

* added gpu/segmentation to format file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants