AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

multiple quadrotors in same scene

Open funwey opened this issue 8 years ago • 8 comments

I am working on a project that uses two or more quadrotors flying in chain-like formation, one following another.  My questions is How to create more quadrotors within the same level in AirSim? How to use the APIs to control each quadrotor separately?

funwey avatar Feb 18 '18 01:02 funwey

@funwey this may help you #92 #643 #230 refer this doc

akshaysw avatar Feb 19 '18 16:02 akshaysw

Instantiating multiple drones is as simple as dragging more flying pawns into the scene. As far as control goes, you'll have to set separate API endpoints up in your control code. See https://github.com/Microsoft/AirSim/pull/706

saihv avatar Feb 19 '18 21:02 saihv

Also https://github.com/Microsoft/AirSim/issues/664 for a sample control script.

saihv avatar Feb 19 '18 21:02 saihv

Hi! Thank you so much for enabling multi-agent support. Quick question: can we do multiple drones in CV mode?

kshitijgoel007 avatar May 04 '18 03:05 kshitijgoel007

Yes, I've had no trouble instantiating multiple drones and accessing their camera feeds in Computer Vision mode.

saihv avatar May 04 '18 04:05 saihv

@saihv I read the video posted on your website. It's great! I have a question: how do you adjust the camera so that it can see all the drones from the air?

zhuboshun2015 avatar May 05 '19 08:05 zhuboshun2015

For now there is no camera that automatically encapsulates every drone in the scene. You will have to use the manual camera by pressing M and follow the drones using your keyboard.

msb336 avatar Oct 02 '19 23:10 msb336

@saihv I read the video posted on your website. It's great! I have a question: how do you adjust the camera so that it can see all the drones from the air?

I just used the manual camera ('M') and adjusted the position to a viewpoint such that all the drones are visible.

saihv avatar Oct 09 '19 05:10 saihv