LCM types in C++ and Python are implemented differently, and thus cannot simply be passed back and forth between the two languages.
The simplest method to communicate the structures is to expose the serialization of C++ Value<>
s to Python, so that Python can serialize and deserialize between C++ and Python types.
For more usages in Python, see the following in _lcm_extra.py
:
Namespaces | |
drake | |
drake::pydrake | |
For more high-level information, see the Python Bindings technical notes. | |
drake::pydrake::pysystems | |
drake::pydrake::pysystems::pylcm | |
Functions | |
void | BindCppSerializers () |