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

Is there a rosnetwork? Or similar?

asked 2012-04-23 05:19:43 -0600

MarkyMark2012 gravatar image

What do I use to connect to a network socket in ROS, from which to get my robots data and then build publishers off?

Thanks

Mark

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2012-04-23 09:06:57 -0600

Lorenz gravatar image

Ros already provides a network transparent communication protocol based on sockets. Normally, you write nodes that directly communicate with the Robot's hardware and publish the data directly via topics.

If your robot data is provided on a socket, I suggest to create a ROS node that uses whatever you are used to, e.g. libc's socket functions, to communicate with your robot. Your ros node then needs to decode the data from the socket, put it into a ros message and publish it. I don't know about any generic way for implementing such a bridge since it is highly specific for your socket based protocol and the ros messages to be published.

edit flag offensive delete link more

Comments

Correct me if I'm wrong, but ROS uses TCP underneath right? In that case, wouldn't there be a chance of a port clash?

Samuel Anudeep gravatar image Samuel Anudeep  ( 2013-10-30 20:32:21 -0600 )edit
0

answered 2012-04-23 11:09:21 -0600

MarkyMark2012 gravatar image

Lorenz - many thanks for that. Just what I was asking - couldn't tell from the tut's if there was something I was missing or for this piece it was a roll my own with in a publishing node.

Mark

(For some reason I couldn't comment on your answer - apologies for using answer.)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-04-23 05:19:43 -0600

Seen: 358 times

Last updated: Apr 23 '12