From 839a1ed05e95690b198fb07502a8f14ef79fd9cd Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Fri, 6 Dec 2024 17:57:10 +0100 Subject: [PATCH] unittest: Add compatibility with hpp-fcl --- unittest/parallel-geometry.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/unittest/parallel-geometry.cpp b/unittest/parallel-geometry.cpp index fc93f58fd..35dd12f82 100644 --- a/unittest/parallel-geometry.cpp +++ b/unittest/parallel-geometry.cpp @@ -260,6 +260,8 @@ BOOST_AUTO_TEST_CASE(test_talos) } else { + // Only run this part in coal, this issue doesn't happen in hpp-fcl +#if HPP_FCL_VERSION_AT_LEAST(3, 0, 0) // Compare standard values BOOST_CHECK_EQUAL(contact.o1, contact_ref.o1); BOOST_CHECK_EQUAL(contact.o2, contact_ref.o2); @@ -276,6 +278,7 @@ BOOST_AUTO_TEST_CASE(test_talos) BOOST_CHECK(contact_ref.pos != contact_ref.pos); BOOST_CHECK(contact_ref.nearest_points[0] != contact_ref.nearest_points[0]); BOOST_CHECK(contact_ref.nearest_points[1] != contact_ref.nearest_points[1]); +#endif // hpp-fcl >= 3.0.0 } } }