Ask Your Question

How can I convert PointCloud2 to PointCloud?

asked 2014-03-17 02:58:51 -0500

hannuaa gravatar image

updated 2014-07-24 05:47:46 -0500

gvdhoorn gravatar image

Hi ! I have some problems when I run a "laser-perception.launch" of PR2. The errors are:

Client [/point_cloud_assembler] wants topic /tilt_scan_cloud_filtered to have datatype/md5sum [**sensor_msgs/PointCloud**/d8e9c3f5afbdd8a130fd1d2763945fca], but our version has [sensor_msgs/PointCloud2/1158d486dd51d683ce2f1be655c3c181]. Dropping connection

and so is the topic /tilt_scan_cloud. The topics' type is sensor_msgs/PointCloud2.

So I think the solution is that PointCloud2 should be converted to PointCloud. But I don't know how convert PointCloud2 to PointCloud in a launch file. thank you so much.

edit retag flag offensive close merge delete


1 Answer

Sort by » oldest newest most voted

answered 2014-07-24 01:19:32 -0500

ahendrix gravatar image

via @neil-traft:

Your question is covered in the PCL Overview. In particular, you can either run the point_cloud_converter node, or you can use sensor_msgs::convertPointCloud2ToPointCloud.

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: 2014-03-17 02:58:51 -0500

Seen: 5,228 times

Last updated: Jul 24 '14