Conversation
dellaert
reviewed
Aug 16, 2021
| protected: | ||
| T x_; // linearization point | ||
| JacobianFactor::shared_ptr priorFactor_; // Gaussian density on x_ | ||
| GaussianFactorGraph::shared_ptr lastLinearization; |
| linearizationPoint.insert(keys[1], x_); // TODO should this really be x_ ? | ||
| linearFactorGraph.push_back(motionFactor.linearize(linearizationPoint)); | ||
|
|
||
| if (lastLinearization != nullptr) { |
|
|
||
| // Create a Gaussian Factor Graph | ||
| GaussianFactorGraph linearFactorGraph; | ||
| GaussianFactorGraph::shared_ptr linearFactorGraph = boost::make_shared<GaussianFactorGraph>(); |
Member
There was a problem hiding this comment.
Why did you change this to a pointer?
Member
|
@ProfFan address comments so we can merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR tries to change the linearization point to a linear expolation of the current estimate using the previous linearization.
However I found this to be not as useful as it would be in the intended usage in GTSAM:
In making this change I also found out that the
easyPoint2KalmanFilterexample has a typo, which I also fixed.If we decide that this is unnecessary, I can keep only the typo fix.