Tools for creating python bindings for MoveIt. More...
Classes | |
class | ByteString |
C++ Wrapper class for Python 3 Bytes Object. More... | |
class | GILReleaser |
RAII Helper to release the Global Interpreter Lock (GIL) More... | |
class | ROScppInitializer |
The constructor of this class ensures that ros::init() has been called. Thread safety and multiple initialization is properly handled. When the process terminates, ros::shotdown() is also called, if needed. More... | |
Functions | |
template<typename T > | |
void | deserializeMsg (const ByteString &data, T &msg) |
Convert a Python Bytestring to a ROS message. More... | |
template<typename T > | |
boost::python::dict | dictFromType (const std::map< std::string, T > &v) |
std::vector< double > | doubleFromList (const boost::python::object &values) |
boost::python::list | listFromDouble (const std::vector< double > &v) |
boost::python::list | listFromString (const std::vector< std::string > &v) |
template<typename T > | |
boost::python::list | listFromType (const std::vector< T > &v) |
void | roscpp_init () |
Initialize ROScpp with default command line args. More... | |
void | roscpp_init (boost::python::list &argv) |
Initialize ROScpp with specified command line args. More... | |
void | roscpp_init (const std::string &node_name, boost::python::list &argv) |
Initialize ROScpp with specified command line args. More... | |
void | roscpp_set_arguments (const std::string &node_name, boost::python::list &argv) |
This function can be used to specify the ROS command line arguments for the internal ROScpp instance; Usually this function would also be exposed in the py module that uses ROScppInitializer. More... | |
void | roscpp_shutdown () |
template<typename T > | |
ByteString | serializeMsg (const T &msg) |
Convert a ROS message to a Python Bytestring. More... | |
std::vector< std::string > | stringFromList (const boost::python::object &values) |
template<typename T > | |
std::vector< T > | typeFromList (const boost::python::object &values) |
Tools for creating python bindings for MoveIt.
void moveit::py_bindings_tools::deserializeMsg | ( | const ByteString & | data, |
T & | msg | ||
) |
Convert a Python Bytestring to a ROS message.
Definition at line 174 of file serialize_msg.h.
boost::python::dict moveit::py_bindings_tools::dictFromType | ( | const std::map< std::string, T > & | v | ) |
Definition at line 132 of file py_conversions.h.
std::vector<double> moveit::py_bindings_tools::doubleFromList | ( | const boost::python::object & | values | ) |
Definition at line 140 of file py_conversions.h.
boost::python::list moveit::py_bindings_tools::listFromDouble | ( | const std::vector< double > & | v | ) |
Definition at line 150 of file py_conversions.h.
boost::python::list moveit::py_bindings_tools::listFromString | ( | const std::vector< std::string > & | v | ) |
Definition at line 155 of file py_conversions.h.
boost::python::list moveit::py_bindings_tools::listFromType | ( | const std::vector< T > & | v | ) |
Definition at line 123 of file py_conversions.h.
void moveit::py_bindings_tools::roscpp_init | ( | ) |
Initialize ROScpp with default command line args.
Definition at line 122 of file roscpp_initializer.cpp.
void moveit::py_bindings_tools::roscpp_init | ( | boost::python::list & | argv | ) |
Initialize ROScpp with specified command line args.
Definition at line 133 of file roscpp_initializer.cpp.
void moveit::py_bindings_tools::roscpp_init | ( | const std::string & | node_name, |
boost::python::list & | argv | ||
) |
Initialize ROScpp with specified command line args.
Definition at line 127 of file roscpp_initializer.cpp.
void moveit::py_bindings_tools::roscpp_set_arguments | ( | const std::string & | node_name, |
boost::python::list & | argv | ||
) |
This function can be used to specify the ROS command line arguments for the internal ROScpp instance; Usually this function would also be exposed in the py module that uses ROScppInitializer.
Definition at line 55 of file roscpp_initializer.cpp.
void moveit::py_bindings_tools::roscpp_shutdown | ( | ) |
Definition at line 139 of file roscpp_initializer.cpp.
ByteString moveit::py_bindings_tools::serializeMsg | ( | const T & | msg | ) |
Convert a ROS message to a Python Bytestring.
Definition at line 167 of file serialize_msg.h.
std::vector<std::string> moveit::py_bindings_tools::stringFromList | ( | const boost::python::object & | values | ) |
Definition at line 145 of file py_conversions.h.
std::vector<T> moveit::py_bindings_tools::typeFromList | ( | const boost::python::object & | values | ) |
Definition at line 114 of file py_conversions.h.