1 #ifndef DYNAMIC_GRAPH_PY 2 #define DYNAMIC_GRAPH_PY 8 #include <boost/python.hpp> 9 #include <boost/python/stl_iterator.hpp> 20 template <
typename Iterator>
21 inline bp::list
to_py_list(Iterator begin, Iterator end) {
22 typedef typename Iterator::value_type T;
24 std::for_each(begin, end, [&](
const T&
t) { lst.append(t); });
28 template <
typename Iterator>
35 return std::vector<T>(bp::stl_input_iterator<T>(iterable),
36 bp::stl_input_iterator<T>());
42 namespace signalBase {
53 bp::object
executeCmd(bp::tuple args, bp::dict);
Eigen::Matrix< CustomType< Scalar >, Eigen::Dynamic, Eigen::Dynamic > create(int rows, int cols)
void addSignals(boost::python::object obj)
void closeLoggerFileOutputStream()
void addLoggerFileOutputStream(const char *filename)
bp::list to_py_list(Iterator begin, Iterator end)
void addLoggerCoutOutputStream()
MapOfEntities * getEntityMap()
void realTimeLoggerDestroy()
bp::object executeCmd(bp::tuple args, bp::dict)
void realTimeLoggerInstance()
bp::tuple to_py_tuple(Iterator begin, Iterator end)
bp::tuple getEntityClassList()
Get name of entity.
std::vector< T > to_std_vector(const bp::object &iterable)
void writeGraph(const char *filename)
bp::list getEntityList()
Get list of entities.
void realTimeLoggerSpinOnce()
SignalBase< int > * createSignalWrapper(const char *name, const char *type, bp::object object)
Create an instance of SignalWrapper.
void addCommands(boost::python::object obj)