User Tools

Site Tools


ardrone_follow_tag

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ardrone_follow_tag [2016/11/01 11:02] – created dwallaceardrone_follow_tag [2016/11/06 02:21] (current) dwallace
Line 1: Line 1:
 ====== Make the AR.Drone Follow the Image Tag ====== ====== Make the AR.Drone Follow the Image Tag ======
  
-=Introduction= +===== Introduction ====== 
-This tutorial you will learn how to do tag following using the ardrone. Before you continue this tutorial make sure you have gone through this tutorial        http://dasl.mem.drexel.edu/wiki/index.php/Tag_recognition_using_webcam + 
 +This tutorial you will learn how to do tag following using the ardrone. Before you continue this tutorial make sure you have gone through [[ardrone_tag_recognition|this tutorial]] 
 + 
 +==== Create the tag following file ====
  
-==Create the tag following file== 
 We already have the tag recognition code working and its all meant to identify image tags. This tutorial helps you to have tag recognition and also make the ardrone follow the tag. We already have the tag recognition code working and its all meant to identify image tags. This tutorial helps you to have tag recognition and also make the ardrone follow the tag.
- Step 1:Open up a terminal and enter: + 
- <pre>roscd nolan3d </pre>+Step 1:Open up a terminal and enter: 
 + 
 +  roscd nolan3d
  
 Step 2: Step 2:
 Go to the bin and open up the file nolan3d.py and replace the code with the following code: Go to the bin and open up the file nolan3d.py and replace the code with the following code:
  
-<source lang="python">+<code python nolan3d.py>
 #!/usr/bin/env python #!/usr/bin/env python
 import roslib; roslib.load_manifest('nolan') import roslib; roslib.load_manifest('nolan')
Line 131: Line 135:
  rospy.spin()  rospy.spin()
  
-</source>+</code> 
 +**Save and close the file.**
  
-Save and close the file.+==== Set the drone to see the image tag ====
  
-==Set the drone to see the image tag == 
 Make sure the ardrone is on and connected with your computer. Make sure the ardrone is on and connected with your computer.
 Enter the following lines each in a new terminal: Enter the following lines each in a new terminal:
-<pre> + 
-roscore +  roscore 
-rosrun ardrone_brown ardrone_driver +  rosrun ardrone_brown ardrone_driver
-</pre>+
  
 Enter the commands in the same terminal: Enter the commands in the same terminal:
  
-<pre>+  roscd ar_recog 
 +  cd bin 
 +  rosparam set aov .67 
 +  rosrun ar_recog ar_recog image:=/ardrone/image_raw
  
-roscd ar_recog +Enter the commands ,each in a new terminal :
-cd bin +
-rosparam set aov .67 +
-rosrun ar_recog ar_recog image:=/ardrone/image_raw+
  
-</pre>+  rosrun drone_teleop drone_teleop.py
  
-Enter the commands ,each in a new terminal : 
-<pre> 
-rosrun drone_teleop drone_teleop.py 
-</pre> 
 Hit the button "t" for take off and close this window Hit the button "t" for take off and close this window
  
 Open up a new terminal and enter: Open up a new terminal and enter:
  
-<pre> +  rosrun nolan3d nolan3d.py 
-rosrun nolan3d nolan3d.py + 
-</pre>+==== Following the tag ====
  
-==Following the tag== 
 Now the drone would be in air. Make sure you hold the image tag at a optimal distance(not too close). Please have a look at this video. Now the drone would be in air. Make sure you hold the image tag at a optimal distance(not too close). Please have a look at this video.
  
-==Video== +===== Video ===== 
-<html> + 
-<iframe width="853" height="480" src="http://www.youtube.com/embed/hh_w5F_MH8o" frameborder="0" allowfullscreen></iframe> +{{youtube>hh_w5F_MH8o?large}}\\ 
-</html>+
ardrone_follow_tag.txt · Last modified: 2016/11/06 02:21 by dwallace