Robotics StackExchange | Archived questions

Convert PointCloud2 in bag file to pcd

Hi. I wanted to convert a message of type sensormsgs/PointCloud2 stored in a bag file to pcd by using the command:
rosrun pcl
ros bagtopcd inputfile.bag /topic outputdirectory
My problem is that the final file 0.000000000.pcd only contains the 256 points. It seems like the precedent streams are erased. Instead of having 2064 + 1226 + 256 =3546 points, I got only 256.

Got 2064 data points in frame /ORBSLAM/World with the following fields: x y z
Data saved to /home/chews/pcd
ORB/bag/0.000000000.pcd
Got 1226 data points in frame /ORBSLAM/World with the following fields: x y z
Data saved to /home/chews/pcd
ORB/bag/0.000000000.pcd
Got 256 data points in frame /ORBSLAM/World with the following fields: x y z
Data saved to /home/chews/pcd
ORB/bag/0.000000000.pcd

Does anyone know how to save all the data?

Asked by rosGSCOP on 2016-04-07 09:24:06 UTC

Comments

Answers