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 | Q&A answers.ros.org |
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 -0500
Seen: 314 times
Last updated: Apr 23 '12
How to specify the network interface ros2 uses for communication?
ROS networking unable to see mesages published by slave computer [closed]
Network connection stopping ros subscription
How to monitor a ROS robot on another PC in UDP
ROS internals - topics storage and network comms?
How to Monitor the data transfer
ros2 topic echo joy works inconsistently across two machines
Unable to enable baxter while roscore service works
Ros node not subscribing to other computer
ROS2 Foxy: Nodes can't find each other if a new device is added to network after starting node