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

Fix/1452 #1977

Open
wants to merge 4 commits into
base: fix/1452
Choose a base branch
from
Open

Fix/1452 #1977

wants to merge 4 commits into from

Conversation

JokerJohn
Copy link

Add a minimal test case of IncrementalFixedLagSmoother in gtsam/gtsam_unstable/examples folder using real-world data to showcase how setting findUnusedFactorSlots = true addresses the issue #1452 in GTSAM.

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.

I already added the text file you provided in examples/Data/. Is the file you provided different?

*/
int main() {
// Path to the test data file
ifstream infile("IncrementalFixedLagSmootherTestData.txt");
Copy link
Member

Choose a reason for hiding this comment

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

Could you load the file as in the test I provided in this branch?

saveG2oGraph(smoother.getFactors(), currentEstimate, path + "isam", lineCount);
infile.close();
return 0;
}
Copy link
Member

Choose a reason for hiding this comment

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

Add a new line at end of file, please

@dellaert
Copy link
Member

You’re merging this into the branch I created, which added this as a unit test. I don’t think we need both, so could you also delete the test in this PR? Also look at how I load the file, and perhaps how I now use emplace_shared.

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