Fix build for GTSAM_ALLOW_DEPRECATED_SINCE_V4=OFF
parent
ec334877ff
commit
8c221efda2
|
@ -106,7 +106,7 @@ TEST(Scenario, LoopWithInitialPose) {
|
||||||
// Pitch up with angular velocity 6 kDegree/sec (negative in FLU)
|
// Pitch up with angular velocity 6 kDegree/sec (negative in FLU)
|
||||||
const double v = 2, w = 6 * kDegree;
|
const double v = 2, w = 6 * kDegree;
|
||||||
const Vector3 W(0, -w, 0), V(v, 0, 0);
|
const Vector3 W(0, -w, 0), V(v, 0, 0);
|
||||||
const Rot3 nRb0 = Rot3::yaw(M_PI);
|
const Rot3 nRb0 = Rot3::Yaw(M_PI);
|
||||||
const Pose3 nTb0(nRb0, Point3(1, 2, 3));
|
const Pose3 nTb0(nRb0, Point3(1, 2, 3));
|
||||||
const ConstantTwistScenario scenario(W, V, nTb0);
|
const ConstantTwistScenario scenario(W, V, nTb0);
|
||||||
|
|
||||||
|
|
|
@ -149,6 +149,7 @@ TEST(Manifold, DefaultChart) {
|
||||||
EXPECT(assert_equal((Vector) Z_3x1, traits<Rot3>::Local(R, R)));
|
EXPECT(assert_equal((Vector) Z_3x1, traits<Rot3>::Local(R, R)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef GTSAM_ALLOW_DEPRECATED_SINCE_V4
|
||||||
//******************************************************************************
|
//******************************************************************************
|
||||||
typedef ProductManifold<Point2,Point2> MyPoint2Pair;
|
typedef ProductManifold<Point2,Point2> MyPoint2Pair;
|
||||||
|
|
||||||
|
@ -174,6 +175,7 @@ TEST(Manifold, ProductManifold) {
|
||||||
EXPECT(assert_equal(expected,pair2,1e-9));
|
EXPECT(assert_equal(expected,pair2,1e-9));
|
||||||
EXPECT(assert_equal(d, pair1.localCoordinates(pair2),1e-9));
|
EXPECT(assert_equal(d, pair1.localCoordinates(pair2),1e-9));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//******************************************************************************
|
//******************************************************************************
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Reference in New Issue