PCL数据类型和ROS数据类型的转换

时间:2018-06-06 00:26:25   收藏:0   阅读:572

参考网址 http://wiki.ros.org/pcl/Overview ,重点参看第2和第3节。

1. Data types

介绍了三种点云数据类型:sensor_msgs::PointCloud(不常用),sensor_msgs::PointCloud2pcl::PointCloud<T>

2. Point Cloud conversion

两种情形下需要进行数据转换

2.1. Converting between sensor_msgs::PointCloud2 and pcl::PointCloud<T> objects

注意:pcl::fromROSMsg and pcl::toROSMsg 函数逐渐被废弃。

2.2. Converting between the `sensor_msgs::PointCloud` and `sensor_msgs::PointCloud2` format

3. Publishing and subscribing to point cloud messages

代码演示,订阅和发布不同数据类型的点云。

原文:https://www.cnblogs.com/gdut-gordon/p/9142612.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!