sudrag / line_follower_turtlebot

A repo created to simulate a line following turtlebot in Gazebo environment using ROS
MIT License
72 stars 35 forks source link

Use C++ API for FONT_HERSHEY_COMPLEX #2

Open banzo opened 3 years ago

banzo commented 3 years ago

Otherwise catkin_make triggers the following error:

catkin_ws/src/line_follower_turtlebot/src/linedetect.cpp:94:5: error: ‘CV_FONT_HERSHEY_COMPLEX’ was not declared in this scope
   94 |     CV_FONT_HERSHEY_COMPLEX, 1, CV_RGB(255, 0, 0));
      |     ^~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [line_follower_turtlebot/CMakeFiles/detect.dir/build.make:76: line_follower_turtlebot/CMakeFiles/detect.dir/src/linedetect.cpp.o] Error 1