Closed jahead closed 10 years ago
Hi Jahead,
Thanks for reporting. I'll need to investigate your problem more precisely. In your example, there are few points and you use an outlier filter which will reduce even more the number of points. Maybe this exception is throw before/instead of a proper one which should say "not enough points" or something like that. I'm on the road for some days so I'll check that later. If you could check that, it would be great.
Meanwhile, here are the answers to your questions:
If you develop new modules to suit your needs, we are always happy to have more contributors!
Sorry for the late reply. Thank you for your response.
It does seems the low point count is a problem. The new beta version of the leap motion sdk, is now giving us more points so I've been updating and porting the code to handle a larger points set.
I"ll try not using an outlier filter when I get around to use ICP again; which should be soon. But I wasn't getting the "not enough points" exception. we concluded (not tested) that the icp was not having enough pairs to do its work and the only pairs that were detected were becoming co linear. Our the data points are only approximations that get approximated based separately, therefore the points be can related to the same 'joint' but have slightly different xyz points.
Hope that gives you a bit more context.
The larger the point cloud did help. 22 points and we aren't seeing this exception. Which is interesting that I wasn't getting the "not enough points" exception.
Hi jahead,
So looking at the code a bit more. There is no safety for a minimal number of in the errorMinimizer. There was a check for singularity in point-to-plane based on the rank of the matrix but it was commented out because it was throwing too often.
It is tricky to put a hard threshold on the number of points given that in theory it should be 3, but in practice it is often more than that.
I'll reopen another issue with a clearer description in case somebody has already though about it.
Hey so I keep getting this error randomly showing up, in my icp runs. "RigidTransformation: Error, rotation matrix is not orthogonal." I don't really understand why it would be throwing this error, or how to solve it.
For example, here is two point clouds that have caused this error.
a gist of it can be found here: https://gist.github.com/jahead/cb5b3add89fc1815452a and my icp setup is this.
I also realise that there is a correctParameters function. But your ICP isn't using it once it detects the transformation error being thrown; it's just throwing an exception. It seems odd that the ICP can't do this correction on the fly. By just calling the correctParameters function when checkParameters returns false. Or maybe I'm looking at the problem wrong.
Oh and ps. I don't load from yaml. Could this be a problem? And I'm running the icp at high frequency as i'm trying converge two datasets from two different leap motions.
Oh and btw. I'm loving your library