2 GTSAM Copyright 2010-2020, Georgia Tech Research Corporation,
3 Atlanta, Georgia 30332-0415
6 See LICENSE for the license information
8 Unit tests to check pickling.
12 from gtsam
import Cal3Bundler, PinholeCameraCal3Bundler, Point2, Point3, Pose3, Rot3, SfmTrack, Unit3
17 """Tests pickling on some of the classes."""
20 obj =
Cal3Bundler(fx=100, k1=0.1, k2=0.2, u0=100, v0=70)
31 obj = Rot3.RzRyRx(0, 0.05, 0.1)
35 obj =
Pose3(Rot3.Ypr(0.0, 1.0, 0.0),
Point3(1, 1, 0))
40 obj.addMeasurement(0,
Point2(-1, 5))
41 obj.addMeasurement(1,
Point2(6, 2))