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
,
const
std::string & var_name =
"model"
);
38
39
}
// namespace python
40
41
}
// namespace pinocchio
42
43
#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_PYWRAP_DLLAPI
#define PINOCCHIO_PYWRAP_DLLAPI
Definition:
bindings/python/parsers/python.hpp:19
pinocchio::Model
ModelTpl< context::Scalar, context::Options > Model
Definition:
multibody/fwd.hpp:33
pinocchio
Main pinocchio namespace.
Definition:
timings.cpp:27
pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:48