14 using namespace std::placeholders;
15 using namespace gtsam;
33 TEST( testRelativeElevationFactor, level_zero_error ) {
39 Matrix expH1 = numericalDerivative21<Vector, Pose3, Point3>(
41 std::placeholders::_2),
43 Matrix expH2 = numericalDerivative22<Vector, Pose3, Point3>(
45 std::placeholders::_2),
52 TEST( testRelativeElevationFactor, level_positive ) {
58 Matrix expH1 = numericalDerivative21<Vector, Pose3, Point3>(
60 std::placeholders::_2),
62 Matrix expH2 = numericalDerivative22<Vector, Pose3, Point3>(
64 std::placeholders::_2),
71 TEST( testRelativeElevationFactor, level_negative ) {
77 Matrix expH1 = numericalDerivative21<Vector, Pose3, Point3>(
79 std::placeholders::_2),
81 Matrix expH2 = numericalDerivative22<Vector, Pose3, Point3>(
83 std::placeholders::_2),
90 TEST( testRelativeElevationFactor, rotated_zero_error ) {
96 Matrix expH1 = numericalDerivative21<Vector, Pose3, Point3>(
98 std::placeholders::_2),
100 Matrix expH2 = numericalDerivative22<Vector, Pose3, Point3>(
102 std::placeholders::_2),
109 TEST( testRelativeElevationFactor, rotated_positive ) {
115 Matrix expH1 = numericalDerivative21<Vector, Pose3, Point3>(
117 std::placeholders::_2),
119 Matrix expH2 = numericalDerivative22<Vector, Pose3, Point3>(
121 std::placeholders::_2),
128 TEST( testRelativeElevationFactor, rotated_negative1 ) {
134 Matrix expH1 = numericalDerivative21<Vector, Pose3, Point3>(
136 std::placeholders::_2),
138 Matrix expH2 = numericalDerivative22<Vector, Pose3, Point3>(
140 std::placeholders::_2),
147 TEST( testRelativeElevationFactor, rotated_negative2 ) {
153 Matrix expH1 = numericalDerivative21<Vector, Pose3, Point3>(
155 std::placeholders::_2),
157 Matrix expH2 = numericalDerivative22<Vector, Pose3, Point3>(
159 std::placeholders::_2),