Skip to content

make error on intensity #8

@yoshiyama

Description

@yoshiyama

The error on "intensity" as below has happened.
Let me know how to solve it.

survey@SURVEY-C20:/mnt/c/GitHub/las2pcd$ make
Scanning dependencies of target las2pcd
[ 50%] Building CXX object CMakeFiles/las2pcd.dir/las2pcd.cpp.o
/mnt/c/GitHub/las2pcd/las2pcd.cpp: In function ‘int main(int, char**)’:
/mnt/c/GitHub/las2pcd/las2pcd.cpp:71:19: error: ‘__gnu_cxx::__alloc_traits<Eigen::aligned_allocatorpcl::PointXYZRGB >::value_type {aka struct pcl::PointXYZRGB}’ has no member named ‘intensity’
cloud.points[i].intensity = (reader.GetPoint().GetIntensity());
^~~~~~~~~
CMakeFiles/las2pcd.dir/build.make:62: recipe for target 'CMakeFiles/las2pcd.dir/las2pcd.cpp.o' failed
make[2]: *** [CMakeFiles/las2pcd.dir/las2pcd.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/las2pcd.dir/all' failed
make[1]: *** [CMakeFiles/las2pcd.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions