include
pinocchio
bindings
python
parsers
bindings/python/parsers/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
36
PINOCCHIO_PYWRAP_DLLAPI
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__
model.hpp
filename
filename
python
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::Model
ModelTpl< double > Model
Definition:
multibody/fwd.hpp:35
PINOCCHIO_PYWRAP_DLLAPI
#define PINOCCHIO_PYWRAP_DLLAPI
Definition:
bindings/python/parsers/python.hpp:19
pinocchio::ModelTpl
Definition:
multibody/fwd.hpp:23
pinocchio
Main pinocchio namespace.
Definition:
timings.cpp:28
pinocchio
Author(s):
autogenerated on Tue Feb 13 2024 03:43:59