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

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

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

Bholms gravatar image

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

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
1

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

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:

http://www.ros.org/wiki/rospy/Overview/Publishers%20and%20Subscribers

Overview for c++:

http://www.ros.org/wiki/roscpp/Overview/Publishers%20and%20Subscribers

You can find many examples in the tutorial section.

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 275 times

Last updated: Jul 28 '13