felixge / node-ar-drone

A node.js client for controlling Parrot AR Drone 2.0 quad-copters.
http://nodecopter.com/
MIT License
1.76k stars 427 forks source link

Multiple clients - multiple drones communicate through nodejs server #152

Open craciunraluca94 opened 7 years ago

craciunraluca94 commented 7 years ago

Hello,

I want to make a web application which manages AR drones. I want to have multiple clients which can make an account and get data from their drones in browser. Is this posible? Can I identify each drone unique or can i make an array of ardrone clients ( var client = arDrone.createClient(); ) ?

I tried to put ar-drone files on client side( with browserify) but it ended with "dgram.createSocket is not a function" .

I need some opinions. Thank you !!

felixge commented 7 years ago

Hi. In theory you can have an application that talks to multiple drones. That being said, they will all have to be on the same network in order for the application to be able to talk to them. Depending on your use cases for the application, that might be a problem.

You won't be able to use this library on the client side. The error message you got is because Browsers don't allow JS to do UDP networking, which is needed for talking to AR Drones.

craciunraluca94 commented 7 years ago

I see.Thanks. Maybe I'll make something like : clients have the whole app (server(+db) + client) on their PCs ( like local server). Sounds it weird ?