Talker/Listener node through python socket
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: https://pastebin.com/2YKFhdFp
Listener code: https://pastebin.com/4Xc0c5Yi
If necessary, python code that sends the original message: https://pastebin.com/ZjNTBcRa
Any ideas of what i'm doing wrong? Thanks
Asked by Gustavo Lima on 2021-02-02 12:42:20 UTC
Comments