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

rviz published topic remap

asked 2020-08-31 06:31:53 -0500

dinesh gravatar image

When i run the rviz, it is publishing the ros topic /move_base_simple/goal. I have a robot which is subscribing the topic /medicbot/move_base_simple/goal from a move base node. How do i remap or rename the topic /move_base_simple/goal which is published from the rviz node?

edit retag flag offensive close merge delete


What about remapping ?

Delb gravatar image Delb  ( 2020-08-31 06:57:01 -0500 )edit

<remap from="/move_base_simple/goal" to="/medicbot/move_base_simple/goal"/> is not working. i.e still same topic is comming.

dinesh gravatar image dinesh  ( 2020-08-31 06:58:47 -0500 )edit

Please detail exactly what you launch (i.e. the full launch file etc..) because with this launch file :

    <node name="rviz" pkg="rviz" type="rviz">
        <remap from="/move_base_simple/goal" to="/medicbot/move_base_simple/goal"/>

It worked propperly so you might be doing something wrong, but not providing enough data for us to help you.

Delb gravatar image Delb  ( 2020-08-31 07:24:59 -0500 )edit

ok. its working now.

dinesh gravatar image dinesh  ( 2020-08-31 09:24:25 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-08-31 10:54:44 -0500

Roberto Z. gravatar image

updated 2020-08-31 10:56:00 -0500

You can edit the launch file and use the remap tag as mentioned by @Delb, however if you prefer to use Rviz itself, this is how to do it:

  • Open rviz. Right click on 2D Nav Goal
  • Then select Tools properties
  • Enter the correct the topic in the 2D Nav Goal topic section
  • Close the tool properties window

image description

If you want to save your configuration for later use:

  • Go to File->Save Config to save your rviz configuration
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-08-31 06:31:53 -0500

Seen: 777 times

Last updated: Aug 31 '20