Skip to content

Commit

Permalink
formatting and fix
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Jul 6, 2023
1 parent 93ed850 commit a14fb8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 3 additions & 4 deletions gtsam/nonlinear/nonlinear.i
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ class ISAM2 {
gtsam::KeyGroupMap& constrainedKeys,
const gtsam::KeyList& noRelinKeys,
const gtsam::KeyList& extraReelimKeys,
bool force_relinearize=false);
bool force_relinearize = false);

gtsam::ISAM2Result update(const gtsam::NonlinearFactorGraph& newFactors,
const gtsam::Values& newTheta,
Expand Down Expand Up @@ -548,9 +548,8 @@ class ISAM2 {

string dot(const gtsam::KeyFormatter& keyFormatter =
gtsam::DefaultKeyFormatter) const;
void saveGraph(string s,
const gtsam::KeyFormatter& keyFormatter =
gtsam::DefaultKeyFormatter) const;
void saveGraph(string s, const gtsam::KeyFormatter& keyFormatter =
gtsam::DefaultKeyFormatter) const;
};

#include <gtsam/nonlinear/NonlinearISAM.h>
Expand Down
7 changes: 1 addition & 6 deletions python/gtsam/tests/test_VisualISAMExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def test_VisualISAMExample(self):

def test_isam2_error(self):
"""Test for isam2 error() method."""
#TODO(Varun) fix
# Initialize iSAM with the first pose and points
isam, result, nextPose = visual_isam.initialize(
self.data, self.truth, self.isamOptions)
Expand All @@ -83,13 +82,9 @@ def test_isam2_error(self):
except RuntimeError:
v = estimate.atPoint3(key)

print(key)
print(type(v))
print(v)
values.insert(key, v)
print(isam.error(values))

self.assertEqual(isam.error(values), 34212421.14731998)
self.assertAlmostEqual(isam.error(values), 34212421.14731998)

def test_isam2_update(self):
"""
Expand Down

0 comments on commit a14fb8d

Please sign in to comment.