ardrone_detect_blue
Differences
This shows you the differences between two versions of the page.
ardrone_detect_blue [2016/11/01 11:03] – created dwallace | ardrone_detect_blue [2016/11/06 02:28] (current) – dwallace | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Detecting Blue Color ====== | ====== Detecting Blue Color ====== | ||
- | =Introduction= | + | ===== Introduction ===== |
This tutorial you will learn to write an other simple program for filtering blue colored objects.In tutorial "How to make ROS and Opencv work together" | This tutorial you will learn to write an other simple program for filtering blue colored objects.In tutorial "How to make ROS and Opencv work together" | ||
- | ==Add an other source file== | ||
- | step 1:Go to folder named " | ||
- | |||
- | step 2: In the empty file and paste the following code and after that save the file. | ||
- | <source | + | ===== Add an other source |
+ | |||
+ | Step 1:Go to folder named " | ||
+ | |||
+ | Step 2: In the empty file and paste the following code and after that save the file. | ||
+ | <code c++ bluetrack.cpp> | ||
#include < | #include < | ||
#include < | #include < | ||
Line 100: | Line 102: | ||
return 0; | return 0; | ||
} | } | ||
- | </source> | + | </code> |
+ | |||
+ | ===== Make changes in the CMakeLists.txt ===== | ||
- | ==Make changes in the CMakeLists.txt== | ||
Step 1: | Step 1: | ||
Open up the file named " | Open up the file named " | ||
+ | ===== Test the code ===== | ||
- | ==Test the code== | ||
Step 1: | Step 1: | ||
While you are at the folder of the package | While you are at the folder of the package | ||
- | cmake . | + | |
- | < | + | |
- | After that enter <br> | + | |
- | rosmake | + | After that enter |
- | < | + | |
- | Make sure rosmake gets you " | + | |
+ | rosmake | ||
+ | Make sure rosmake gets you " | ||
Step 2: | Step 2: | ||
Turn on the ARDRONE and connect to it using WiFi.Now enter the following commands one after the other : | Turn on the ARDRONE and connect to it using WiFi.Now enter the following commands one after the other : | ||
- | <br> <br> | ||
- | <pre> | ||
- | roscore | ||
- | |||
- | rosrun ardrone_brown ardrone_driver | ||
- | |||
- | rosrun roscv roscv | ||
- | </ | ||
- | |||
- | < | ||
+ | roscore | ||
+ | rosrun ardrone_brown ardrone_driver | ||
+ | rosrun roscv roscv | ||
You should be getting two windows. | You should be getting two windows. | ||
- | [[image: | + | {{dylanw: |
- | [[image: | + | {{dylanw: |
ardrone_detect_blue.txt · Last modified: 2016/11/06 02:28 by dwallace