Installing Open CV and following tutorial

So I am trying to follow this tutorial for lane detection opencv using the raspicam.

However, when I try to clone the github repository for the lane detection:

it gives me the error that it is not found

Along with that, when I clone the main repository:

it would fail whenever I try to run catkin_make, it gives the following error:

    Could not find a package configuration file provided by "ackermann_msgs"
      with any of the following names:

    ackermann_msgsConfig.cmake
    ackermann_msgs-config.cmake

  Add the installation prefix of "ackermann_msgs" to CMAKE_PREFIX_PATH or set
  "ackermann_msgs_DIR" to a directory containing one of the above files.  If
  "ackermann_msgs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  diy_driverless_car_ROS/rbcar_twist2ack/CMakeLists.txt:7 (find_package)


-- Could not find the required component 'ackermann_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "ackermann_msgs"
  with any of the following names:

    ackermann_msgsConfig.cmake
    ackermann_msgs-config.cmake

  Add the installation prefix of "ackermann_msgs" to CMAKE_PREFIX_PATH or set
  "ackermann_msgs_DIR" to a directory containing one of the above files.  If
  "ackermann_msgs" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  diy_driverless_car_ROS/rbcar_twist2ack/CMakeLists.txt:7 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:2432: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

important things to note:

  • I have installed the vision_oepncv
  • I have also installed raspicam_node

So, do I need to follow any other refrences mentioned in the tutorial?

Well you’re missing ackermann msgs, that’s evident.

sudo apt update
sudo apt install ros-kinetic-ackermann-msgs

Probably best run try to have it autoclear all deps using:

cd ~/catkin_ws
rosdep update
rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y
1 Like

when I ran this:

rosdep install --from-paths src --ignore-src --rosdistro=kinetic -y

I get this error:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
lane_detection: Cannot locate rosdep definition for [OpenCV]
behavior_cloning: Cannot locate rosdep definition for [OpenCV]
camera_cal: Cannot locate rosdep definition for [OpenCV]

I do have opencv installed using

sudo apt install ros-kinetic-opencv3