Coder Social home page Coder Social logo

ardrone's Introduction

ArDrone

This is a basic tutorial to use a Parrot ArDrone 2.0 (from now Drone) with Pharo and LRP. These instructions require a basic understanding of Pharo.

Pharo image

To start using the Drone with Pharo and LRP, you need to download a clean image from the download page of Pharo.

Installation

  • After downloading the image of Pharo, you need to install the LRP in your image, do-it-and-go the following script in a playground window:

    Gofer it
      smalltalkhubUser: 'jfabry' project: 'LiveRobotProgramming';
      configuration;
      loadDevelopment
    
  • Now, with LRP installed, you have to download the Drone API to Pharo. The source can be merged to the current image using Monticello browser, the package is available in this link from smalltalkhub: http://smalltalkhub.com/#!/~CaroHernandez/ArDronePharo (you may need to reload this page a few times). If you don't know how to download code from smalltalkhub or how to use the Monticello browser, you can read chapter 8 from the book Pharo by Examples. The following image has the required package selected on the right:

monticello browser Drone-API

Remember to load ONLY the last version of the package!.

  • After loading the API, you must load the bridge to connect the LRP with the Drone API. The code is in smalltalkhub again, you have to load the following link with Monticello browser: http://smalltalkhub.com/#!/~CaroHernandez/LiveRobotics-ARDrone. And again you have to load the last version, like this image shows:

monticello browser bridge

  • Now that you have installed the Drone API, the LRP and the bridge between them, if you do a left click in the world of Pharo, you will see the following:

lrp in pharo world menu

Usage

You have completed all the installation steps. Now you can fly your Drone following the next short steps:

  • Turn on your Drone and then connect to the Drone's wifi.
  • Open Live Robot Programming in the Pharo world menu and you will see the following: LRP drone connect
  • Click the Connect Button (it's necessary be connected to the Drone's wifi).
  • If all is good, you will see a green circle and the battery level.
  • Now you can click in the button Take off and the Drone will start flying. It's very important to have enough space for the drone to fly, if the Drone fails or was already damaged it can be dangerous.
  • Also you have the LRP UI, in this UI you can create state machines for the Drone. In this link you have some examples to test. The tag follower examples don't work, because they were create to be used on a older version of the API.

And that's all!, now you can fly your Drone with Pharo and LRP, and also create and modify state machines for the Drone.

Important: The video feature is not implemented in this tutorial so you will not see the drone camera, but it's coming on a next version!

The ArDronePharo and LRPBridge-Ardrone were developed by Carolina Hernandez. You can find her thesis work in this link

ardrone's People

Contributors

rdelgadov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.