You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Errors << occupancy_grid_utils:make ~/catkin_ws/logs/occupancy_grid_utils/build.make.000.log
~/catkin_ws/src/occupancy_grid_utils/src/file.cpp: In function ‘void occupancy_grid_utils::loadMapFromFile(nav_msgs::GetMap::Response*, const char*, double, bool, double, double, double*)’:
~/catkin_ws/src/occupancy_grid_utils/src/file.cpp:91:27: error: ‘CV_BGR2GRAY’ was not declared in this scope
cvtColor(imgColor, img, CV_BGR2GRAY);
^~~~~~~~~~~
This is because OpenCV 3 and higher depreciated that constant.
The fix would be to change to cv::COLOR_BGR2GRAY
The text was updated successfully, but these errors were encountered:
Got the following error while building
This is because OpenCV 3 and higher depreciated that constant.
The fix would be to change to
cv::COLOR_BGR2GRAY
The text was updated successfully, but these errors were encountered: