cmusatyalab / gabriel

Wearable cognitive assistance using cloudlets
Apache License 2.0
64 stars 41 forks source link

Add ZeroMQ Client #36

Closed teiszler closed 18 hours ago

teiszler commented 4 weeks ago

The Gabriel client currently uses WebSockets to communicate with the server. That means that currently we do not have support for attempting re-connection when disconnected temporarily. Switching to ZeroMQ allows us to attempt re-connection, and will also make it so that our entire stack uses ZeroMQ—ZeroMQ is currently used to communicate between the cognitive engines and the Gabriel server.

teiszler commented 3 weeks ago

@achanana @jaharkes I factored things out of ZeroMQServer and WebsocketsServer into a GabrielServer in 2c85a3d. It still needs to be tested however.

achanana commented 2 weeks ago

@teiszler @jaharkes I have tested the code with SteelEagle using a simulated drone and it seems to be working okay for both WebSockets and ZeroMQ. I will request @T0ny8576 to try running OpenRTiST using the new Gabriel code to ensure backwards compatibility.