loam_velodyne
loam_velodyne copied to clipboard
/LaserMapping.cpp:149:28: error: ‘downSizeFilterMap’ was not declared in this scope
Hi, When I try to make the file I get this error. In member function ‘virtual bool loam::LaserMapping::setup(ros::NodeHandle&, ros::NodeHandle&)’: catkin_ws/src/loam_velodyne/src/lib/LaserMapping.cpp:149:28: error: ‘downSizeFilterMap’ was not declared in this scope downSizeFilterMap().setLeafSize(fParam, fParam, fParam);
Which was not the case before the PR. I looked at the header and the parent class and seems like this function has never been defined.
Would appreciate it if someone could fix this bug.
Thanks
Please put a link to the offending line in the commit you are using. Also what build tools are you using?
I have the same problem and this is a new error that has not been seen before.
I got the same question, after compiled I got
/home/tiffer/test_catkin/src/loam_velodyne-master/src/lib/LaserMapping.cpp:149:28: error: ‘downSizeFilterMap’ was not declared in this scope downSizeFilterMap().setLeafSize(fParam, fParam, fParam); ^ [8/18] Building CXX object src/lib/CMa...Files/loam.dir/BasicLaserMapping.cpp.o ninja: build stopped: subcommand failed. <== Failed to process package 'loam_velodyne': Command '['/home/tiffer/test_catkin/install_isolated/env.sh', 'ninja', '-j8', '-l8']' returned non-zero exit status 1
and for catkin_make
also got false just like elahea2020. downSizeFilterMap() Not Define
I'll look into it asap.
You just need to remove that code. The parameter isn't used anywhere in the code. I made a new PR #84 with the fix.