convert-dg-to-py.hh 685 Bytes
Newer Older
1
2
3
4
5
6
7
8
// Copyright 2010, Florent Lamiraux, Thomas Moulard, LAAS-CNRS.

#include <Python.h>
#include <dynamic-graph/linear-algebra.h>
#include <dynamic-graph/value.h>
#include <dynamic-graph/python/exception-python.hh>

namespace dynamicgraph {
Guilhem Saurel's avatar
format    
Guilhem Saurel committed
9
10
namespace python {
namespace convert {
11

Guilhem Saurel's avatar
format    
Guilhem Saurel committed
12
13
14
15
16
command::Value pythonToValue(PyObject* pyObject, const command::Value::Type& valueType);
PyObject* vectorToPython(const Vector& vector);
PyObject* matrixToPython(const ::dynamicgraph::Matrix& matrix);
PyObject* matrix4dToPython(const Eigen::Matrix4d& matrix);
PyObject* valueToPython(const ::dynamicgraph::command::Value& value);
17

Guilhem Saurel's avatar
format    
Guilhem Saurel committed
18
19
20
}  // namespace convert
}  // namespace python
}  // namespace dynamicgraph