bindings/python/parsers/mjcf/model.cpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2024 CNRS INRIA
3 //
4 
7 
8 #include <boost/python.hpp>
9 
10 namespace pinocchio
11 {
12  namespace python
13  {
14 
15  namespace bp = boost::python;
16 
17  Model buildModelFromMJCF(const std::string & filename)
18  {
19  Model model;
21  return model;
22  }
23 
24  Model buildModelFromMJCF(const std::string & filename, const JointModel & root_joint)
25  {
26  Model model;
28  return model;
29  }
30 
32  {
33  bp::def(
34  "buildModelFromMJCF",
35  static_cast<Model (*)(const std::string &)>(pinocchio::python::buildModelFromMJCF),
36  bp::args("mjcf_filename"),
37  "Parse the Mjcf file given in input and return a pinocchio Model");
38 
39  bp::def(
40  "buildModelFromMJCF",
41  static_cast<Model (*)(const std::string &, const JointModel &)>(
43  bp::args("mjcf_filename", "root_joint"),
44  "Parse the Mjcf file and return a pinocchio Model with the given root Joint.");
45  }
46  } // namespace python
47 } // namespace pinocchio
boost::python
mjcf.hpp
pinocchio::python::buildModelFromMJCF
Model buildModelFromMJCF(const std::string &filename)
Definition: bindings/python/parsers/mjcf/model.cpp:17
filename
filename
python
pinocchio::JointModelTpl< context::Scalar >
mjcf.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
pinocchio::python::exposeMJCFModel
void exposeMJCFModel()
Definition: bindings/python/parsers/mjcf/model.cpp:31
pinocchio::ModelTpl
Definition: context/generic.hpp:20
pinocchio::model
JointCollectionTpl & model
Definition: joint-configuration.hpp:1116
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Wed Jun 19 2024 02:41:15