Giter Site home page Giter Site logo

oculus-drone's Introduction

Oculus-Drone

Web interface to control the AR Drone 2.0 with an Oculus Rift. This is based on another of my projects: ardrone-swarm.

Watch a demo here:

OCULUS DRONE VIDEO

How to use?

  1. npm install
  2. bower install
  3. coffee -c -o . .
  4. Download and run oculus-rest server (https://github.com/possan/oculus-rest)
  5. node .
  6. Go to your browser http://localhost:3000/
  7. Click on the drone that appears on screen, in order to activate it.
  8. When ready press 'o' key, to activate Oculus Rift viewer.
  9. Activate full screen on your browser
  10. To take off the drone, press 'ENTER'
  11. Move your head to control the drone
  12. To land the drone, press 'ESC'
License: MIT

Copyright (C) 2014 Diego Araos [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

oculus-drone's People

Contributors

daraosn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oculus-drone's Issues

Images do not render

The video feed seems to be updating in Chrome. I get continuously updating image elements at:

xpath: //*[@id="drones"]/div/div[2]/img

html:

However, the video images render as the broken-image icon in Chrome (v34)

third person view

just to echo this old "feature" request from twitter: make the drone follow the operator around.

bower: deprecated component.json, wrong path, and possibly out of date components

'bower install' reports:

bower deprecated You are using the deprecated component.json file

components are installed by default to 'bower_components' instead of '\components'

'bower list' reports:
drone-swarm#0.1.0 C:\projects\github\oculus-drone
├── bootstrap.css#2.1.1 (latest is 2.3.2)
└── jquery#1.7.2 (latest is 2.1.1-rc2)

Experence so-far and lessons learnt

Hi,

It's my birthday today so as I gift to myself and made sometime in my schedule to try this fantastic project out.

Environment
Windows 8.1 / Dell Precision m9600 / Oculus v1 SDK / AD Drone 2 v 2.4.7 firmware.

  1. Install - Easy Enough if you know a little about node.js.
  2. Use Chrome or Firefox / IE won't work (I'm guessing this is down to no support for getuserMedia is the issue here).

Start Procedure:

  1. Power Up and Connect PC to AD Drone Wireless.
  2. Start Oculus-Rest
  3. Start Oculus-Drone
  4. Press F11 (Full Screen), O enable Oculus View.

At this point things get interesting.

  1. (Rarely) Sometimes I can find there's no data being read from the Oculus (no green dot), and no output in the oculus-rest output window.
  2. More Often - See the Drone video feed through Oculus and movement being detected, Drone refuses to accept start command, checking the output window of Oculus-Drone looks like some sort of race condition with output x,y,x all returning 0 and ploughing up the screen, other times sensible looking data appearing but still no start by pressing enter.

I've only actually got it to take off a couple of times in an hour so far. I'm wondering if my start-up procedure was different. Tried removing my flight recorder and doing a reset on the drone made no different that I could tell.

Anyway I hope this helps other get going and I'm going to study the code later today to see if I can contribute (JavaScript being my second or third language) and check if I'm running the latest firmware on the drone :-)

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.