2 GTSAM Copyright 2010-2019, Georgia Tech Research Corporation,
3 Atlanta, Georgia 30332-0415
6 See LICENSE for the license information
9 Author: Frank Dellaert & Duy Nguyen Ta (Python)
17 from gtsam
import (Cal3_S2, Cal3Bundler, Cal3DS2, EssentialMatrix, Point2,
18 Point3, Pose2, Pose3, Rot2, Rot3, Unit3, Values, imuBias)
29 values.insert(0,
Point2(0, 0))
30 values.insert(1,
Point3(0, 0, 0))
31 values.insert(2,
Rot2())
32 values.insert(3,
Pose2())
33 values.insert(4,
Rot3())
34 values.insert(5,
Pose3())
39 values.insert(10, imuBias.ConstantBias())
52 vec = np.array([1., 2., 3.])
53 values.insert(11, vec)
54 mat = np.array([[1., 2.], [3., 4.]], order=
'F')
55 values.insert(12, mat)
59 mat2 = np.array([[1, 2, ], [3, 5]])
60 values.insert(13, mat2)
73 10), imuBias.ConstantBias(), tol)
76 actualVector = values.atVector(11)
77 np.testing.assert_allclose(vec, actualVector, tol)
78 actualMatrix = values.atMatrix(12)
79 np.testing.assert_allclose(mat, actualMatrix, tol)
80 actualMatrix2 = values.atMatrix(13)
81 np.testing.assert_allclose(mat2, actualMatrix2, tol)
84 if __name__ ==
"__main__":