Ask Your Question
1

Convert from PointCloud to PCD

asked 2016-03-30 03:45:13 -0500

rosGSCOP gravatar image

Hi, I wanted to convert my point cloud (of type sensor_msgs::PointCloud2) published in a topic /X to pcd file. I used the builtin rosnode pointcloud_to_pcd (from the tuto http://wiki.ros.org/pcl_ros#pointclou... ). What I typed was:

rosrun pcl_ros pointcloud_to_pcd input:=/X

I verified there are messages coming in the topic / X using rostopic echo. However, at the end, I didn't get a .pcd file in the directory where I launched the rosnode. Do you guys have an idea?

edit retag flag offensive close merge delete

Comments

Where is pcl_ros outputs when doing this process? Can you write?

Orhan gravatar imageOrhan ( 2016-03-30 10:17:28 -0500 )edit

Hi. Thank you.I don't quite understand your question. Normally, according to the tuto, pcl_ros will output the .pcd file in the directory where I launch this pcl_ros node.

rosGSCOP gravatar imagerosGSCOP ( 2016-03-30 10:58:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-31 00:02:21 -0500

rosGSCOP gravatar image

Hi. I just discovered the error I committed. Actually, although there 's message (of type sensor_msgs::PointCloud2) coming into the topic /X, they contain no data(no coordinates x,y and z). That's why at the end of the pointcloud-to-pcd conversion, I got no .pcd file.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-03-30 03:45:13 -0500

Seen: 1,617 times

Last updated: Mar 31 '16