eschnou / ardrone-webflight

Pilot the AR.Drone 2.0 directly from your browser. Extend the application with plugins to add features such as video recording, autonomous flight, face recognition, and more.
http://eschnou.github.io/ardrone-webflight/
MIT License
219 stars 112 forks source link

Add a simulator plugin #3

Open max-mapper opened 11 years ago

max-mapper commented 11 years ago

For example use voxel-drone for simulation: http://shama.github.io/voxel-drone/

:D

eschnou commented 11 years ago

Voxel-drone is indeed awesome and it would be really nice to have this easily hooked to a simulator.

However I don't really see how it could be used/integrated in this framework. We either need:

Let me know if you have ideas!

eschnou commented 11 years ago

Also note that there is an open-source ardrone simulator with a real physics engine and 3D video. However I have not been able to run it on my system yet: http://www.ros.org/wiki/tum_simulator

I wonder if the ar-drone lib works with this one.

max-mapper commented 11 years ago

I think voxel-drone is pretty flexible. Perhaps @shama has some ideas

Sent from my iPhone

On May 22, 2013, at 9:49 AM, Laurent Eschenauer notifications@github.com wrote:

Voxel-drone is indeed awesome and it would be really nice to have this easily hooked to a simulator.

However I don't really see how it could be used/integrated in this framework. We either need:

a low-level simulator on the backend side which stream tcp or png for video (there may be some flight simulator out there that could be re-used for this) have the simulator at the browser level, but would still need to be a first person view and I don't know if voxel-drone could be hacked into producing a first-person rendering. Let me know if you have ideas!

— Reply to this email directly or view it on GitHub.

shama commented 11 years ago

Yeah! A first person view or any view (follow cam, etc) is simple. Streaming png video has been difficult as it greatly slows down the simulation in the browser but there are some new alternative solutions I haven't explored yet.

The physics of the drone isn't very accurate but it can get closer. The benefit of using voxel.js is that the environment in which the drone is navigating can be quickly and easily be constructed.

Running a simulation from previous flight data is easy too. I think a neat feature would be if you could rewind/step through flight data and alter the conditions along each step. voxel.js worlds are getting easier to share as well. So it would be really neat if you could save and share a snapshots of the environment, flight data and altered timelines.

Integrating is easy to and only takes a few lines of code to embed a voxel.js world into the page. I'll be working on upgrading voxel-drone to the latest voxel-engine soon and we'll get a big performance boost. I'd be happy to help integrate it here. :)

reconbot commented 10 years ago

I started digging into this tonight, I'm still wrapping my head around the build steps to get voxel-drone working locally, but leveraging dnode I think I can hook it up. The "video" on the other hand.. that may be out of my scope.