-
Notifications
You must be signed in to change notification settings - Fork 792
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
Fix/1452 #1977
Conversation
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.
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"); |
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.
Could you load the file as in the test I provided in this branch?
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.
Resolved.
saveG2oGraph(smoother.getFactors(), currentEstimate, path + "isam", lineCount); | ||
infile.close(); | ||
return 0; | ||
} |
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.
Add a new line at end of file, please
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.
Resolved.
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 |
…eading files and adding factors.
Sorry, I just noticed that you have already provided the data file |
Ping on this comment :-) |
Hi @JokerJohn - I actually liked your example - I was asking to remove the test :-) |
Sorry,I saw the unit test code for issue 1452, which has already incorporated the example code, so I closed this PR. If there's a need to change it into an example case, I can reopen this PR. |
Excellent, but could you then remove the (slow and redundant) unit test that basically does the same? Your example shows (a) it works, (b) a useful example. |
done. |
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.
Cool!
Add a minimal test case of
IncrementalFixedLagSmoother
ingtsam/gtsam_unstable/examples
folder using real-world data to showcase how settingfindUnusedFactorSlots = true
addresses the issue #1452 in GTSAM.