5 #include <boost/fusion/container/generation/make_list.hpp> 6 #include <pinocchio/multibody/model.hpp> 7 #include "pinocchio/multibody/data.hpp" 8 #include "pinocchio/parsers/sample-models.hpp" 9 #include <pinocchio/algorithm/crba.hpp> 10 #include <pinocchio/algorithm/aba.hpp> 11 #include <pinocchio/algorithm/check.hpp> 12 #include <pinocchio/algorithm/default-check.hpp> 17 #include <boost/test/unit_test.hpp> 18 #include <boost/utility/binary.hpp> 35 BOOST_CHECK(model.
check (CRBAChecker()));
36 BOOST_CHECK(model.
check (ABAChecker()));
38 BOOST_CHECK(model.
check(makeAlgoCheckerList(
Check1(),ParentChecker(),CRBAChecker()) ));
45 BOOST_FOREACH(
Inertia&
Y,model.inertias)
49 BOOST_CHECK(! model.
check (ABAChecker()));
53 BOOST_AUTO_TEST_SUITE_END ()
const Symmetric3 & inertia() const
bool check(const AlgorithmCheckerBase< D > &checker=AlgorithmCheckerBase< D >()) const
Check the validity of the attributes of Model with respect to the specification of some algorithms...
#define BOOST_TEST_MODULE
CRTP class describing the API of the checkers.
Main pinocchio namespace.
const Vector6 & data() const
BOOST_AUTO_TEST_CASE(test_check)
void humanoidRandom(ModelTpl< Scalar, Options, JointCollectionTpl > &model, bool usingFF=true)
Create a humanoid kinematic tree with 6-DOF limbs and random joint placements.
JointCollectionTpl & model
bool checkData(const ModelTpl< Scalar, Options, JointCollectionTpl > &model, const DataTpl< Scalar, Options, JointCollectionTpl > &data)
bool checkModel_impl(const Model &) const