python_parser.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016-2020 CNRS INRIA
3 //
4 
5 #include <iostream>
6 
10 
11 #include <boost/test/unit_test.hpp>
12 
13 BOOST_AUTO_TEST_SUITE(BOOST_TEST_MODULE)
14 
16 {
17  std::string filename = PINOCCHIO_MODEL_DIR + std::string("/simple_model.py");
18 
19 #ifndef NDEBUG
20  std::cout << "Parse filename \"" << filename << "\"" << std::endl;
21 #endif
23 #ifndef NDEBUG
24  std::cout << "This model has \"" << model.nq << "\" DoF" << std::endl;
25 #endif
26 
27  BOOST_CHECK(model.nq == 9);
28  BOOST_CHECK(model.nv == 8);
29 }
30 
31 BOOST_AUTO_TEST_SUITE_END()
python.hpp
model.hpp
anymal-simulation.model
model
Definition: anymal-simulation.py:12
filename
filename
data.hpp
pinocchio::python::buildModel
Model buildModel(const std::string &filename, const std::string &model_name)
Load a model from a Python script.
Definition: bindings/python/parsers/python/model.cpp:23
buildModel
Definition: joint-motion-subspace.cpp:101
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(buildModel)
Definition: python_parser.cpp:15
pinocchio::ModelTpl
Definition: context/generic.hpp:20
BOOST_CHECK
#define BOOST_CHECK(check)
Definition: overview-urdf.cpp:34
PINOCCHIO_MODEL_DIR
#define PINOCCHIO_MODEL_DIR
Definition: build-reduced-model.cpp:11


pinocchio
Author(s):
autogenerated on Sat Jun 22 2024 02:41:49