When building elevation mapping on melodic
Errors << elevation_mapping:make /home/six/ws_em/logs/elevation_mapping/build.make.001.log
In file included from /home/six/ws_em/src/elevation_mapping/elevation_mapping/src/PointXYZRGBConfidenceRatio.cpp:12:0:
/home/six/ws_em/src/elevation_mapping/elevation_mapping/include/elevation_mapping/PointXYZRGBConfidenceRatio.hpp:32:3: error: ‘PCL_MAKE_ALIGNED_OPERATOR_NEW’ does not name a type; did you mean ‘EIGEN_MAKE_ALIGNED_OPERATOR_NEW’?
PCL_MAKE_ALIGNED_OPERATOR_NEW
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
make[2]: *** [CMakeFiles/elevation_mapping_pcl_types.dir/src/PointXYZRGBConfidenceRatio.cpp.o] Error 1
make[1]: *** [CMakeFiles/elevation_mapping_pcl_types.dir/all] Error 2
make: *** [all] Error 2
Solution:
Change the file as suggested by the error and rebuild.