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>(
89 [&factor, &
point, &base1, &base2](
const Pose2& pose_arg) {
93 H3Expected = numericalDerivative11<Vector2, Pose2>(
98 H4Expected = numericalDerivative11<Vector2, Point2>(
99 [&factor, &
pose, &base1, &base2](
const Point2& 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>(
139 [&factor, &
pose2, &base1, &base2](
const Pose2& pose_arg) {
143 H3Expected = numericalDerivative11<Vector3, Pose2>(
148 H4Expected = numericalDerivative11<Vector3, Pose2>(
149 [&factor, &
pose1, &base1, &base2](
const Pose2& pose_arg) {