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
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.)
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2012-04-23 05:19:43 -0600
Seen: 243 times
Last updated: Apr 23 '12
Network unstable between Turtlebot and workstation
how can I create connections among three linux-based machines?
Network issue: messages not received from rqt
Blocked Multicast IPs - TurtleBot3 and Remote PC
ROS Network Setup: Cannot view (rviz or echo) topics published from machine on different subnet
Is there a ROS package to send array over a tcp socket to non-ROS device?
Is there a way to determine IP address of publisher for each message