Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clang format gpu/segmentation #4819

Merged

Conversation

FabianSchuetze
Copy link
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 :-)

/*
if(tree_->cloud_.size() != host_cloud.size ())
{
PCL_ERROR("[pcl::gpu::EuclideanClusterExtraction] size of host cloud and device
Copy link
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
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
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
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
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
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
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
Member

@mvieth Merge? 🚀

@mvieth
Copy link
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.

None yet

4 participants