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

How do I communicate between 2 robots ?

asked 2016-06-14 00:15:39 -0500

Pikachu gravatar image

updated 2016-06-14 03:57:13 -0500

As I am new to ROS, I don't know how to establish communication between 2 robots. I have launched 2 Husky robots in gazebo using namespace. The 2 robots must communicate with each other for data sharing, how do I do that? If data communication is not possible with Husky robots, then which robots should be used? My main aim is to implement Fog Computing algorithms here and check how the robots respond to it. Here I am simulating in Gazebo but if I have actual robots, then they must also communicate with each other. Through communication, I mean they can send their data to one another, process it and return back. I am using ROS-Indigo with Gazebo-2.2.2 on Ubuntu-14.04.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-06-14 02:04:33 -0500

In simulation this is fairly simple. Just use the (namespaced) topics and services of both robots. As a single ROS Master is used, there are no restrictions and each robot can "see" all data of all other robots. Now, with real robots (each having their own ROS Master), things are a bit more complicated and no real standard solution exists.

It would perhaps help if you edit your question with some details on what you want to do.

edit flag offensive delete link more

Question Tools



Asked: 2016-06-14 00:15:39 -0500

Seen: 876 times

Last updated: Jun 14 '16