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

Lots of Hybrid Improvements #1894

Merged
merged 23 commits into from
Nov 5, 2024
Merged

Lots of Hybrid Improvements #1894

merged 23 commits into from
Nov 5, 2024

Conversation

varunagrawal
Copy link
Collaborator

  1. HybridGaussianFactorGraph::discreteFactors() to retrieve all the discrete factors. More of a convenience method.
  2. prune method for HybridNonlinearFactor.
  3. Prune in reorderRelinearize to improve nonlinear efficiency.
  4. Improve Switching tests.

@varunagrawal varunagrawal requested a review from dellaert November 4, 2024 12:21
@varunagrawal varunagrawal self-assigned this Nov 4, 2024
Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one question

DiscreteFactorGraph dfg;
for (auto &&f : factors_) {
auto discreteFactor = std::dynamic_pointer_cast<DiscreteFactor>(f);
assert(discreteFactor);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t understand how this can work. Not all factors are discrete, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, which is why we have the assert, but I guess the if(auto discreteFactor = ...) check is better.

Copy link
Member

@dellaert dellaert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, that makes more sense :-)

@varunagrawal varunagrawal merged commit 2bd2d82 into develop Nov 5, 2024
33 checks passed
@varunagrawal varunagrawal deleted the check-isam branch November 5, 2024 19:48
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 this pull request may close these issues.

2 participants