Ask Your Question

How to save point cloud data as .txt file?

asked 2021-05-13 09:37:39 -0500

Aleena gravatar image

Hello, I am using ROS for obtaining point cloud data using Texas instrument IWR6843ISK in Ubuntu. I have to save the point cloud data. How can I do this. Thanks in advance. Thanks and regards, Aleena N A

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-05-13 13:45:32 -0500

updated 2021-05-13 18:32:15 -0500

jayess gravatar image

You can use point cloud library to read the incoming sensor_msgs::PointCloud/2. An example can be found on the official ros tutorial page. Once you have the data, you can use savePCDFileASCII to save it in a format you like. Just FYI: point clouds are usually stored in .ply, .pcd, .sty or .obj formats.

pcl::io::savePCDFileASCII ("test_pcd.pcd", cloud);
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


Asked: 2021-05-13 09:37:39 -0500

Seen: 324 times

Last updated: May 13 '21