Ask Your Question

How to test rgbdslam without a kinect?

asked 2012-09-25 21:47:06 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I want to test rgbdslam, but I havenot a kinect.

I have seen: If you want to test rgbdslam without kinect, download a sequence from and use "rosbag play <filename.bag>". Make sure to set the appropriate topics (i.e. clear the "topic_points" parameter and set topic_image_mono to /camera/rgb/image_color). Felix Endres (Jan 23 '12)

But I can't quite understand. More detailed steps and any preconditions ?

edit retag flag offensive close merge delete


Please add the correct tags to your question, or it is likely to be missed (and remain un-answered).

AHornung gravatar image AHornung  ( 2012-09-26 01:05:37 -0500 )edit

I answered this question comprehensively but it didn't seem to show up :( Short answer is that these parameters are set correctly for the bag files from that dataset, you shouldn't have to do anything.

RossK gravatar image RossK  ( 2012-09-26 09:47:26 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-09-26 09:30:04 -0500

RossK gravatar image

Short answer is you do not have to do anything in this case.

Long answer:

He is referring to the ros parameters for RGBDSLAM. These may be set in a launch file or by editing parameter_server.cpp. The relevant parameters in the case are:

"topic_image_mono" - Topic for the camera image (/camera/rgb/image_color)

"camera_info_topic" - Topic for the camera information (camera/rgb/camera_info)

"topic_image_depth" - Topic for the depth image (camera/depth/image)

"topic_points" - Topic for the pointclouds (camera/rgb/points) Leave this empty, read further

These can be set by making a copy of the launch file rgbdslam_sample_config.launch and editing the relevant fields.

In this case the defaults for these topics are the same as the topics for the bag files in this data set, and therefore it should just work. If "topic_points" is empty then RGBDSLAM will reconstruct the point clouds from color and depth images. In this case it is necessary to do so as the bag files do not come with this topic. This is because the pointcloud topic is far less space efficient than having separate color and depth image topics.

edit flag offensive delete link more


I followed your answer and get the right result in the first 3 seconds. However, the bag file I downloaded from link text which is about 30 seconds, when I run rosbag play --clock XXX.bag, the bag file only run in the first 3 seconds.

weiwei gravatar image weiwei  ( 2014-08-31 04:21:47 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2012-09-25 21:47:06 -0500

Seen: 824 times

Last updated: Sep 26 '12