First time here? Check out the FAQ!


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

Convert from PointCloud to PCD

asked Mar 30 '16

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?

Preview: (hide)

Comments

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

Orhan gravatar image Orhan  ( Mar 30 '16 )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  ( Mar 30 '16 )edit

1 Answer

Sort by » oldest newest most voted
0

answered Mar 31 '16

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.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Mar 30 '16

Seen: 5,297 times

Last updated: Mar 31 '16