Ask Your Question

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

asked 2018-07-10 06:16:24 -0600

TejaswiniUL gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-07-10 06:39:17 -0600

pavel92 gravatar image

Take a look into rosbridge. It provides a JSON API to ROS functionality for non-ROS programs.

edit flag offensive delete link more


Sure, I will Check @pavel92

TejaswiniUL gravatar image TejaswiniUL  ( 2018-07-10 06:48:13 -0600 )edit

There is also a tutorial of how to set up a rosbridge websocket connection

pavel92 gravatar image pavel92  ( 2018-07-10 07:03:51 -0600 )edit

did you manage to set up the connection?

pavel92 gravatar image pavel92  ( 2018-07-13 02:38:03 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-07-10 06:16:24 -0600

Seen: 849 times

Last updated: Jul 10 '18