-
-
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
ObjRecRANSAC::addModel() error #269
ObjRecRANSAC::addModel() error #269
Conversation
Can you remove the commits from #245? Thanks! |
sorry, I am not a git expert. What is the best way to go about doing that |
have a look at git rebase -i |
Run |
…esIntersectedBySphere to prevent inclusion of source point leaf
@musi00 could you reformat this according to our style guide: http://pointclouds.org/documentation/advanced/pcl_style_guide.php? Also, could you probably add a test case? Thanks! |
to create the test case. It seems I need to do the following:
I am not sure if there are any other Macros that I need to use. In my case, I need to test that the get pcl::recognition::ORROctree::getFullLeavesIntersectedBySphere() doesn't return the query leaf in the solution of leafs intersected by the sphere. So are there Macros to be used for this check? Anything else I am missing? |
You may write a In general, this primer is a good starting point if you are new to this testing framework. |
Two questions:
|
|
yes, I do see the gtest source within the pcl source but it doesn't seem that the pcl install automatically compiles it into a library or am I mistaken. |
solved gtest issue by installing gtest library on my system |
Have a look at 'test/CMakeLists.txt', you will notice rules to compile |
Thanks for all the help Sergey |
|
||
/** \brief a = b */ | ||
template <typename T> bool | ||
equal3(const T a[3], const T b[3]) |
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 a space before (
Could you please reformat this using two spaces for every indention level, according to the style guide? Thanks! |
spacing looked fine on my end when I opened the files in qt creator or vim but were not fine in the github diff. I replaced my 'tabs' with spaces and I think that fixed things. |
ObjRecRANSAC::addModel() error
ObjRecRANSAC::addModel() will core dump for certain values of the variables, pair_width_ and voxel_size_, in recognition:ObjRecogRANSAC. Certain values can cause the point pair feature calculation to return some nan value. These nan values are used as an index to access a hash table cell and therefore failing.
This happens because the method recognition::ModelLibrary::getFullLeavesIntersectedBySphere((const float* p, float radius, std::listORROctree::Node*& out) which returns the set of leaves that are a specific distance apart from the source point p can return the leaf of the source point in the solution set. This causes the calculation of the point pair feature of a the point with itself. When calculating the point pair feature of a point with itself a division by zero operation occurs which causes a nan valued point pair feature which is used as a key to a hash table resulting in a core dump. Fixed it by: