【问题标题】:point cloud library PCL Ptr pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>)点云库 PCL Ptr pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>)
【发布时间】:2019-01-15 07:06:36
【问题描述】:
pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>)

这里的变量Ptr 是什么?我试图找出它,但无法获得任何相关信息。

【问题讨论】:

  • 欢迎来到 StackOverflow。请看How to Ask page也许你会得到更多答案...

标签: point-cloud-library


【解决方案1】:

相关信息在线查找。

PCL documentation 会告诉您Ptr 是什么。

typedef boost::shared_ptr< PointCloud<PointT> >   Ptr

Ptr 是 Boost 库的智能指针的 typedef。

然后,任何 C++ 文档都会告诉您 typedef 是什么,而 Boost 文档会告诉您 smart pointer 是什么。

cloud 是这里的变量,而不是PtrPtr 是类型的一部分。)

PCL basic tutorials 是您需要经历的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-25
    • 2021-03-12
    • 2020-07-31
    • 2015-03-26
    • 1970-01-01
    • 2017-12-08
    相关资源
    最近更新 更多