-
Notifications
You must be signed in to change notification settings - Fork 767
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
Fix/plane factor #564
Fix/plane factor #564
Conversation
…r Unit3::localCoordinates.
See #680 for further developments |
Fix/plane factor dwisth
Fix OrientedPlane3Factor jacobian
Just an update, I've been looking into this and have had some luck with the "relative plane factor" as described in Kaess2015 (Equation 25). This is basically a ternary factor, with a local linearisation point for the plane. It seems to work well for unit tests and some real datasets. I'm just polishing it off, doing some more testing, and will try to push soon. |
That makes a lot of sense, given our discussion. I'll assume you're adding a factor. And that we can also remove the one "error" function in favor of one with analytical derivatives :-) |
I just:
The only thing I'm stuck on now is the |
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 think we should restrict this PR to the plane factors only, no changes are needed to Unit3 and other factors that derive from it. Regarding the unit test that doesn’t pass, if this is not important to your current use case, I would just comment it out. I looked at it as well and I could not figure out what was wrong either.
…errorVector()" This reverts commit 5087d36.
Cool, thanks ! |
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.
In general LGTM, but I think it's better if there are inline comments on why tests are disabled.
Merged, thanks a lot all!!!! |
Has this problem been solved? Which version is the final version? I found that gtsam 4.0.3 still has problems @dellaert |
Adding unit test by Marco (@mcamurri) to debug issue #561
Note it does not seem to be the adding of a second factor that causes the problem. For example, commenting out both plane priors but adding two plane factors works. In fact and this is crazy just uncommenting the prior on P2 makes the solver fail. This is crazy as the prior is not even supposed to play a role when we eliminate P1.
I'm stumped. Could be a subtle memory bug in OrientedPlane3 or any of the derivatives, but I checked at least some of the prime suspects and did not see anything obviously wrong.
More investigation needed