Skip to content
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

iSAM2 and smartfactors #10

Closed
dellaert opened this issue May 19, 2019 · 4 comments · Fixed by #25
Closed

iSAM2 and smartfactors #10

dellaert opened this issue May 19, 2019 · 4 comments · Fixed by #25

Comments

@dellaert
Copy link
Member

Re-opening bitbucket issue 420

@jlblancoc
Copy link
Member

@dellaert Brilliant! Next week, hopefully will come back to this important one.
Cheers.

@jlblancoc
Copy link
Member

Work in progress here.

On this:

One things is that we definitely want to be backwards compatible on update, including in wrappers.

Let me know if this solution (100% backwards compatible) seems better.
Next, we can add to that structure the new parameters needed to solve this bug.

On this:

“In theory, even smart-factors know which keys they are connected to, so I am not sure why simply giving the keys is not an option.”

It would be great to do it like that; last time I spent some time with this, though, it looked like it was not possible, but will give it another try just in case I missed something.

@jlblancoc
Copy link
Member

I'm super happy this is solved, yay!

@dellaert Please, take a look at the proposed solution in the PR #25.

“In theory, even smart-factors know which keys they are connected to, so I am not sure why simply giving the keys is not an option.”

Perhaps there's another way, but I though that for iSAM2::getAffectedFactors() to work properly:

FactorIndexSet indices;
for (const Key key : keys) {
const VariableIndex::Factors& factors(variableIndex_[key]);
indices.insert(factors.begin(), factors.end());
}

we need variableIndex_ to be up-to-date, and that implies requesting from the user this information, that's the reason of the new parameter to update().

@dellaert
Copy link
Member Author

Excellent, I will review...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants