From 8b44a4b8edbaf5e29c9c2431de3aa320cba57606 Mon Sep 17 00:00:00 2001 From: Bjar Ne Date: Tue, 26 Jan 2021 15:46:34 +0000 Subject: [PATCH] Fix bullet test and cmake --- tf2_bullet/CMakeLists.txt | 1 - tf2_bullet/test/test_tf2_bullet.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tf2_bullet/CMakeLists.txt b/tf2_bullet/CMakeLists.txt index 025c2b1e9..6cc257ec0 100644 --- a/tf2_bullet/CMakeLists.txt +++ b/tf2_bullet/CMakeLists.txt @@ -49,5 +49,4 @@ if(BUILD_TESTING) endif() ament_export_include_directories(include) -ament_export_libraries(${PROJECT_NAME}) ament_package() diff --git a/tf2_bullet/test/test_tf2_bullet.cpp b/tf2_bullet/test/test_tf2_bullet.cpp index 03a957727..dc738cef5 100644 --- a/tf2_bullet/test/test_tf2_bullet.cpp +++ b/tf2_bullet/test/test_tf2_bullet.cpp @@ -60,8 +60,8 @@ TEST(TfBullet, ConvertTransform) btTransform transform_bt; tf2::convert(transform, transform_bt); - EXPECT_EQ(transform_bt.getRotation(), btQuaternion(1.0f, 0.0f, 0.0f, 0.0f)); - EXPECT_EQ(transform_bt.getOrigin(), btVector3(0.0f, 0.0f, 2.0f)); + EXPECT_EQ(transform_bt.getRotation(), btQuaternion(1, 0, 0, 0)); + EXPECT_EQ(transform_bt.getOrigin(), btVector3(0, 0, 2)); geometry_msgs::msg::Transform transform2; tf2::convert(transform_bt, transform2);