Skip to content

Commit

Permalink
Merge pull request #518 from borglab/feature/isam2-error
Browse files Browse the repository at this point in the history
ISAM2 Evaluate Nonlinear Error
  • Loading branch information
dellaert authored Sep 29, 2020
2 parents b89478c + 717dbc8 commit 182dfbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gtsam/gtsam.i
Original file line number Diff line number Diff line change
Expand Up @@ -2462,6 +2462,8 @@ class ISAM2Result {
size_t getVariablesRelinearized() const;
size_t getVariablesReeliminated() const;
size_t getCliques() const;
double getErrorBefore() const;
double getErrorAfter() const;
};

class ISAM2 {
Expand Down
2 changes: 2 additions & 0 deletions gtsam/nonlinear/ISAM2Result.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ struct ISAM2Result {
size_t getVariablesRelinearized() const { return variablesRelinearized; }
size_t getVariablesReeliminated() const { return variablesReeliminated; }
size_t getCliques() const { return cliques; }
double getErrorBefore() const { return errorBefore ? *errorBefore : std::nan(""); }
double getErrorAfter() const { return errorAfter ? *errorAfter : std::nan(""); }
};

} // namespace gtsam

0 comments on commit 182dfbd

Please sign in to comment.