0
$\begingroup$

Rosanswers logo

I am following the ROS PCL tutorials , When I try to implement the Smoothing and normal estimation based on polynomial reconstruction algorithm I get the following error error

C2664: 'void pcl::PCLBase::setInputCloud(const boost::shared_ptr<const pcl::PointCloud> &)': cannot convert argument 1 from 'const pcl::PCLPointCloud2ConstPtr' to 'const boost::shared_ptr<const pcl::PointCloud> &'

    with
    [
        PointInT=pcl::PointXYZ,
        PointT=pcl::PointXYZ
    ]
    and
    [
        PointT=pcl::PointXYZ
    ]

How to pass PointCloud2 message to this algorithm?


Originally posted by HossamAlzomor on ROS Answers with karma: 5 on 2022-12-16

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

The conversion function is named pcl::fromROSMsg() from ros package pcl_conversions. Also see answers to #q405219.


Originally posted by Mike Scheutzow with karma: 4903 on 2022-12-17

This answer was ACCEPTED on the original site

Post score: 0

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.