31 using namespace std::placeholders;
33 using namespace gtsam;
36 static double fov = 60;
37 static size_t w=640,
h=480;
65 Key transformKey(
T(1));
76 Key transformKey(
T(1));
110 Key transformKey(
T(1));
133 Key transformKey(
T(1));
157 Key transformKey(
T(1));
167 Matrix H1Actual, H2Actual, H3Actual;
171 Matrix H1Expected = (
Matrix(2, 6) << 0., -554.256, 0., -92.376, 0., 0., 554.256, 0., 0., 0., -92.376, 0.).finished();
172 Matrix H3Expected = (
Matrix(2, 3) << 92.376, 0., 0., 0., 92.376, 0.).finished();
179 Matrix H2Expected = numericalDerivative32<Vector, Pose3, Pose3, Point3>(
192 Key transformKey(
T(1));
203 Matrix H1Actual, H2Actual, H3Actual;
207 Matrix H1Expected = (
Matrix(2, 6) << -92.376, 0., 577.350, 0., 92.376, 0., -9.2376, -577.350, 0., 0., 0., 92.376).finished();
208 Matrix H3Expected = (
Matrix(2, 3) << 0., -92.376, 0., 0., 0., -92.376).finished();
215 Matrix H2Expected = numericalDerivative32<Vector, Pose3, Pose3, Point3>(