18 #include <dynamic-graph/entity.h> 19 #include <dynamic-graph/factory.h> 27 #define BOOST_TEST_MODULE test - filter - differentiator 29 #include <boost/test/output_test_stream.hpp> 30 #include <boost/test/unit_test.hpp> 32 using boost::test_tools::output_test_stream;
37 double timestep = 0.001, beta = 0.01;
38 aFilter->
init(timestep);
47 aFilter->m_accelerometerSIN = acc;
51 aFilter->m_gyroscopeSIN = angvel;
52 aFilter->m_imu_quatSOUT.recompute(0);
53 output_test_stream output;
55 aFilter->m_imu_quatSOUT.get(output);
56 aFilter->m_imu_quatSOUT.get(anoss);
57 std::cout <<
"anoss:" << anoss << std::endl;
59 output.is_equal(
"82.5614\n"
void set_beta(const double &beta)
void init(const double &dt)
BOOST_AUTO_TEST_CASE(test_filter_differentiator)