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()
model.hpp
anymal-simulation.model
model
Definition: anymal-simulation.py:8
filename
filename
data.hpp
python.hpp
pinocchio::python::buildModel
PINOCCHIO_PYTHON_PARSER_DLLAPI Model buildModel(const std::string &filename, const std::string &var_name="model")
Load a model from a Python script.
Definition: src/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
PINOCCHIO_MODEL_DIR
#define PINOCCHIO_MODEL_DIR
Definition: build-reduced-model.cpp:11


pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:32