5 #include <pinocchio/math/matrix.hpp> 7 #include <boost/variant.hpp> 9 #include <boost/test/unit_test.hpp> 10 #include <boost/utility/binary.hpp> 12 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
19 typedef Eigen::Matrix<double,Eigen::Dynamic,1> Vector;
21 const int max_size = 1000;
23 const int max_test = 1e6;
25 const int max_test = 1e2;
27 for(
int i = 0;
i < max_test; ++
i)
29 const Eigen::DenseIndex
size =
rand() % max_size + 1;
31 vec = Vector::Random(size) + Vector::Constant(size,2.);
42 BOOST_AUTO_TEST_SUITE_END()
std::size_t size(custom_string const &s)
BOOST_AUTO_TEST_CASE(test_isNormalized)
bool isNormalized(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const Eigen::MatrixBase< ConfigVectorType > &q, const Scalar &prec=Eigen::NumTraits< Scalar >::dummy_precision())
Check whether a configuration vector is normalized within the given precision provided by prec...
Main pinocchio namespace.