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

How to prefix remote topics in a multimaster setup with rocon?

asked 2017-01-27 09:24:24 -0500

anonymous user

Anonymous

Hi, I am experimenting with a multimaster setup. A central server S and two robots A and B. Currently I am using rocon. When I flip a connection from A to S eg. /talker this will appear on S as /talker. Is there a way I missed to prefix this topic on S with /A resulting in /A/talker. This would allow to flip the same topic from B as well as this would result in /B/talker without prefixing all topics on B itself. In the best case this could be behavior would be configurable at the gateway. The gateway has the knowledge where the request comes from and could prefix incoming requests without having the source knowing about the prefix. Have a nice weekend. Hannes

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-01-27 10:05:27 -0500

joq gravatar image

The usual method is to run each robot in its own namespace.

See: http://nootrix.com/software/ros-names...

edit flag offensive delete link more

Comments

Thanks for pointing to this link

anonymous userAnonymous ( 2017-02-01 05:09:07 -0500 )edit

The answer is correct: namespacing each system is almost always a good idea, and I'd prefer to see the ROS tutorials using namespacing throughout.

master_sync.py in dpirozzo's Bitbucket multimaster is easily changed to advertise topics with prefixes. Uses foreign_relay and the ROS Master API.

Will Chamberlain gravatar image Will Chamberlain  ( 2018-01-04 15:26:07 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2017-01-27 09:24:24 -0500

Seen: 360 times

Last updated: Jan 27 '17