python.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016-2020 CNRS INRIA
3 //
4 
5 #ifndef __pinocchio_python_parser_python_hpp__
6 #define __pinocchio_python_parser_python_hpp__
7 
8 #include "pinocchio/multibody/model.hpp"
9 
10 #include <boost/python.hpp>
11 
12 #if defined _WIN32
13 # ifdef pinocchio_pywrap_EXPORTS
14 # define PINOCCHIO_PYWRAP_DLLAPI __declspec(dllexport)
15 # else
16 # define PINOCCHIO_PYWRAP_DLLAPI __declspec(dllimport)
17 # endif // pinocchio_pywrap_EXPORTS
18 #else
19 # define PINOCCHIO_PYWRAP_DLLAPI
20 #endif // _WIN32
21 
22 namespace pinocchio
23 {
24  namespace python
25  {
35  // TODO: look inside the context of Python and find an occurence of object Model
37  Model buildModel(const std::string & filename,
38  const std::string & var_name = "model");
39 
43  PINOCCHIO_DEPRECATED
44  Model buildModel(const std::string & filename,
45  const std::string & var_name,
46  const bool /*verbose*/)
47  {
48  return buildModel(filename,var_name);
49  }
50 
51  } // namespace python
52 
53 } // namespace pinocchio
54 
55 #endif // ifndef __pinocchio_python_parser_python_hpp__
ModelTpl< double > Model
Model buildModel(const std::string &filename, const std::string &model_name)
Load a model from a Python script.
Main pinocchio namespace.
Definition: timings.cpp:30
#define PINOCCHIO_PYWRAP_DLLAPI
Definition: python.hpp:19


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:04