Search This Blog

Thursday, June 30, 2016

AR Drone 2.0 Automated Panaramos provides a really cool npm ar drone ponarama software.  Now once you have installed it, you can start taking panoramas!  All you need to do is to connect to your AR-drone on your computer and type "node panorama -h5"(The five would cause the drone to take the panorama at five meters in the air; you can change the height settings).  The terminal will now start displaying messages related to the calibration and picture taking process (such as which picture it is on).  During the flight, all the photos will be taken as a .png and be stored in the bin folder of the panorama folder.  In addition, a flight log will be created under the name of navdata-date.txt.  Then, in CMD, type:

var arDrone = require('ar-drone');
var client = arDrone.createClient();;

Since the drone takes the panoramas in separate pieces, you will now need to stitch the photos together with a panorama stitching software.  You can do it with Photoshop, here, or with a great free program made for panorama stitching called Hugins (you can download it here).
Some extra things you can do is by editing the original javascript file (it is located in ardrone-panorama\lib and is called panorama.js).  The original author of this file, Laurent Eschenauer, left a lot of instructions and comments on how the program was coded; this would allow you to change the settings of the automated panorama.  One thing I changed was the amount of photos it took for the panorama.  You can also do this by opening panorama.js in notepad and changing the number in the line in  "this._pictures = ||."
I will post more tutorials about the AR-Drone and node.js later on... Stay Tuned!!!☺

No comments:

Post a Comment