Talker/Listener node through python socket

asked 2021-02-02 11:42:20 -0500

Gustavo Lima gravatar image

Hi everyone.

I'm using ROS on a Docker container, and my goal now is to create a simple talker/listener node, where the message comes from another container (via python socket), the talker receives this message and passes it to the listener. My current code is almost doing it right, except the fact that only works with the first message, all the other messages coming from the socket do not chance the message that the talker is sending to the listener, and also the message received from the listener (of course, because the talker is sending aways the same message).

Talker code:

Listener code:

If necessary, python code that sends the original message:

Any ideas of what i'm doing wrong? Thanks

edit retag flag offensive close merge delete