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

navigation with known map+rtabmap

asked 2018-01-24 12:45:13 -0500

zahra.kh gravatar image

updated 2018-01-24 16:21:56 -0500

matlabbe gravatar image

hi i created map with rtabmap and saved. but for navigation the saved map not open. I used rtabmap_ros on a Turtlebot in Gazebo and this is my launch file:

<!-- Turtlebot navigation simulation with RTAB-Map -->
<launch>

  <arg name="database_path"     default="rtabmap.db"/>
  <arg name="localization"      default="true"/>

  <!-- Mapping -->
  <group ns="rtabmap">
    <node name="rtabmap" pkg="rtabmap_ros" type="rtabmap" output="screen">
      <param name="database_path"       type="string" value="$(arg database_path)"/>
      <param name="frame_id"            type="string" value="base_footprint"/>
      <param name="odom_frame_id"       type="string" value="odom"/>
      <param name="subscribe_laserScan" type="bool"   value="true"/>

      <!-- inputs -->
      <remap from="scan"            to="/scan"/>
      <remap from="rgb/image"       to="/camera/rgb/image_raw"/>
      <remap from="depth/image"     to="/camera/depth/image_raw"/>
      <remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>

      <!-- outputs -->
          <remap from="grid_map" to="/map"/> <!-- input for move_base costmap -->

      <!-- RTAB-Map parameters -->
      <param name="RGBD/LocalLoopDetectionSpace" type="string" value="true"/>
      <param name="RGBD/OptimizeSlam2D"          type="string" value="true"/>      
      <param name="Kp/MaxDepth"                  type="string" value="4.0"/>
      <param name="Kp/DetectorStrategy"          type="string" value="6"/> <!-- GFTT/BRIEF -->
      <param name="GFTT/MinDistance"             type="string" value="5"/>
      <param name="LccIcp/Type"                  type="string" value="2"/> <!-- ICP 2D -->
      <param name="LccIcp2/CorrespondenceRatio"  type="string" value="0.1"/> 

      <!-- localization mode -->
      <param     if="$(arg localization)" name="Mem/IncrementalMemory" type="string" value="false"/>
      <param unless="$(arg localization)" name="Mem/IncrementalMemory" type="string" value="true"/>
      <param name="Mem/InitWMWithAllNodes" type="string" value="$(arg localization)"/> 
    </node>
  </group>

  <!-- ******* Navigation - Move Base ******* -->
  <include file="$(find turtlebot_navigation)/launch/includes/move_base.launch.xml"/>


  <!-- ******* Visualization of the Turtlebot on Rviz ******* -->
  <node name="rviz" pkg="rviz" type="rviz" args="-d $(find turtlebot_rviz_launchers)/rviz/navigation.rviz"/>

</launch>

when launched my launch file the massage was: Requesting the map... but map was not loaded

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-01-24 16:25:07 -0500

matlabbe gravatar image

If rtabmap is not yet localized, it won't publish the map. Move around to see if a loop closure can be found.

edit flag offensive delete link more

Comments

i moved turtlebot but map is not clear. also when launched my launch file an error is created:

zahra.kh gravatar image zahra.kh  ( 2018-01-25 05:00:17 -0500 )edit

zahra.kh gravatar image zahra.kh  ( 2018-01-25 05:00:34 -0500 )edit

i thought this error don't allowed the map clear!!!!!!!!!11

zahra.kh gravatar image zahra.kh  ( 2018-01-25 05:01:34 -0500 )edit
1

map is not cleared, can you add screenshots of the problem?

matlabbe gravatar image matlabbe  ( 2018-01-25 17:49:16 -0500 )edit

my means is that map isn't load and this error is clear: [ERROR] [1516955866.662140770]: Skipping XML Document "/opt/ros/indigo/share/gmapping/nodelet_plugins.xml" which had no Root Element. This likely means the XML is malformed or missing.

zahra.kh gravatar image zahra.kh  ( 2018-01-25 23:05:06 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-01-24 12:45:13 -0500

Seen: 789 times

Last updated: Jan 24 '18