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

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 ). 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


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

Orhan gravatar image Orhan  ( 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 image rosGSCOP  ( 2016-03-30 10:58:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

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

Question Tools

1 follower


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

Seen: 4,422 times

Last updated: Mar 31 '16