ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Are there Windows Compatible ROS nodes?

asked 2016-07-25 18:24:51 -0500

doullylogo gravatar image

I am trying to write a program in Windows that is able to send packets to a ROS node. It does not necessarily have to be a Windows node, just a program that runs on a Windows machine and can send ROS (linux) -compatible packets for another computer running Linux to handle/receive those packets via a ROS node.

Does roscore (the 'Master' node) influence this in any way?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-07-25 19:27:38 -0500

ahendrix gravatar image

Publishing and subscribing to ROS topics is not just a matter of sending properly-formatted packets. Your program also needs to communicate with the ROS master to advertise its topic, and it needs to negotiate the topic setup when other ROS nodes want to subscribe to that topic. The technical overview goes through the details of topic setup if you're interested.

Instead of running a full publisher on your windows machine, you can run a ROS node which bridges a simpler transport mechanism into ROS.

Two of the more popular approaches for this are:

  • Encode your messages as JSON and communicate over a websocket to rosbridge. (easy)
  • Use rosserial_windows to tunnel messages over TCP to the rosserial_server. (better performance)
edit flag offensive delete link more

Comments

Hi I have been trying to do this Using JSON over rosbridge, But haven't been able to figure it out. I tried to just create a Python script on Windows and connect to the port that rosbridge is running on and listen for JSON queries. And it just didn't work. Is this the right approach or not?

sdcguy gravatar image sdcguy  ( 2018-02-28 20:18:07 -0500 )edit

This question has already been answered. If you're having a specific problem, please ask a new question and include a description of your network, your code, a description of what you expect it to do and a description of what it actually does.

ahendrix gravatar image ahendrix  ( 2018-02-28 23:38:10 -0500 )edit
2

answered 2018-03-23 03:41:46 -0500

Wei Lin gravatar image

Hi,

I use two Windows Home edition computers to run ROS nodes, which chat with each other.

Neither Docker or VM is needed.

ROS node on Windows

edit flag offensive delete link more

Comments

1

+1 for this, as it's really nice, but it would be good to mention that your work makes parts of rospy work on Windows, not "the whole of ROS" (as much as that is a thing).

gvdhoorn gravatar image gvdhoorn  ( 2018-03-23 03:02:53 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2016-07-25 18:24:51 -0500

Seen: 2,427 times

Last updated: Mar 23 '18