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

Problem generating PCD from rgbdslam

asked 2011-04-13 02:39:37 -0500

Shark gravatar image

updated 2014-01-28 17:09:31 -0500

ngrennan gravatar image

I've currently been using a bag file approach to run rgbdslam. The procedure I use is as follows:

I record a bag file with rgbdslam using the command:

rosbag record /rgbdslam/batch_clouds /tf

And then I use the command:

rosrun pcl_ros bag_to_pcd <bag_file_name> /rgbdslam/batch_clouds <destination_directory>

However, the error I get when running the above command is as follows:

[ERROR] [######]: Frame id /base_link does not exist! When trying to transform between /batch_transform and /base_link.

I assume this problem likely has to do with applying the correct transform from the /tf recorded in the bag file. Is there an simple solution to this, or will I need to make an edit to the bag_to_pcd code to work for this specific case?

Thanks

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2011-04-13 22:05:39 -0500

will I need to make an edit to the bag_to_pcd code to work for this specific case?

Yes, open bag_to_pcd.cpp and replace the one occurence of /base_link by /openni_camera

edit flag offensive delete link more
0

answered 2011-04-14 00:10:21 -0500

Shark gravatar image

updated 2011-04-14 00:29:24 -0500

So the bag_to_pcd code is working fine with the bag file provided on the rgbd6dlsm webpage. However, when I try recording it on bag files I've generated, I get a bunch of errors that look like as follows:

[ WARN] [1302782687.209693801]: TF_OLD_DATA ignoring data from the past for frame /openni_depth_frame at time 1.30278e+09 according to authority /bag_to_pcd Possible reasons are listed at

[ERROR] [1302782687.243355116]: You requested a transform that is 103.609 seconds in the past, but the tf buffer only has a history of 0.288 seconds. When trying to transform between /batch_transform and /openni_camera.

Is this likely an error during data collection? As indicated in the original post, I execute the command to start recording before I hit CTRL+P. After I have sent the world model (CTRL+S), I then ctrl+c out of the rosbag record.

And I forgot to thank you for your help in my earlier posts. Your help is very much appreciated

Edit: Nevermind, the converter seems work on occasion with my own bag files.

-Shark

edit flag offensive delete link more

Comments

Not exactly sure why, but restarting roscore seems to remedy this problem. Just a heads up for anyone else who might run into this problem.
Shark gravatar image Shark  ( 2011-04-14 02:52:39 -0500 )edit
Could it be that you still had roslaunch openni_camera openni_node.launch running? Then the kinect_base_linkX nodes publish transforms with newer timestamps
Felix Endres gravatar image Felix Endres  ( 2011-04-14 03:16:24 -0500 )edit
Ahh yes, you're right. I had my openni_camera.launch running too (so turning off roscore inadvertently made me turn off the openni_camera too).
Shark gravatar image Shark  ( 2011-04-15 10:51:30 -0500 )edit
0

answered 2011-04-13 23:32:49 -0500

Shark gravatar image

updated 2011-04-13 23:42:10 -0500

So I implemented this as my own package called "bag_to_pcd2." I just want to confirm, but should the output be a series of pcd files? I was under the assumption that it would be one combined pcd file.

If not, I guess I can right my own pcd combiner.

edit flag offensive delete link more

Comments

If so, they should all be in the same frame. Write the pcd files to ascii and you could even concatenate the point clouds with a text editor
Felix Endres gravatar image Felix Endres  ( 2011-04-13 23:57:48 -0500 )edit

Question Tools

Stats

Asked: 2011-04-13 02:39:37 -0500

Seen: 691 times

Last updated: Apr 14 '11