Ask Your Question
0

Namespace without roslaunch

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

Markus Bader gravatar image

Hi

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?

Greetings

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

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

Comments

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

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

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

Comments

1

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 902 times

Last updated: Mar 24 '14