|
struct PointXYZRGBI
{
PCL_ADD_POINT4D; // preferred way of adding a XYZ+padding
float r;
float g;
float b;
float intensity;
EIGEN_MAKE_ALIGNED_OPERATOR_NEW // make sure our new allocators are aligned
} EIGEN_ALIGN16; // enforce SSE padding for correct memory alignment
POINT_CLOUD_REGISTER_POINT_STRUCT(PointXYZRGBI, // here we assume a XYZ + "r,g,b,intersity" (as fields)
(float, x,x)
(float, y,y)
(float, z,z)
(float, r,r)
(float, g,g)
(float, b,b)
(float, intensity, intensity)
)
typedef pcl::PointXYZRGBI PointT;
//////////以上这是定义点
/////结果在运行Octree的函数的时候,出现了连接错误。为什么?是不是因为我的点不在它默认文件里而出现一些问题?
其中一行连接错误是这样写的:
1>octree_pick.obj : error LNK2019: 无法解析的外部符号 "public: bool __cdecl pcl::octree::OctreePointCloudSearch<struct pcl::PointXYZRGBI,class pcl::octree::OctreeContainerDataTVector<int>,class pcl::octree::OctreeContainerEmpty<int> >::voxelSearch(struct pcl::PointXYZRGBI const &,class std::vector<int,class std::allocator<int> > &)" (?voxelSearch@?$OctreePointCloudSearch@UPointXYZRGBI@pcl@@V?$OctreeContainerDataTVector@H@octree@2@V?$OctreeContainerEmpty@H@42@@octree@pcl@@QEAA_NAEBUPointXYZRGBI@3@AEAV?$vector@HV?$allocator@H@std@@@std@@@Z),该符号在函数 main 中被引用
|
|