sot-torque-control
1.6.5
Collection of dynamic-graph entities aimed at implementing torque control on different robots.
python-module-py.cc
Go to the documentation of this file.
1
// Copyright (C) 2008-2014 LAAS-CNRS, JRL AIST-CNRS.
2
//
3
// This file is part of jrl-cmakemodules.
4
// jrl-mathtools is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU Lesser General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// jrl-mathtools is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
// GNU Lesser General Public License for more details.
13
// You should have received a copy of the GNU Lesser General Public License
14
// along with jrl-mathtools. If not, see <http://www.gnu.org/licenses/>.
15
16
#include "dynamic-graph/python/module.hh"
17
18
#include "
/root/robotpkg/wip/py-sot-torque-control/work/sot-torque-control-1.6.5/src/device-torque-ctrl-python.hh
"
19
20
struct
register_entity
21
{
22
template
<
typename
T>
inline
void
operator()
(boost::type<T>)
const
23
{
24
dynamicgraph::python::exposeEntity<T>();
25
}
26
};
27
28
BOOST_PYTHON_MODULE
(wrap)
29
{
30
bp::import(
"dynamic_graph"
);
31
boost::mpl::for_each<entities_t, boost::type<boost::mpl::_> >(
register_entity
());
32
}
BOOST_PYTHON_MODULE
BOOST_PYTHON_MODULE(wrap)
Definition:
python-module-py.cc:28
register_entity
Definition:
python-module-py.cc:20
device-torque-ctrl-python.hh
register_entity::operator()
void operator()(boost::type< T >) const
Definition:
python-module-py.cc:22
src
dynamic_graph
sot
torque_control
device_torque_ctrl
python-module-py.cc
Generated by
1.8.17