Handling python callback functions

46 views
Skip to first unread message

Christoph Antes

unread,
Nov 21, 2020, 8:39:13 AM11/21/20
to Jep Project
Hello,

I have a question about JEP in the context of Python callback functions:
Is it possible to send an object from a Python callback function directly back to Java as a PyObject? Or do I have to write some kind of wrapper class in Python to access the data of the callback function using another method? What would be the best practice to solve this problem using JEP?

This is the "listen" method of the object "carla.sensor". 

I call the "listen" method from Java as PyCallable, which in turn calls another Python method if a sensor event is present. Now I would like to send the data of this callback function back to Java. Is this somehow possible?

Best regards
Chris
Reply all
Reply to author
Forward
0 new messages