Skip to content

Gashomon/Multi-TCP-ROS2-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

MULTI CLIENT ROS2 to Anroid TCP Communication via Python

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.

DEPENDENCIES

  • ROS2 (Humble Hawksbill)
  • ANDROID STUDIO
  • PYTHON 3

INSTALLATION

ROS 2 INSTALLATION ANDROID STUDIO EMULATOR

HOW TO RUN

  1. Run on the ROS2 system: android_server.py
  2. Run your Android app. It needs to automatically search for the ROS2 server and attempt to establish connection with it.
  3. You can send any plain text message and the server will translate the message to the ROS2 system as a publisher.
  4. Send 'bye' to disconnect with the ROS2 server.

About

Multi-TCP Communication for android applications and ros2

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages