Ask Your Question
0

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

Comments

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 :

<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.

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
1

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

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

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

Seen: 335 times

Last updated: Aug 31 '20