Closed nnn112358 closed 4 years ago
From the source code, you have to specify one more argument to the command line on the rosserial_python
side:
For the ESP side, you have to call the setConnection
method with two arguments to specify the port before the initNode
method, like in the example:
Does assigning different ports to different Arduinos, allow you to have multiple connections?
Yes, it should works. Be aware of conflicts on topics names.
I tried wifi communication between one Ubuntu(16.04) and multiple arduino(ESP32) by using ROS. Executed with the following command
Ubuntu
arduino(ESP32)
As I confirmed, rosserial_python seems to be doing one-on-one communication between Ubuntu and arduino(ESP32).
I want to launch more than one rosserial_python, but I do not know how to specify a specific TCP port.
Please give me some information if you have been challenged elsewhere.