问题描述
- Visual Studio 2019 (MSVC2017)
- 图书馆:PCL 1.8.1
我对编程不是很熟悉,目前我正在尝试使用 SampleConsensusModelnormalPlane 以便我可以利用 XYZ 坐标点和使用 PCL 的法线估计生成的法线,但我无法找到也无法理解如何实现不初始化它。
我尝试了很多变体,但仍然出现错误:
C2440 " 'initializing': cannot convert from 'Y *' to 'pcl::SampleConsensusModelnormalPlane<PointT,pcl::PointXYZRGBnormal> *' "
C2439 " 'boost::shared_ptr<pcl::SampleConsensusModelnormalPlane<PointT,pcl::PointXYZRGBnormal>>::px': member Could not be initialized (compiling source file.. file_name_where_attempted) "
根据头文件sac_model_normal_plane.h,以下应该是正确的:
SampleConsensusModelnormalPlane<PointXYZRGB,PointXYZRGBnormal>::Ptr Name(new SampleConsensusModelFromnormals<PointXYZRGB,PointXYZRGBnormal>(**PC1**<PointXYZRGB>),new SampleConsensusModelFromnormals<PointXYZRGB,PointXYZRGBnormal>);
但是没有用。是不是因为SampleConsensusModelnormalPlane不支持PointXYZRGB和PointXYZRGBnormal?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)