You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to back up an ISAM2 solver object to disk but it does not work properly once it is loaded back from file. This is the gtest code I used to test it (I can also provide the includes and exports used):
The exception text is: Requested variable 'x0' is not in this VectorValues.
Environment
I am using gtsam version 4.0.3 on Ubuntu 20.04.
Additional information
Looking through the source code, the ISAM2 class inherits the "serialize" function from the BayesTree parent class. ISAM2 adds several member values such as delta_ and theta_ which are not included in the serialize function and this seems to be where the problem comes from. I'm not sure if it would be appropriate to write a new serialize function which includes these or if ISAM2 is not intended to be serialized.
The text was updated successfully, but these errors were encountered:
This seems straightforward to fix by adding the necessary Boost Name-Value-Pairs (nvp). Am I missing something?
@ScottMcMichael I don't have a lot of bandwidth right now to fix this for the next few weeks, but if you submit a PR I can provide reviews and recommendations.
Description
I am trying to back up an ISAM2 solver object to disk but it does not work properly once it is loaded back from file. This is the gtest code I used to test it (I can also provide the includes and exports used):
The exception text is: Requested variable 'x0' is not in this VectorValues.
Environment
I am using gtsam version 4.0.3 on Ubuntu 20.04.
Additional information
Looking through the source code, the ISAM2 class inherits the "serialize" function from the BayesTree parent class. ISAM2 adds several member values such as delta_ and theta_ which are not included in the serialize function and this seems to be where the problem comes from. I'm not sure if it would be appropriate to write a new serialize function which includes these or if ISAM2 is not intended to be serialized.
The text was updated successfully, but these errors were encountered: