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

Namespace without roslaunch

asked 2014-03-24 05:25:45 -0500

Markus Bader gravatar image


I like to run a rosnode within a namespace but without roslaunch. I have to find a problem related to a multi-robot scenario because I use name spaces to start rosnotes for each robot. It looks like there is a problem with one node and I like to debug the node, so I like to start the node with a debugger but within a namespace. Is this possible?


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-03-24 05:53:15 -0500

dornhege gravatar image

You should be able to set the ROS_NAMESPACE environment variable to your namespace. Everything in the node should be pushed to the namespace.

edit flag offensive delete link more


Thank you so much, that's exactly what I needed.

Markus Bader gravatar image Markus Bader  ( 2014-03-24 23:53:26 -0500 )edit

answered 2014-03-24 05:32:53 -0500

Wolf gravatar image

You can remap ros names using rosrun without problems. The operator is := . E. g. when using image_view like

rosrun image_view image_view image:=/camera/image_raw

you remap image -> /camera/image_raw. I think you can use this also to remap the namespace of your node without roslaunch.

edit flag offensive delete link more



Thanks for the hint, but I like to debug the amcl node and I do not want to to remap all topics and I want to explore some problems occurring while using a name space.

Markus Bader gravatar image Markus Bader  ( 2014-03-24 23:56:22 -0500 )edit

Question Tools


Asked: 2014-03-24 05:25:45 -0500

Seen: 1,172 times

Last updated: Mar 24 '14