2 GTSAM Copyright 2010-2019, Georgia Tech Research Corporation, 3 Atlanta, Georgia 30332-0415 6 See LICENSE for the license information 8 visual_isam unit tests. 9 Author: Frank Dellaert & Duy Nguyen Ta (Python) 18 from gtsam
import symbol
26 options = generator.Options()
27 options.triangle =
False 28 options.nrCameras = 20
31 isamOptions = visual_isam.Options()
32 isamOptions.hardConstraint =
False 33 isamOptions.pointPriors =
False 34 isamOptions.batchInitialization =
True 35 isamOptions.reorderInterval = 10
36 isamOptions.alwaysRelinearize =
False 39 data, truth = generator.generate_data(options)
42 isam, result, nextPose = visual_isam.initialize(data, truth, isamOptions)
45 for currentPose
in range(nextPose, options.nrCameras):
46 isam, result = visual_isam.step(data, isam, result, truth, currentPose)
48 for i
in range(
len(truth.cameras)):
49 pose_i = result.atPose3(
symbol(
'x', i))
52 for j
in range(
len(truth.points)):
53 point_j = result.atPoint3(
symbol(
'l', j))
56 if __name__ ==
"__main__":
def gtsamAssertEquals(self, actual, expected, tol=1e-9)
static const Pose3 pose(Rot3(Vector3(1,-1,-1).asDiagonal()), Point3(0, 0, 0.5))
Key symbol(unsigned char c, std::uint64_t j)
def test_VisualISAMExample(self)