SpheroRvrObserver and Threading

I’m trying to write a server in python on the Raspberry Pi that listens for connections on a port (e.g. 7130) and get commands from another computer on the network to drive the RVR. When I create my server, it starts up correctly. Then I add a “SpheroRvrObserver” and the program freezes. When I hit Ctrl-C, the system says it’s hung up on “threading.py” waiting on a “join”.

Does anyone have a clue on how to proceed? Should I spawn a thread to listen on my socket while a second thread observes the RVR? Should I be using asyncio?

All I do is create the SpheroRvrObserver object.

I’m really kind of stuck here; there’s no docs on this or anything.

Thanks for any help!

1 Like