Drake
PythonApi< Derived > Class Template Reference

#include <drake/common/proto/call_python.h>

Public Member Functions

template<typename... Types>
PythonRemoteVariable operator() (Types... args) const
 Calls object with given arguments, returning the remote result. More...
 
PythonAttrAccessor attr (const std::string &name) const
 Accesses an attribute. More...
 
template<typename Type >
PythonItemAccessor operator[] (Type key) const
 Accesses an item. More...
 
template<typename... Types>
PythonItemAccessor slice (Types... args) const
 Accesses a NumPy-friendly slice. More...
 

Member Function Documentation

◆ attr()

PythonAttrAccessor attr ( const std::string &  name) const

Accesses an attribute.

◆ operator()()

PythonRemoteVariable operator() ( Types...  args) const

Calls object with given arguments, returning the remote result.

◆ operator[]()

PythonItemAccessor operator[] ( Type  key) const

Accesses an item.

◆ slice()

PythonItemAccessor slice ( Types...  args) const

Accesses a NumPy-friendly slice.


The documentation for this class was generated from the following file: