Ask Your Question
0

Question about Remapping

asked 2013-12-27 13:24:10 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

According to the tutorial of "Using rqt_console and roslaunch", in the node of "mimic" of package "turtlesim", it remaps the topics "/input/pose" and "/output/command_velocity" by just remapping "input" to "/turtlesim1/turtle1" and "output" to "/turtlesim2/turtle1", which i.e. just remaps the base name of the topic rather than the global name.

However, it seems this method fails to work for the node of "turtle_teleop_key". In the launch file, I remap the topic "turtle1/command_veolcity" by remapping "turtle1" to "turtle2", but the topic lists still show "turtle1/command_velocity". When I fix the launch file by remapping "turtle1/command_velocity" to "turtle2/command_velocity", the topics lists finally show the change.

Can someone know figure out the difference between the base name and global name when remapping topics?

Thanks a lot

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-27 19:30:05 -0600

tfoote gravatar image

It depends on how the node is designed. If it is designed such that it remaps specific names. If the node internally uses a specific string and then builds the higherarchy below it they will remap with the higher level remapping. Otherwise you need to remap each element by its full name.

edit flag offensive delete link more

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: 2013-12-27 13:24:10 -0600

Seen: 244 times

Last updated: Dec 27 '13