15 #include <gtest/gtest.h>
24 using SophusTestCases = testing::Types<Sophus::SE2d, Sophus::SE2f, Sophus::SE3d, Sophus::SE3f>;
27 class TransformConvertTest :
public testing::Test {
34 TYPED_TEST(TransformConvertTest, ThereAndBackAgain) {
35 auto message1 = beluga_ros::msg::Transform{};
36 auto message2 = beluga_ros::msg::Transform{};
37 message1.translation.x = 1;
38 message1.translation.y = 2;
39 message1.translation.z = 0;
40 message1.rotation.x = 0;
41 message1.rotation.y = 0;
42 message1.rotation.z = 0;
43 message1.rotation.w = 1;
44 auto instance =
typename TestFixture::TypeParam{};
47 ASSERT_EQ(message1, message2);
51 class PoseConvertTest :
public testing::Test {
58 TYPED_TEST(PoseConvertTest, ThereAndBackAgain) {
59 auto message1 = beluga_ros::msg::Pose{};
60 auto message2 = beluga_ros::msg::Pose{};
61 message1.position.x = 1;
62 message1.position.y = 2;
63 message1.position.z = 0;
64 message1.orientation.x = 0;
65 message1.orientation.y = 0;
66 message1.orientation.z = 0;
67 message1.orientation.w = 1;
68 auto instance =
typename TestFixture::TypeParam{};
71 ASSERT_EQ(message1, message2);