Is there a rosnetwork? Or similar?
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
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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
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.
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?
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.)
Asked: 2012-04-23 05:19:43 -0500
Seen: 329 times
Last updated: Apr 23 '12
How to include a .launch file on a remote machine from a .launch file?
Do unsubscribed topics cause network traffic?
Message doesn't leave scope of node, if beeing sent in constructor
Echo topic from a docker container from another machine in the same network
roslaunch Unable to contact my own server
My virtual machine can't ping itself
Internal communication fails if network is gone ROS2
A node failed to receive topic message from a remote computer node.