Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into sim3
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexma3312 committed Sep 29, 2020
2 parents 31ad107 + 182dfbd commit 983652b
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 983652b

Please sign in to comment.