2 #include <gtest/gtest.h> 7 TEST(RotationTests, rotationsOK)
32 EXPECT_DOUBLE_EQ(1.0, x);
33 EXPECT_DOUBLE_EQ(0.0, y);
34 EXPECT_DOUBLE_EQ(0.0, z);
37 EXPECT_DOUBLE_EQ(-1.0, x);
38 EXPECT_DOUBLE_EQ(0.0, y);
39 EXPECT_DOUBLE_EQ(0.0, z);
42 EXPECT_DOUBLE_EQ(0.0, x);
43 EXPECT_DOUBLE_EQ(0.0, y);
44 EXPECT_DOUBLE_EQ(1.0, z);
47 int main(
int argc,
char** argv)
49 testing::InitGoogleTest(&argc, argv);
50 return RUN_ALL_TESTS();
TEST(RotationTests, rotationsOK)
static Rotation RPY(double roll, double pitch, double yaw)
void axis_magnitude_from_rotation(const KDL::Rotation &r, double &x, double &y, double &z)
Converts from KDL::Rotation to angle-axis-with-integrated-magnitude.
KDL::Rotation rotation_from_axis_magnitude(const double x, const double y, const double z)
Converts our angle-axis-with-integrated-magnitude representation to a KDL::Rotation.
int main(int argc, char **argv)