25 using namespace std::placeholders;
27 using namespace gtsam;
49 Matrix H1Expected, H2Expected;
51 H1Expected = numericalDerivative11<Vector2, Pose2>(
53 H2Expected = numericalDerivative11<Vector2, Point2>(
70 Pose2 base1, base2(1, 0, 0);
76 Matrix H1Actual, H2Actual, H3Actual, H4Actual;
78 H2Actual, H3Actual, H4Actual);
82 Matrix H1Expected, H2Expected, H3Expected, H4Expected;
83 H1Expected = numericalDerivative11<Vector2, Pose2>(
88 H2Expected = numericalDerivative11<Vector2, Pose2>(
90 return factor.evaluateError(base1, pose_arg, base2,
point);
93 H3Expected = numericalDerivative11<Vector2, Pose2>(
98 H4Expected = numericalDerivative11<Vector2, Point2>(
100 return factor.evaluateError(base1,
pose, base2, point_arg);
120 Pose2 base1, base2(1, 0, 0);
125 Matrix H1Actual, H2Actual, H3Actual, H4Actual;
127 H2Actual, H3Actual, H4Actual);
131 Matrix H1Expected, H2Expected, H3Expected, H4Expected;
133 H1Expected = numericalDerivative11<Vector3, Pose2>(
138 H2Expected = numericalDerivative11<Vector3, Pose2>(
140 return factor.evaluateError(base1, pose_arg, base2,
pose2);
143 H3Expected = numericalDerivative11<Vector3, Pose2>(
148 H4Expected = numericalDerivative11<Vector3, Pose2>(
150 return factor.evaluateError(base1,
pose1, base2, pose_arg);