Communication between ROS (Linux) and non-ROS (Windows) computers

Viewed 2491

I have a ROS computer operating under Linux using Python, I am trying to send data to it from a Windows computer also using Python. I have successfully been able to transfer data from Windows to Linux using TCP sockets, but as soon as I implement the script into a ROS script, the ROS script crashes upon trying to receive data from the socket, specifically at socketName.recvfrom(bufferSize).

Researching online, I found that this is expected behaviour. ROS uses TCP to communicate and purposely makes it difficult to implement a separate socket for this (if I have understood it correctly).

Is there a way around this? What is the most effective way to implement a ROS script that reads data from a non-ROS computer?

1 Answers
Related