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

How can I convert PointCloud2 to PointCloud?

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

hannuaa gravatar image

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

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

Comments

1 Answer

Sort by ยป oldest newest most voted
2

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

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

Question Tools

2 followers

Stats

Asked: 2014-03-17 02:58:51 -0600

Seen: 10,021 times

Last updated: Jul 24 '14