Robotics StackExchange | Archived questions

rviz published topic remap

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?

Asked by dinesh on 2020-08-31 06:31:53 UTC

Comments

What about remapping ?

Asked by Delb on 2020-08-31 06:57:01 UTC

is not working. i.e still same topic is comming.

Asked by dinesh on 2020-08-31 06:58:47 UTC

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

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

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

Asked by Delb on 2020-08-31 07:24:59 UTC

ok. its working now.

Asked by dinesh on 2020-08-31 09:24:25 UTC

Answers

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

Asked by Roberto Z. on 2020-08-31 10:54:44 UTC

Comments