31 using namespace std::placeholders;
33 using namespace gtsam;
36 static double fov = 60;
37 static size_t w=640,
h=480;
126 Matrix H1Actual, H2Actual, H3Actual, H4Actual;
130 Matrix H1Expected = (
Matrix(2, 6) << 0., -554.256, 0., -92.376, 0., 0., 554.256, 0., 0., 0., -92.376, 0.).finished();
131 Matrix H3Expected = (
Matrix(2, 3) << 92.376, 0., 0., 0., 92.376, 0.).finished();
138 Matrix H2Expected = numericalDerivative11<Vector, Pose3>(
142 Matrix H4Expected = numericalDerivative11<Vector, Cal3_S2>(
162 Matrix H1Actual, H2Actual, H3Actual, H4Actual;
166 Matrix H1Expected = (
Matrix(2, 6) << -92.376, 0., 577.350, 0., 92.376, 0., -9.2376, -577.350, 0., 0., 0., 92.376).finished();
167 Matrix H3Expected = (
Matrix(2, 3) << 0., -92.376, 0., 0., 0., -92.376).finished();
174 Matrix H2Expected = numericalDerivative11<Vector, Pose3>(
180 Matrix H4Expected = numericalDerivative11<Vector, Cal3_S2>(