[error: ‘const class std::shared_ptr<pcl::PointCloud<pcl::PointXYZ> >’ has no member named ‘__getDataType’ custom] Provide a general summary of the issue #5927
This is not a PCL issue. Please ask in the appropriate ROS forums. My best guess is that you have to convert the pcl::PointCloud to a sensor_msgs::PointCloud2
pcl:1.12,ros:noetic