uzh-rpg / agile_flight

Developing and Comparing Vision-based Algorithms for Vision-based Agile Flight
MIT License
152 stars 55 forks source link

Toggle visibility of drones #59

Closed Song-z-h closed 2 years ago

Song-z-h commented 2 years ago

Hi, During the training of PPO, if we set num_envs to 100, There will be 100 drones in the same scene, each drone is visible to the others. That would be a problem if we train in a scene with more drones. How could we make the drone invisible to the other drones? (by modifying the texture or something)

Greetings.

yun-long commented 2 years ago

hi,

you can reduce the quadrotor size

https://github.com/uzh-rpg/flightmare/blob/092ff357139b2e98fc92bcdee50f38f85b55246d/flightlib/src/envs/vision_env/vision_env.cpp#L40

e.g., add this

quadptr->setSize(Vector(0.01, 0.01, 0.01));

Glanfaloth commented 1 year ago

After setting the quadrotor size if you get "error: missing template arguments" when running make -j10 try this:

Vector<3> quad_size = Vector<3>(0.01, 0.01, 0.01);
quad_ptr_->setSize(quad_size);