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

Rtabmap won't start use frames

asked 2016-11-01 04:22:23 -0600

gijsje170 gravatar image

updated 2016-11-01 06:34:32 -0600

For some reason rtabmap won't use frames anymore. After the line:

rtabmap 0.11.8 started...

Nothing more follows. I am using freenect_launch freenect-registered-xyzrgb.launch but also freenect_launch freenect.launch will not work currently. For the launch file of rtabmap I am using the following:

<launch>
  <!-- Kinect cloud to laser scan -->
    <node pkg="depthimage_to_laserscan" type="depthimage_to_laserscan" name="depthimage_to_laserscan">
      <remap from="image"     to="/camera/depth_registered/image_raw"/>
      <remap from="camera_info" to="/camera/depth_registered/camera_info"/>
      <remap from="scan" to="/base_scan"/>
      <param name="range_max" type="double" value="4"/>
    </node>

  <!-- SLAM -->
  <group ns="rtabmap">
    <node name="rtabmap" pkg="rtabmap_ros" type="rtabmap" output="screen" args="--delete_db_on_start">
          <param name="frame_id" type="string" value="base_footprint"/>

          <param name="subscribe_depth" type="bool" value="true"/>
          <param name="subscribe_scan" type="bool" value="true"/>

          <remap from="odom" to="/base_controller/odom"/>
          <remap from="scan" to="/base_scan"/>

          <remap from="rgb/image" to="/camera/rgb/image_rect_color"/>
          <remap from="depth/image" to="/camera/depth_registered/image_raw"/>
          <remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>

          <param name="queue_size" type="int" value="10"/>

          <!-- RTAB-Map's parameters -->
          <param name="RGBD/ProximityBySpace"     type="string" value="false"/>
          <param name="RGBD/AngularUpdate"        type="string" value="0.01"/>
          <param name="RGBD/LinearUpdate"         type="string" value="0.01"/>
          <param name="RGBD/OptimizeFromGraphEnd" type="string" value="false"/>
          <param name="Optimizer/Slam2D"          type="string" value="true"/>
          <param name="Reg/Strategy"              type="string" value="1"/> <!-- 1=ICP -->
          <param name="Reg/Force3DoF"             type="string" value="true"/>
          <param name="Vis/MaxDepth"              type="string" value="4.0"/>
          <param name="Vis/MinInliers"            type="string" value="5"/>
          <param name="Vis/InlierDistance"        type="string" value="0.05"/>
          <param name="Rtabmap/TimeThr"           type="string" value="700"/>
          <param name="Mem/RehearsalSimilarity"   type="string" value="0.45"/>
          <param name="Icp/CorrespondenceRatio"   type="string" value="0.5"/>
          <param name="Vis/MaxFeatures"           type="string" value="500"/>
          <param name="Mem/ImagePreDecimation"    type="string" value="2"/>
          <param name="Mem/ImagePostDecimation"   type="string" value="2"/>
          <param name="Kp/DetectorStrategy"       type="string" value="6"/>
          <param name="OdomF2M/MaxSize"           type="string" value="1000"/>
          <param name="Odom/ImageDecimation"      type="string" value="2"/>
          <param name="delete_db_on_start"        type="string" value="true"/>
    </node>
  </group>
</launch>

When using the debugger it says:

Connection::drop(2)
TCP socket [14] closed
Connection::drop(0)
Connection::drop(2)
Connection::drop(2)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-11-01 09:41:06 -0600

matlabbe gravatar image

Hi,

rtabmap is subscribed to 5 topics:

<remap from="odom" to="/base_controller/odom"/>
<remap from="scan" to="/base_scan"/>
<remap from="rgb/image" to="/camera/rgb/image_rect_color"/>
<remap from="depth/image" to="/camera/depth_registered/image_raw"/>
<remap from="rgb/camera_info" to="/camera/rgb/camera_info"/>

If any of these is not published, the callback won't be called. Is /base_controller/odom published?

cheers

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-11-01 04:22:23 -0600

Seen: 113 times

Last updated: Nov 01 '16