2 GTSAM Copyright 2010-2019, Georgia Tech Research Corporation, 3 Atlanta, Georgia 30332-0415 6 See LICENSE for the license information 8 PinholeCamera unit tests. 22 Tests if we can correctly get the camera Jacobians in Python 28 Dpose = np.zeros((2, 6), order=
'F')
29 Dpoint = np.zeros((2, 3), order=
'F')
30 Dcal = np.zeros((2, 3), order=
'F')
31 cam1.project(np.array([1, 1, 1]), Dpose, Dpoint, Dcal)
38 [1., -2., 1., -1., 0., 1.],
39 [2., -1., -1., 0., -1., 1.]
45 if __name__ ==
"__main__":
def gtsamAssertEquals(self, actual, expected, tol=1e-9)