33 #include <gtest/gtest.h> 37 TEST(State6DOF, Constructors)
65 ASSERT_EQ(a[0], 1.0
f);
66 ASSERT_EQ(a[1], 2.0
f);
67 ASSERT_EQ(a[2], 3.0
f);
68 ASSERT_EQ(a[3], 0.001
f);
69 ASSERT_EQ(a[4], 0.002
f);
70 ASSERT_EQ(a[5], 0.003
f);
71 ASSERT_EQ(a[6], 0.99
f);
72 ASSERT_EQ(a[7], 0.0
f);
73 ASSERT_EQ(a[8], 0.0
f);
74 ASSERT_EQ(a[9], 0.0
f);
75 ASSERT_EQ(a[10], 0.0
f);
76 ASSERT_EQ(a[11], 0.0
f);
77 ASSERT_EQ(a[12], 0.0
f);
80 for (
size_t i = 0; i < b.
size(); ++i)
82 for (
size_t i = 0; i < b.
size(); ++i)
83 ASSERT_FLOAT_EQ(b[i], 0.1 * (i + 1));
86 for (
size_t i = 0; i < b.
size(); ++i)
87 ASSERT_FLOAT_EQ(c[i], 0.1 * (i + 1));
103 ASSERT_FLOAT_EQ(sum.
rot_.
x_, sum_rot.
x_);
104 ASSERT_FLOAT_EQ(sum.
rot_.
y_, sum_rot.
y_);
105 ASSERT_FLOAT_EQ(sum.
rot_.
z_, sum_rot.
z_);
106 ASSERT_FLOAT_EQ(sum.
rot_.
w_, sum_rot.
w_);
108 ASSERT_FLOAT_EQ(sub.
rot_.
x_, sub_rot.
x_);
109 ASSERT_FLOAT_EQ(sub.
rot_.
y_, sub_rot.
y_);
110 ASSERT_FLOAT_EQ(sub.
rot_.
z_, sub_rot.
z_);
111 ASSERT_FLOAT_EQ(sub.
rot_.
w_, sub_rot.
w_);
114 int main(
int argc,
char** argv)
116 testing::InitGoogleTest(&argc, argv);
118 return RUN_ALL_TESTS();
mcl_3dl::Vec3 odom_err_integ_ang_
mcl_3dl::Vec3 odom_err_integ_lin_
size_t size() const override
TEST(State6DOF, Constructors)
int main(int argc, char **argv)