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

schrottulk's profile - activity

2022-07-02 06:14:38 -0500 received badge  Nice Answer (source)
2021-02-17 16:20:40 -0500 marked best answer Turtlebot Gmapping with RPLIDAR encounters errors

Hi, i know there were serveral questions about this error, but they are all about the kinect connected to the turtlebot..

I have a RPLIDAR A1 connected to the turtlebot and want to run gmapping slam algorithm. I dont have a kinect connected or any other sensors. I have Ubuntu 14.04 and ROS Indigo installed on a Intel NUC build on the turtlebot. I started this 3 commands in different terminals and a teleop command to start the Lidar scan, gmapping and RVIZ

roslaunch turtlebot_le2i rplidar_minimal.launch

roslaunch turtlebot_navigation gmapping_demo.launch

roslaunch turtlebot_rviz_launchers view_navigation.launch

It works fine, i can see the map being built in RVIZ but i get this errors in the gmapping terminal:

No matching device found.... waiting for devices. Reason: std::string openni2_wrapper::OpenNI2Driver::resolveDeviceURI(const string&) @ /tmp/binarydeb/ros-indigo-openni2-camera-0.2.7/src/openni2_driver.cpp @ 631 : Invalid device number 1, there are 0 devices connected.

Has anyone an idea? Any help would be appreciated!

2018-06-15 16:57:11 -0500 marked best answer Using RTABMAP with Gmapping?

Hi there!

I am building a map with a Kinect 360, a RPLidar-laserscanner and a turtlebot using RTABMAP on Ubuntu 14.04 and ROS Indigo. Hi,

While using RTABMAP I get poor results for the registered 3D Point Cloud and the 2D grid_map (which I am using for navigation). There a many registration errors in both map. So I decided to use gmapping for building the 2D map and run rtabmap in parallel. I set "publish_tf" to false and got really good results for the 2D Map, but still poor results in the 3D point cloud. Is it possible in RTABMAP to prior the laserscanner data for RTABMAPs scan-matching and pose estimation? Or to use gmappings pose estimation for RTABMAPs point cloud registration?

Or does anyone now another package to register the point clouds from kinect?

I am using this launch file from now:

<launch>

  <arg name="database_path"     default="rtabmap.db"/>
  <arg name="localization"      default="false"/>
  <arg name="rgbd_odometry"     default="false"/>
  <arg name="args"              default="--delete_db_on_start"/>
  <arg name="rtabmapviz"        default="false"/>

  <arg name="wait_for_transform"  default="0.2"/> 
  <!-- 
      robot_state_publisher's publishing frequency in "turtlebot_bringup/launch/includes/robot.launch.xml" 
      can be increase from 5 to 10 Hz to avoid some TF warnings.
  -->

  <!-- Navigation stuff (move_base) -->
  <include file="$(find turtlebot_bringup)/launch/3dsensor.launch">
    <arg name="scan_processing"  value="false" />                      <!-- Disable conversion from Kinect to /scan -->
  </include>

  <!-- gmapping -->
  <include file="$(find turtlebot_igm)/launch/gmapping.launch"/>

  <include file="$(find turtlebot_navigation)/launch/includes/move_base.launch.xml"/>

  <!-- Mapping -->
  <group ns="rtabmap">

    <node name="rtabmap" pkg="rtabmap_ros" type="rtabmap" output="screen" args="$(arg args)">
      <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="wait_for_transform_duration"  type="double"   value="$(arg wait_for_transform)"/>
      <param name="subscribe_depth"     type="bool"   value="true"/>
      <param name="subscribe_scan"      type="bool"   value="true"/>


    <!--<param name="Grid/FromDepth" type="string" value="true" />-->
    <param name="publish_tf"         type="bool"   value="false"/>
    <param name="RGBD/PoseScanMatching" type="bool" value="true"/>

      <!-- inputs -->
      <remap from="scan"            to="/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"/>

      <!-- output -->
      <!--<remap from="grid_map" to="/map"/>-->

      <!-- RTAB-Map's parameters: do "rosrun rtabmap rtabmap (double-dash)params" to see the list of available parameters. -->
      <param name="RGBD/ProximityBySpace"        type="string" value="true"/>   <!-- Local loop closure detection (using estimated position) with locations in WM -->
      <param name="RGBD/OptimizeFromGraphEnd"    type="string" value="false"/>  <!-- Set to false to generate map correction between /map and /odom -->
      <param name="Kp/MaxDepth"                  type="string" value="4.0"/>
      <param name="Reg/Strategy"                 type="string" value="1"/>      <!-- Loop closure transformation refining with ICP: 0=Visual, 1=ICP, 2=Visual+ICP -->
      <param name="Icp/CoprrespondenceRatio"     type="string" value="0.3"/>
      <param name="Vis/MinInliers"               type="string" value="5"/>      <!-- 3D visual words minimum inliers to accept loop closure -->
      <param name="Vis/InlierDistance"           type="string" value="0.1"/>    <!-- 3D visual words correspondence distance -->
      <param name="RGBD/AngularUpdate"           type="string" value="0.1"/>    <!-- Update map only if the robot is moving ...
(more)
2018-03-23 01:51:53 -0500 received badge  Self-Learner (source)
2017-11-27 11:31:25 -0500 received badge  Famous Question (source)
2017-11-10 09:20:54 -0500 received badge  Notable Question (source)
2017-11-10 09:20:54 -0500 received badge  Popular Question (source)
2017-06-24 09:31:04 -0500 commented question Build fails: Could not find org.ros.rosjava_messages:costmap_2d

Hi gvdhoorn, no I am not using rosjava. And the error does not occur if I delete costmap_2d from my CMakeLists.txt and t

2017-06-24 07:58:40 -0500 received badge  Famous Question (source)
2017-06-24 07:58:40 -0500 received badge  Notable Question (source)
2017-06-24 07:58:10 -0500 asked a question Build fails: Could not find org.ros.rosjava_messages:costmap_2d

Build fails: Could not find org.ros.rosjava_messages:costmap_2d Hi, i am working on a ros project with ros-kinetic on Ub

2017-05-15 13:42:59 -0500 received badge  Popular Question (source)
2017-05-04 11:29:21 -0500 edited question Using RTABMAP with Gmapping?

Using RTABMAP with Gmapping? Hi there! I am building a map with a Kinect 360, a RPLidar-laserscanner and a turtlebot us

2017-05-04 11:28:19 -0500 asked a question Using RTABMAP with Gmapping?

Using RTABMAP with Gmapping? Hi there! I am building a map with a Kinect 360, a RPLidar-laserscanner and a turtlebot us

2017-04-18 07:07:30 -0500 received badge  Famous Question (source)
2017-01-14 08:33:25 -0500 commented answer RTABMAP How to save registered 3D point cloud?

That works perfect! Many Thanks!

2017-01-13 03:03:31 -0500 received badge  Famous Question (source)
2017-01-13 03:03:18 -0500 received badge  Enthusiast
2017-01-12 06:34:52 -0500 commented answer RTABMAP How to save registered 3D point cloud?

Hi matlabbe, sorry for bothering you again! But with cloud_map I only get the 2D projection of the registered 3D Map to the ground. Is it possible to save the registered 3D Point Cloud from the /rtabmap/mapData Topic to .pcd / .ply directly from the command line without using RTABMAPVIZ ?

2017-01-07 11:47:02 -0500 received badge  Notable Question (source)
2017-01-02 02:55:27 -0500 received badge  Notable Question (source)
2017-01-02 02:55:27 -0500 received badge  Popular Question (source)
2016-12-26 11:48:09 -0500 commented answer RTABMAP How to save registered 3D point cloud?

Thanks a lot!

2016-12-26 11:47:07 -0500 received badge  Scholar (source)
2016-12-26 11:47:04 -0500 received badge  Supporter (source)
2016-12-26 11:46:58 -0500 received badge  Popular Question (source)
2016-12-21 08:49:05 -0500 received badge  Necromancer (source)
2016-12-21 08:49:05 -0500 received badge  Teacher (source)
2016-12-21 04:32:32 -0500 asked a question RTABMAP How to save registered 3D point cloud?

Hi,

I am building a map with a Kinect 360 and a turtlebot using RTABMAP on Ubuntu 14.04 and ROS Indigo.

Everything works fine, I can see the registered 3D point cloud on RTABMAPVIZ or with RVIZ. Now I want to save the 3D Point cloud to .pcd or .ply . I know there is the option in RTABMAPVIZ with File->Export 3D Cloud descripted here, but is there any option to do this without using RTABMAPVIZ? Is there any service I can call from the command line or from another node? Or to do this in RVIZ?

Any help would be appreciated!

2016-12-21 04:16:09 -0500 answered a question ROS wandering / exploring robot program?

You should take a look at the package cam_exploration.

2016-11-30 13:04:34 -0500 received badge  Famous Question (source)
2016-11-17 09:12:43 -0500 received badge  Notable Question (source)
2016-11-17 09:12:43 -0500 received badge  Notable Question (source)
2016-11-17 03:03:38 -0500 received badge  Popular Question (source)
2016-11-16 13:35:17 -0500 received badge  Organizer (source)
2016-11-16 13:16:20 -0500 commented question How to get laser scan data from a Kinect?

Do you get the laser scan data on your turtlebot laptop with $ rostopic echo /scan ?

2016-11-16 12:58:55 -0500 answered a question Turtlebot Gmapping with RPLIDAR encounters errors

I figured it out on myself:

gmapping_demo.launch includes a 3dsensor.launch file, which starts openni and this does not find any connected kinect (because there is no connected..).

So i just have to remove this lines from gmapping_demo.launch

  <!-- 3D sensor -->
  <arg name="3d_sensor" default="$(env TURTLEBOT_3D_SENSOR)"/>  <!-- r200, kinect, asus_xtion_pro -->
  <include file="$(find turtlebot_bringup)/launch/3dsensor.launch">
    <arg name="rgb_processing" value="false" />
    <arg name="depth_registration" value="false" />
    <arg name="depth_processing" value="false" />

    <!-- We must specify an absolute topic name because if not it will be prefixed by "$(arg camera)".
         Probably is a bug in the nodelet manager: https://github.com/ros/nodelet_core/issues/7 --> 
    <arg name="scan_topic" value="/scan" />
  </include>