30 #include <gtest/gtest.h> 34 TEST(ImuMeasurementModelGravity, measure)
40 EXPECT_NEAR(measurement.
measure(s1), 0.2678633, 1.0e-6);
45 EXPECT_NEAR(measurement.
measure(s2), 0.0604828, 1.0e-6);
48 int main(
int argc,
char** argv)
50 testing::InitGoogleTest(&argc, argv);
52 return RUN_ALL_TESTS();
TEST(ImuMeasurementModelGravity, measure)
void setAccMeasure(const Vec3 &acc_measure) final
int main(int argc, char **argv)
float measure(const State6DOF &s) const final