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> 26 BOOST_AUTO_TEST_SUITE ( BOOST_TEST_MODULE )
35 BOOST_CHECK(model.
check (CRBAChecker()));
36 BOOST_CHECK(! model.
check (ABAChecker()));
37 BOOST_FOREACH(
Inertia& Y,model.inertias)
39 BOOST_CHECK(model.
check (ABAChecker()));
41 BOOST_CHECK(model.
check(makeAlgoCheckerList(
Check1(),ParentChecker(),CRBAChecker()) ));
50 BOOST_AUTO_TEST_SUITE_END ()
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...
const Symmetric3 & inertia() const
CRTP class describing the API of the checkers.
const Vector6 & data() const
Main pinocchio namespace.
BOOST_AUTO_TEST_CASE(test_check)
bool checkModel_impl(const Model &) const
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)