|
MIRA
|
Functions | |
| static int | getNumpyDtype (int cvDtype) |
| Return numerical numpy dtype identifier corresponding to a numerical dtype from OpenCV. More... | |
| static int | getCvDtype (int numpyDtype) |
| json::Value | to_json (boost::python::object o) |
| boost::python::object | from_json (const json::Value &j) |
| std::ostream & | operator<< (std::ostream &os, const PythonError &err) |
| PythonError | checkSyntax (const std::string &code) |
| check syntax of python string More... | |
| std::string | getLastExceptionString () |
| Extract the message from the last python exception. More... | |
| void | block_hashing (boost::python::object) |
| template<typename T > | |
| std::vector< T > | listToVector (const boost::python::object &l) |
| template<typename T > | |
| Channel< T > | subscribe (PyUnitWrapper &unit, const std::string &channelID) |
| Typed subscribe method every wrapped type must contain. More... | |
| template<typename T > | |
| Channel< T > | subscribeCb (PyUnitWrapper &unit, const std::string &channelID, boost::python::object callable) |
| Typed subscribe method every wrapped type must contain. More... | |
| template<typename T > | |
| Channel< T > | subscribeIntervalCb (PyUnitWrapper &unit, const std::string &channelID, boost::python::object callable, const Duration &storageDuration) |
| Typed subscribe method every wrapped type must contain. More... | |
| template<typename T > | |
| void | unsubscribe (PyUnitWrapper &unit, const std::string &channelID) |
| Typed unsubscribe method every wrapped type must contain. More... | |
| template<typename T > | |
| Channel< T > | publish (PyUnitWrapper &unit, const std::string &channelID) |
| Typed publish method every wrapped type must contain. More... | |
| template<typename T > | |
| boost::python::object | convertJSONtoObject (const json::Value &value) |
| Create an object instance from JSON data MIRA's JSON deserialization capabilities. More... | |
| template<typename T > | |
| json::Value | convertObjectToJSON (const T &obj) |
| Generate a JSON representation using MIRA's JSON serialization capabilities. More... | |
|
static |
Return numerical numpy dtype identifier corresponding to a numerical dtype from OpenCV.
| cvDtype | numerical representation of a dtype from OpenCV, e.g. CV_32F |
|
static |
| json::Value mira::python::to_json | ( | boost::python::object | o | ) |
| boost::python::object mira::python::from_json | ( | const json::Value & | j | ) |
| std::ostream& mira::python::operator<< | ( | std::ostream & | os, |
| const PythonError & | err | ||
| ) |
| PythonError mira::python::checkSyntax | ( | const std::string & | code | ) |
check syntax of python string
| std::string mira::python::getLastExceptionString | ( | ) |
Extract the message from the last python exception.
|
inline |
|
inline |
| Channel<T> mira::python::subscribe | ( | PyUnitWrapper & | unit, |
| const std::string & | channelID | ||
| ) |
Typed subscribe method every wrapped type must contain.
This is automatically appended to the definition of the wrapper when using the macro MIRA_PYCONNECTOR_TYPE_FOOTER. This method is called by the authority wrapper internally. Same as above without callable object.
| Channel<T> mira::python::subscribeCb | ( | PyUnitWrapper & | unit, |
| const std::string & | channelID, | ||
| boost::python::object | callable | ||
| ) |
Typed subscribe method every wrapped type must contain.
This is automatically appended to the definition of the wrapper when using the macro MIRA_PYCONNECTOR_TYPE_FOOTER. This method is called by the authority wrapper internally.
| Channel<T> mira::python::subscribeIntervalCb | ( | PyUnitWrapper & | unit, |
| const std::string & | channelID, | ||
| boost::python::object | callable, | ||
| const Duration & | storageDuration | ||
| ) |
Typed subscribe method every wrapped type must contain.
This is automatically appended to the definition of the wrapper when using the macro MIRA_PYCONNECTOR_TYPE_FOOTER. This method is called by the authority wrapper internally.
| void mira::python::unsubscribe | ( | PyUnitWrapper & | unit, |
| const std::string & | channelID | ||
| ) |
Typed unsubscribe method every wrapped type must contain.
This is automatically appended to the definition of the wrapper when using the macro MIRA_PYCONNECTOR_TYPE_FOOTER. This method is called by the authority wrapper internally. Same as above without callable object.
| Channel<T> mira::python::publish | ( | PyUnitWrapper & | unit, |
| const std::string & | channelID | ||
| ) |
Typed publish method every wrapped type must contain.
This is automatically appended to the definition of the wrapper when using the macro MIRA_PYCONNECTOR_TYPE_FOOTER. This method is called by the authority wrapper internally.
| boost::python::object mira::python::convertJSONtoObject | ( | const json::Value & | value | ) |
Create an object instance from JSON data MIRA's JSON deserialization capabilities.
| value | the JSON data |
| json::Value mira::python::convertObjectToJSON | ( | const T & | obj | ) |
Generate a JSON representation using MIRA's JSON serialization capabilities.
| obj | object to serialize |
1.8.14