37 #ifndef MOVEIT_PY_BINDINGS_TOOLS_PY_CONVERSIONS_ 38 #define MOVEIT_PY_BINDINGS_TOOLS_PY_CONVERSIONS_ 40 #include <boost/python.hpp> 41 #include <boost/python/stl_iterator.hpp> 48 namespace py_bindings_tools
53 boost::python::stl_input_iterator<T> begin(values), end;
62 boost::python::list l;
63 for (std::size_t i = 0; i < v.size(); ++i)
69 boost::python::dict
dictFromType(
const std::map<std::string, T>& v)
71 boost::python::dict
d;
72 for (
typename std::map<std::string, T>::const_iterator it = v.begin(); it != v.end(); ++it)
73 d[it->first] = it->second;
79 return typeFromList<double>(values);
84 return typeFromList<std::string>(values);
89 return listFromType<double>(v);
94 return listFromType<std::string>(v);