=====Running Opencv using ROS===== **Author:** Email: \\ **Date:** Last modified on <08/19/19> \\ **Keywords:** \\ \\ ===== Motivation and Audience ===== This tutorials motivation is to practice basic autonomous system using ROS. Readers of this tutorial assumes the reader has the following background and interests: ==== Parts List and Sources ==== To complete this tutorial, you'll need the following items \\ \\ * For Robot Operating System installation, use the following link. ROS-kinetic kame is used [[http://wiki.ros.org/ROS/Installation|ROS.org]] \\ you should download Mellodic \\ {{:melodic.png?400|}} \\ ==== Software Construction ==== To run this tutorial. The following should be completed \\ \\ *How to use Linux? I know you've been working on Windows process so far. But ROS optimizes Linux more than Windows. \\ you need to know how to build using Linux. [[http://emanual.robotis.com/docs/en/software/dynamixel/dynamixel_sdk/library_setup/cpp_linux/#cpp-linux|library set up C++ linux]] \\ \\ *ROS Tutorial [[http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment]] \\ \\ \\ **Step 1** \\ \\ ROS had already Opencv3.0, but there's some limitations. \\ So, you need to delete the exist github and intall a new Opencv 4.0.1 \\ you should be careful about this. \\ If you do something wrong, \\ you could end up being deleted everything. \\ Follow this [[https://webnautes.tistory.com/1186| Opencv Update]] \\ \\ If you succeed to follow this, it would show like this. \\ {{:opencv_update.png?300|}} \\ \\ \\ **Step 2** \\ Make your own package to run the example code of Opencv. \\ \\ **Step 3** \\ you put the link_directories and target_link_libraries in CMakeLists. \\ {{:opencvlibraries.png?500|}} \\ This is my cmakelist {{:opecv_cmake.docx|}} \\ \\ **Step 4** \\ Modify the example code to detect the object. \\ If you just bring your sourcefile based on Windows, you may add headerfile and change some codes. \\ Because this all steps are based on Linux. // // ==== Final Words ==== This tutorial's objective was to build the Opencv code on ROS. Once the concepts were conveyed the reader could combine Dynamixel and Opencv. \\ \\ For questions, clarifications, etc, Email: