dcmlr / groundgrid

Source code for the article "GroundGrid: LiDAR Point Cloud Ground Segmentation and Terrain Estimation"
https://ieeexplore.ieee.org/document/10319084
BSD 3-Clause "New" or "Revised" License
157 stars 16 forks source link

catkin build failed #7

Open XieWup opened 4 days ago

XieWup commented 4 days ago

Hi, after running the "catkin build" command, the terminal printed the following error:

WARNING: Your current environment's CMAKE_PREFIX_PATH is different from the cached CMAKE_PREFIX_PATH used the last time this workspace was built.

If you want to use a different CMAKE_PREFIX_PATH you should call catkin clean to remove all references to the previous CMAKE_PREFIX_PATH.

Cached CMAKE_PREFIX_PATH: /home/liangs/anjoy_ws/devel:/opt/ros/melodic Current CMAKE_PREFIX_PATH: /home/liangs/anjoy_ws/devel/.private/catkin_tools_prebuild:/home/liangs/anjoy_ws/devel:/opt/ros/melodic

[build] Found '5' packages in 0.0 seconds.
[build] Package table is up to date.
Starting >>> groundgrid


Errors << groundgrid:make /home/liangs/anjoy_ws/logs/groundgrid/build.make.001.log /home/liangs/anjoy_ws/src/groundgrid/src/GroundGridNodelet.cpp: In member function ‘void groundgrid::GroundGridNodelet::publish_grid_map_layer(const image_transport::Publisher&, const string&, int, const ros::Time&)’: /home/liangs/anjoy_ws/src/groundgrid/src/GroundGridNodelet.cpp:241:55: error: ‘COLORMAP_TWILIGHT’ is not a member of ‘cv’ cv::applyColorMap(img, color_img, cv::COLORMAP_TWILIGHT); ^~~~~ /home/liangs/anjoy_ws/src/groundgrid/src/GroundGridNodelet.cpp:241:55: note: suggested alternative: ‘COLORMAP_WINTER’ cv::applyColorMap(img, color_img, cv::COLORMAP_TWILIGHT); ^~~~~ COLORMAP_WINTER make[2]: [CMakeFiles/groundgrid_nodelet.dir/src/GroundGridNodelet.cpp.o] Error 1 make[1]: [CMakeFiles/groundgrid_nodelet.dir/all] Error 2 make: *** [all] Error 2 cd /home/liangs/anjoy_ws/build/groundgrid; catkin build --get-env groundgrid | catkin env -si /usr/bin/make --jobserver-fds=6,7 -j; cd - ............................................................................... Failed << groundgrid:make [ Exited with code 2 ]
Failed <<< groundgrid [ 13.5 seconds ]
[build] Summary: 0 of 1 packages succeeded.
[build] Ignored: 4 packages were skipped or are blacklisted.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 13.5 seconds total.

zhyzhyzhy123 commented 4 days ago

seems the wrong version of opencv?

XieWup commented 1 day ago

seems the wrong version of opencv?

OK . What version of OpenCV are you using

zhyzhyzhy123 commented 1 day ago

seems the wrong version of opencv?

OK . What version of OpenCV are you using

ros-noetic-vision-opencv 1.16.2-1focal.20230620.193649 and libopencv-dev 4.2.0+dfsg-5

if you needed, I can share my docker container.

XieWup commented 1 day ago

ros-noetic-vision-opencv 1.16.2-1focal.20230620.193649 and libopencv-dev 4.2.0+dfsg-5

if you needed, I can share my docker container.

Oh, Your environment is quite different from mine, maybe I should try another solution. Thank you very much

zhyzhyzhy123 commented 1 day ago

ros-noetic-vision-opencv 1.16.2-1focal.20230620.193649 and libopencv-dev 4.2.0+dfsg-5 if you needed, I can share my docker container.

Oh, Your environment is quite different from mine, maybe I should try another solution. Thank you very much

if you try it in melodic, I guess you need to change a lot of things XD.