ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to achieve duplex communication? (listen/talk simultaneously)

asked 2013-07-27 11:57:34 -0600

Bholms gravatar image

updated 2013-11-18 19:07:11 -0600

tfoote gravatar image

For example, if I want my machine1 to send its updated status to machine2, and I also want my machine2 to also do the thing in the reverse direction. How should I do that?

constraint: - Both machines are executing some missions (e.g. path following), so it is not a duplex messaging project.

Please show me a little more detail on whatever package/method you recommend because I am a beginner on ROS (I have read almost all ROS beginner's tutorials), and my deadline is approaching.

Truly thankful.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-07-28 21:23:55 -0600

Victor Lopez gravatar image

If you have a reliable connection you could set the ros master on one of the machines, and then have a topic published by each machine that contain whatever data you want to send.

Each machine publishes it's own topic and subscribes to the other machine's topic.

Overview for python:

Overview for c++:

You can find many examples in the tutorial section.

edit flag offensive delete link more

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


Asked: 2013-07-27 11:57:34 -0600

Seen: 239 times

Last updated: Jul 28 '13