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

address the issue of duplicating discrete factors #38

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

jungseokhong
Copy link
Contributor

Updated the code to prevent adding discrete factors twice.

@keevindoherty
Copy link
Collaborator

Would you mind adding a test check in testDCSAM that looks for the factor duplication bug?

something like:

EXPECT_EQ(dcsam.getDiscreteFactorGraph().size(), 1);
EXPECT_EQ(dcsam.getNonlinearFactorGraph().size(), 2);

could be in any of the tests where we call dcsam.update(…) (ideally whichever is simplest)

@jungseokhong
Copy link
Contributor Author

jungseokhong commented Jun 20, 2024

Would you mind adding a test check in testDCSAM that looks for the factor duplication bug?

something like:

EXPECT_EQ(dcsam.getDiscreteFactorGraph().size(), 1);
EXPECT_EQ(dcsam.getNonlinearFactorGraph().size(), 2);

could be in any of the tests where we call dcsam.update(…) (ideally whichever is simplest)

I've added a test case and made a commit

@jungseokhong jungseokhong merged commit a493b3d into MarineRoboticsGroup:main Jul 25, 2024
1 of 2 checks passed
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