Ask Your Question
1

Hi, I'm working on a multi-robot project. Robots need to talk to each other directly.

asked 2014-07-27 12:46:40 -0600

Armin gravatar image

updated 2014-07-27 16:28:06 -0600

Hi, I'm working on a multi-robot project, which robots need to talk to each other directly. Assume that robot1 wants to talk to robot3, so robot1 publishes its desire to talk. One way to solve is that robot3 subscribes to every other robots to find out which one to talk. This approach have several disadvantages like latency and confliction. I wanted to know if there is any way to solve this problem with direct connection between robots in ROS?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-07-27 20:53:38 -0600

Mehdi. gravatar image

updated 2014-07-28 01:20:17 -0600

I could imagine using services, Whenever a robot 1 wants to talk to robot 3, it calls the service of robot 3 to engage a conversation. No need for subscriptions here, every robot just need to know the name of the services for each other robot. And only then when the conversation is engaged, both robots can subscribe to each other. When the conversation ends, the subscriptions should be canceled.

edit flag offensive delete link more

Comments

Thanks that was really helpful.

Armin gravatar imageArmin ( 2014-07-28 17:13:29 -0600 )edit

I want to run these services on each robot but I can only init_node once in each rospy. What would you suggest? Thanks for your help

Armin gravatar imageArmin ( 2014-08-02 19:49:12 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-07-27 12:42:49 -0600

Seen: 111 times

Last updated: Jul 28 '14