Utilities for calling Python from C++ over an RPC.
For command-line examples, see the documentation in call_python_client.py. For C++ examples, see call_python_test.cc.
Namespaces | |
| drake | |
| drake::common | |
Functions | |
| void | CallPythonInit (const std::string &filename) |
Initializes CallPython for a given file. More... | |
| template<typename... Types> | |
| PythonRemoteVariable | CallPython (const std::string &function_name, Types... args) |
| Calls a Python client with a given function and arguments, returning a handle to the result. More... | |
| template<typename... Types> | |
| PythonRemoteVariable | ToPythonTuple (Types... args) |
| Creates a tuple in Python. More... | |
| template<typename... Types> | |
| PythonRemoteVariable | ToPythonKwargs (Types... args) |
| Creates a keyword-argument list to be unpacked. More... | |