rs_to_velodyne-master compile Error:
/usr/include/pcl-1.10/pcl/point_types.h:574:1: error: ‘plus’ is not a member of ‘pcl::traits’ 574 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::CPPFSignature, /usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘plusscalar’ is not a member of ‘pcl::traits’ 588 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature, /usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘type’ is not a member of ‘pcl::traits::datatype<pcl::PPFRGBSignature, pcl::fields::f4>::decomposed’ {aka ‘pcl::traits::decomposeArray<float>’} /usr/include/pcl-1.10/pcl/point_types.h:588:1: error: ‘plusscalar’ is not a member of ‘pcl::traits’ 588 | POINT_CLOUD_REGISTER_POINT_STRUCT (pcl::PPFRGBSignature, ......
解决方法:
在对应程序包的CMakeLists.txt中加入一行代码即可顺利编译。
Solution:
Add the following line in CMakeLists.txt of the corresponding program package:
set(CMAKE_CXX_STANDARD 14)
You can also use the same method when compiling other packages with the same error!