Ask Your Question
0

How to Navigate the Robot using RTABmapViz

asked 2019-07-28 22:04:21 -0500

al389660 gravatar image

Hi, I am using rtabmap_ros package to simulate 3D mapping and navigation of the mobile Robot. As for the first part, I can generate the 3D map of the environment simulated in gazebo. However, when I run my rtabmap source file in localization mode it loads the 3D map successfully but does not show the robot model as it does in RVIZ. Please note that I run my gazebo model before running rtabmap launch file.

  1. Can I connect gazebo and rtabmap so that robot model shows in rtabmap interface?
  2. how can I send commands to robot in localization mode using rtabmap and print its trajectory? (Please note that I am aware of send goal command using node ID in rtabmap interface but it does not seem to work as there is no robot model in the rtabmap interface)
  3. Is it possible to connect RVIZ and rtabmap so that robot model shows in both (rtabmap and RVIZ) interfaces and when given the 2D navigation command in RVIZ, robot also moves in rtabmap? Thank you very much in advance.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-07-29 09:10:09 -0500

matlabbe gravatar image

updated 2019-07-29 09:13:20 -0500

  1. No, use RobotModel display in RVIZ instead
  2. /rtabmap/goal should be connected to /move_base_simple/goal, or rtabmap is configured to use actionlibs with move_base like in this example:

`

 <node name="rtabmap" pkg="rtabmap_ros" type="rtabmap" output="screen">
  <param name="use_action_for_goal" type="bool" value="true"/>
  <remap from="move_base" to="/move_base"/>
 </node>

3) We cannot add 3D models for visualization in rtabmapviz. However, if the robot moves, the referential corresponding to base_link frame will move in rtabmapviz.

Note that rtabmapviz is used only for visualization (not required for SLAM), so in general we choose between rviz or rtabmapviz. We can open both too: rtabmapviz used to monitor loop closures and see statistics, while rviz is used to show the map and the robot model.

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: 2019-07-28 22:04:21 -0500

Seen: 26 times

Last updated: Jul 29