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

Remapping all topics of a machine to a namespace

asked 2016-05-31 08:59:17 -0500

martin1412 gravatar image

Hi guys,

I have to machines, one of them configured as the ROS_MASTER. Both of them are essentially running the same code, but I want both machines to publish messages to different topics, hence I thougt it would be good to put one of the machines into a different namespace.

I did that via export ROS_NAMESPACE=xyz

The code base is quite large, and sadly a lot of people used only global topic names during development, which causes ros to NOT prefix those topics ( /topic1 stays /topic1 while topic2 becomes /xyz/topic2).

Is there any other way (for example with the help of remapping) that would allow me to put all of the topics published by a single physical machine to a different namespace?

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-06-29 09:57:09 -0500

vschmidt gravatar image

I don't know the answer, but you might be interested to know, essentially this feature was requested some time ago (to great acclaim). See HERE. I can't tell that it has been implemented.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-05-31 08:59:17 -0500

Seen: 964 times

Last updated: Jun 29 '16