kiit
kiit

Reputation: 11

point cloud library PCL Ptr pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>)

pcl::PointCloud<pcl::PointXYZ>::Ptr cloud (new pcl::PointCloud<pcl::PointXYZ>)

What is this variable Ptr here ? I tried to find it out but could not get any relevant information.

Upvotes: 1

Views: 2142

Answers (1)

acraig5075
acraig5075

Reputation: 10756

Relevant information is online if you go looking for it.

The PCL documentation will tell you what Ptr is.

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

i.e. Ptr is a typedef to a smart pointer of the Boost library.

Then, any C++ documentation will tell you what a typedef is, and Boost documentation will tell you what a smart pointer is.

(cloud is the variable here, not Ptr. Ptr is part of the type.)

The PCL basic tutorials is what you need to go through.

Upvotes: 3

Related Questions