-
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
changed barcsq to a vector to allow each factor to have a different inlier threshold #684
Conversation
@dellaert @jingnanshi @pantonante : I completed a small enhancement for GNC. please take a look and approve if you like it. @dellaert : please take a look at the 2 lines commented at line 658 of testGncOptimizer. It seems that "dim()" segfaults when we use the default noise model in the factor. This might be a bug in gtsam. |
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.
Nice! Sorry about delay, teaching large class ;-)
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.
PR is fine, but changing to "request changes" as I just noticed CI fails on Linux. Probably something small but needs to be fixed before we can merge.
Is that why CI fails? Let me check. |
@dellaert: let me know if you get some insight into what's failing in CI. I took another pass and cleaned up the comments. @jingnanshi @pantonante : feel free to approve if this looks good. |
gtsam/nonlinear/GncOptimizer.h
Outdated
@@ -29,7 +29,18 @@ | |||
#include <gtsam/nonlinear/GncParams.h> | |||
#include <gtsam/nonlinear/NonlinearFactorGraph.h> | |||
|
|||
//#include <boost/math/distributions/inverse_chi_squared.hpp> |
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.
We might want to remove this line.
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.
good catch - done!
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.
Everything looks good! I left one comment regarding a commented out include file.
Still some failures on Ubuntu, though? |
@dellaert : I only changed comments so far, I hoped you could look into the dim() issue. Let me know if that's not feasible. |
Dim issue is separate, I think. CI failure is unrelated |
@dellaert : @jingnanshi fixed the issue! at this point, this branch should be good to go |
I realized that having a default inlier threshold equal to 1 does not make sense for the gtsam user since:
The PR involves: