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

how to use the remapping syntax

asked 2012-03-01 10:52:54 -0600

cassander gravatar image

updated 2012-03-01 11:01:03 -0600

Eric Perko gravatar image

From some of the other question I realized it is possible to remap the namespace of node on the command line using rosrun. But it is not working for me..

The syntax i tried is ,

rosrun somepkg somenode:="new_namespace/somenode.py"

and many other variations of it.

Could someone please tell me what is the correct way to remap a node to another name space on the command line while using rosrun?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2012-03-01 11:00:44 -0600

Eric Perko gravatar image

You can only use remapping arguments (the := syntax) for parameters and topics. If you want to push a node into a namespace on the command-line, you would do it like so:

$ ROS_NAMESPACE=new_namespace rosrun somepkg somenode

This will force somenode to be in the new_namespace namespace.

edit flag offensive delete link more
1

answered 2012-03-01 11:03:06 -0600

dornhege gravatar image

Look at: http://www.ros.org/wiki/Remapping%20Arguments

I'm not sure if you maybe want to only change the __name but not the namespace.

edit flag offensive delete link more

Comments

actually.. im looking to only change the namespace.. Maybe that is why the command I tried did not work..

cassander gravatar image cassander  ( 2012-03-02 06:32:29 -0600 )edit

Question Tools

Stats

Asked: 2012-03-01 10:52:54 -0600

Seen: 1,844 times

Last updated: Mar 01 '12