-
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
Gnc enhancements #765
Gnc enhancements #765
Conversation
lucacarlone
commented
May 10, 2021
•
edited
Loading
edited
- added interface to specify known outliers in GNC
- added example with GNC
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.
LGTM, but Jingnan should probably the one to do a thorough review and sign off?
PS I know I'm behind on the other PR - semester is now over and I might get some time back to look at it...
@dellaert : no hurry! |
gtsam/nonlinear/GncOptimizer.h
Outdated
std::inserter(unknownWeights, unknownWeights.begin())); | ||
|
||
// update weights of known inlier/outlier measurements | ||
switch (params_.lossType) { | ||
case GncLossType::GM: { // use eq (12) in GNC paper | ||
for (size_t k : unknownWeights) { | ||
if (nfg_[k]) { | ||
if (nfg_[k]) { |
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.
nitpick: there's an extra space here
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.
👍 Left one formatting comment.
@jingnanshi - thanks! |
Awesomesauce! will merge. |