-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Including GRSD a global radius-based surface descriptor #790
Conversation
Can somebody help me in merging this? Travis CI build failed twice and I have no clue of what should be done. Thanks in advance! :) |
Sure, Take a look at travis build (line 972)
You have set a global path to a file; this will only work on your machine with your folder tree. |
#ifndef PCL_FEATURES_IMPL_GRSD_H_ | ||
#define PCL_FEATURES_IMPL_GRSD_H_ | ||
|
||
#include "/home/kar/workspace/gsoc_14/pcl_test/grsd/grsd.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This must be a relative path !
Oh my bad! Thanks Victor. I solved it and pushed again. Hopefully it should build. :) |
|
||
/** \brief Get the sphere radius used for determining the neighbors. */ | ||
inline double | ||
getRadiusSearch () { return (search_radius_); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add const
qualifier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh ok!
I changed it to getRadiusSearch() const { return search_radius_); }
Hi, please check out the contributors guide. We'll need you to fix the code according to the style guide (add spaces between function names and braces) and clean up the commit history. |
Is there a pcl style file for vim? |
There is the Eclipse style guide : As for Vim, I don't think so |
Oh ok I will check if I can convert the emacs style file for Vim. Thanks |
Ok i am checking the checklist mentioned in the contributors guide and have following queries.
|
|
|
That was really helpful guys! Really appreciate that. |
Compilation fails: line 1351 |
I checked it again locally and it builds just fine. RSD Estimation is enabled in the CMakeLists.txt of the features module. Is there a unit test phase that I should be aware off? |
Compile it like the travis.sh script and you'll get the bug. Bye |
@VictorLamoine: Ya it seems so but when I turn on the PCL_ONLY_CORE_POINT_TYPES option I don't see the error locally. Build is failing at clang and travis.sh has only PCL_ONLY_CORE_POINT_TYPES being turned on. Am I missing something. And the way I turned the PCL_ONLY_CORE_POINT_TYPES on is by using pcl_options.cmake in cmake folder. |
I get the same errors as the Travis build with
|
@VictorLamoine : Thanks a lot that helped me debug it easly and I had to add the below lines into the grsd.cpp. I have been looking at RSD as the error suggested so but then GRSD was calling RSD and was failing for all the types.
|
Hi again :)
So how to do that. And I don't think I have written any tests for RSD and GRSD how to go about that? |
Don't bother the timeout. Basically you don't have to do anything about this. You could write a test unit for the RSD / GRSD if you think it is useful. I don't think we need the |
I removed the doxyfile in the latest commit and pushed it. |
#ifdef PCL_ONLY_CORE_POINT_TYPES | ||
PCL_INSTANTIATE_PRODUCT(GRSDEstimation, ((pcl::PointXYZ)(pcl::PointXYZI)(pcl::PointXYZRGBA))((pcl::Normal))((pcl::GRSDSignature21))) | ||
#else | ||
PCL_INSTANTIATE_PRODUCT(GRSDEstimation, (PCL_XYZ_POINT_TYPES)(PCL_NORMAL_POINT_TYPES)((pcl::GRSDSignature21))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use spaces here.
Please also edit the commit message. I think it suffices to keep just the first paragraph. |
Sure Sergey! will fix them now. |
Its a timeout error again! I have written global_tests for RSD and GRSD. I would like to include them in the trunk as well. But should I wait for this pull request to pass and raise another? Or should I push them along with this request since its still on hold. Let me know which is appropriate! |
Push the test unit into an other commit of this pull request! |
double max_min_radius_diff = 0.050) | ||
{ | ||
if (min_radius > min_radius_plane) | ||
return 1; // plane |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you put return values into braces please ?
return (1):
etc.
👍 just add a second commit |
Hope I have followed all the rules of style guide and the error is just with respect to the time out! |
Is the clang error relevant to my push? |
No that's a Travis bug! |
Ok then! Anything I should do to merge this and close the request? |
*/ | ||
|
||
inline int | ||
getSimpleType (float min_radius, float max_radius, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not like this free documentation-less function in pcl
namespace. I would suggest we make it a static member of GRSDEstimation
. (Private or protected if it is not supposed to be used outside of the class, or public otherwise.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you tell me on how to do that?
Or point me to similar modules so that i can replicate them accordingly!
Thanks in advance!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure what confuses you there. Static functions is not something PCL-specific... just have a look at some article (like this) to give yourself a refresher on the topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks that was helpful. :)
Hi Karthik, I think we are very close to merging, but please have a look at the comments I left. |
Sure Sergey! I will look into them now. |
GRSD is developed by Zoltan-Marton, this was a old patch as part of his branch being included into the trunk Adding test files for RSD and GRSD. style guide issues resolved
Three weeks, 50+ comments, and we are finally done :) |
Including GRSD a global radius-based surface descriptor
GRSD is developed by Zoltan-Marton, this was a old patch as part of his branch being included into the trunk.