Drake
Drake C++ Documentation
call_python.h File Reference

Detailed Description

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.

#include <string>
#include "drake/common/eigen_types.h"
#include "drake/lcmt_call_python.hpp"
Include dependency graph for call_python.h:

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...