PCL 报错修改 pairwise_incremental_registration

第一篇文章 先试试 水一下。。

在学习PCL点云库教程中,经常有各种库函数报错(因为代码使用版本和现在更新的版本差别大,有些函数都改掉了)

这里记录一下:

我用的是ubuntu18.04  pcl-1.11  eigen3   vtk-7.1

多帧点云配准 pairwise_incremental_registration中:

reg.setPointRepresentation (boost::make_shared<const MyPointRepresentation> (point_representation));

报错:不存在用户定义的从 "boost::shared_ptr<const MyPointRepresentation>" 到 "const std::shared_ptr<const pcl::PointRepresentation<PointNormalT>>" 的适当转换

改成:

reg.setPointRepresentation (pcl::make_shared<const MyPointRepresentation> (point_representation)); 即可

 

reg.setInputCloud (points_with_normals_src);

报错:函数 "pcl::Registration<PointSource, PointTarget, Scalar>::setInputCloud [其中 PointSource=PointNormalT, PointTarget=PointNormalT, Scalar=float]" (已声明 所在行数:698,所属文件:"/usr/include/pcl-1.11/pcl/registration/registration.h") 不可访问

改:reg.setInputSource (points_with_normals_src);

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值