3 #include <gtest/gtest.h> 13 std::srand(std::time(0));
22 double truex, truey, trueyaw1, trueyaw2;
36 double yaw, pitch, roll;
40 tf::Vector3(1.0330764266905630, 5.2545257423922198, -0.000)),
41 ts0,
"odom",
"other0"), 3);
44 tf::Vector3(1.5766646418987809, 5.1177550046707436, -0.000)),
45 ts1,
"odom",
"other1"), 3);
48 tf::Vector3(2.1029791754869160, 4.9249128183465967, -0.000)),
49 ts2,
"odom",
"other2"), 3);
60 EXPECT_NEAR(yaw, trueyaw1, epsilon);
68 EXPECT_NEAR(yaw, trueyaw2, epsilon);
76 EXPECT_NEAR(yaw, trueyaw2, epsilon);
83 int main(
int argc,
char **argv){
84 testing::InitGoogleTest(&argc, argv);
85 return RUN_ALL_TESTS();
The Quaternion implements quaternion to perform linear algebra rotations in combination with Matrix3x...
void interpolate(const TransformStorage &one, const TransformStorage &two, ros::Time time, TransformStorage &output)
A class to keep a sorted linked list in time This builds and maintains a list of timestamped data...
TEST(tf, SignFlipExtrapolate)
ROS_DEPRECATED void getEulerZYX(tfScalar &yaw, tfScalar &pitch, tfScalar &roll, unsigned int solution_number=1) const
Get the matrix represented as euler angles around ZYX.
int main(int argc, char **argv)