A basic multi-client TCP link for one server and multiple connections sharing one ROS2 publisher to send info.
Based from mirellameelo, designed to receive tcp logs from android devices conencted. I did not include here the app side since it is focused on the communication method via passing plain text over TCP.
Translation the TCP logic into Python with original guide from wittcode's blog (Sadly, domain seemed to be removed) but another reference is from Real Python.
- ROS2 (Humble Hawksbill)
- ANDROID STUDIO
- PYTHON 3
ROS 2 INSTALLATION ANDROID STUDIO EMULATOR
- Run on the ROS2 system: android_server.py
- Run your Android app. It needs to automatically search for the ROS2 server and attempt to establish connection with it.
- You can send any plain text message and the server will translate the message to the ROS2 system as a publisher.
- Send 'bye' to disconnect with the ROS2 server.