Skip to content

A plugin to AR-Webflight that allows you to view and control the quadcopter with an oculus rift.

Notifications You must be signed in to change notification settings

MyifanW/ARdrone-OculusFlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARdrone-OculusFlight

A plugin to AR-Webflight that allows you to view and control the quadcopter with an oculus rift.

Requirements:

  1. Node.js
  2. Ardone-webflight https://github.com/eschnou/ardrone-webflight
  3. Oculus rift, and set on extended desktop moded

==================== Instruction:

  1. Install ardone-webflight
  2. copy the content of this plugin folder to ardone-webflight's plugin folder
  3. open config.js in ardone-webflight, comment out video-stream, HUD and pilot, and then add: "video-stream-oculus" // Display the video stream suitable for oculus rift stream , "pilot-oculus" // Pilot the drone using the oculus , "hud-oculus" // HUD more suitable for oculus view - recommend to turn it off-
  • You can switch between oculus view and non oculus view by simply commenting out the plugin name
  1. Go to http://localhost:3000/
  2. Put your browser on the oculus screen, make sure it is horizonally correct
  3. Press f11 to go full screen and enjoy an oculus view of drone's camera.

======================

To enable head tracking movements:

  1. Download and run oculus-rest server (https://github.com/possan/oculus-rest) -there are better oculus servers out there, especially on windows ;)-
  2. node .

Controls are the same as the pilot plugin, only controls are overwritten by headmotions. Taking off, landing, rising and falling are the same as the pilot commands. Oculus's default position is set when you launch the program. That position is what the helicopter will believe is no actions. Forward is looking down at your feet. Back is looking up at the sky. look over your shoulders to rotate left and right. tilt your head quizzically left and right to strafe.

===================== Closure

If you can make this better, by all means do it. I'm really inexperienced in Node.js, and approximately ran my brain into the code until it worked. Oh, and I am not responsible for damages caused by using this plugin. It is difficult to control, and I suggest you test in a soft place and possibly tie a leash to the drone. This was first made for VThacks, 4/2014. Heavily referenced Oculus-drone by Diego Araos.

About

A plugin to AR-Webflight that allows you to view and control the quadcopter with an oculus rift.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published