# Installing Open CV and following tutorial

**URL:** <https://forum.ubiquityrobotics.com/t/installing-open-cv-and-following-tutorial/755>\
**Category:** Uncategorized\
**Created:** [March 18, 2021, 12:32pm UTC](https://forum.ubiquityrobotics.com/t/installing-open-cv-and-following-tutorial/755 "2021-03-18T12:32:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IngeniousDoc](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/i/94ad74/32.png) [@IngeniousDoc](https://forum.ubiquityrobotics.com/u/IngeniousDoc)\
**Post date:** [March 18, 2021, 12:32pm UTC](https://forum.ubiquityrobotics.com/t/installing-open-cv-and-following-tutorial/755/1 "2021-03-18T12:32:36Z")

</div>

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

> **[DIY Autonomous Vehicle Image Segmentation - Wil Selby](https://wilselby.com/diy-autonomous-vehicle-project/computer-vision-applications/image-segmentation/)**
>
> This page describes the development of an HSV image segmentation algorithm to identify and estimate a lane position for a ROS-enabled DIY autonomous vehicle

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

> **[diy\_driverless\_car\_ROS/rover\_cv/lane\_detection at master ·...](https://github.com/wilselby/diy_driverless_car_ROS/tree/master/rover_cv/lane_detection)**
>
> ROS packages for DIY driverless car/autonomous vehicle development - wilselby/diy\_driverless\_car\_ROS

it gives me the error that it is not found

Along with that, when I clone the main repository:

> **[GitHub - wilselby/diy\_driverless\_car\_ROS: ROS packages for DIY driverless car/autonomous...](https://github.com/wilselby/diy_driverless_car_ROS)**
>
> ROS packages for DIY driverless car/autonomous vehicle development

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?

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [March 18, 2021, 10:16pm UTC](https://forum.ubiquityrobotics.com/t/installing-open-cv-and-following-tutorial/755/2 "2021-03-18T22:16:50Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![IngeniousDoc](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/i/94ad74/32.png) [@IngeniousDoc](https://forum.ubiquityrobotics.com/u/IngeniousDoc)\
**Post date:** [March 20, 2021, 10:18pm UTC](https://forum.ubiquityrobotics.com/t/installing-open-cv-and-following-tutorial/755/3 "2021-03-20T22:18:39Z")

</div>

when I ran this:

```auto
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
```
