7 #include "pinocchio/multibody/model.hpp" 8 #include "pinocchio/multibody/data.hpp" 9 #include "pinocchio/parsers/python.hpp" 11 #include <boost/test/unit_test.hpp> 13 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
20 std::cout <<
"Parse filename \"" << filename <<
"\"" << std::endl;
24 std::cout <<
"This model has \"" << model.
nq <<
"\" DoF" << std::endl;
27 BOOST_CHECK(model.
nq==9);
28 BOOST_CHECK(model.
nv==8);
31 BOOST_AUTO_TEST_SUITE_END()
#define PINOCCHIO_MODEL_DIR
BOOST_AUTO_TEST_CASE(buildModel)
Model buildModel(const std::string &filename, const std::string &model_name)
Load a model from a Python script.
int nv
Dimension of the velocity vector space.
int nq
Dimension of the configuration vector representation.