AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

How to add wind?

Open realflight1 opened this issue 9 years ago • 9 comments

What would be the best / easiest way to apply wind to the simulated vehicle? Considering that I have the wind speed and direction.

realflight1 avatar Jun 15 '17 18:06 realflight1

Looking at FastPhysicsEngine it seems like one place to integrate wind would be in getDragWrench by modifying the actual vehicle velocity (vel_vertex). By modifying I mean adding the wind velocity vector in body frame to vel_vertex.

My knowledge of physics and aerodynamics is pretty basic, so I would appreciate any feedback. I used the following as a reference: Does wind speed things up or accelerate things?

realflight1 avatar Jun 16 '17 15:06 realflight1

You are almost there! Yes, you can just add wind vector to vehicle velocity to calculate final drag. However that's just one part of the story. Basically that simulates that if wind is towards vehicle then vehicle will feel resistance and reduce velocity. Other part of the wind effect is that wind can actually push vehicle. This is given by very similar equation. Currently getDragWrench() would ignore the velocity vectors that do not have component towards vehicle (because it only computes drag). I would say you need another method getWindWrench() which computes wind pressure using formula from above link.

sytelus avatar Jun 26 '17 12:06 sytelus

Has this feature ever been implemented? I need to simulate wind to make my controller more robust.

realdealneil avatar Apr 05 '18 12:04 realdealneil

Is there anyway can I add the wind to the environment and get the real-time resistance or energy consumption of drone from airsim?

Yuzz1020 avatar Jun 28 '18 07:06 Yuzz1020

Internal VSTF 7403

RVBldr avatar Nov 21 '18 17:11 RVBldr

Hi, Is this already implemented yet?

ardianumam avatar Apr 11 '19 10:04 ardianumam

Can I control the wind in real-time (i.e. dynamically)?

ghost avatar Nov 22 '19 00:11 ghost

Has the effect of wind on UAV been realized?

kalading2 avatar Apr 14 '20 07:04 kalading2

I've opened #2867 which adds Wind implementation according to the discussion here. Any testing or review, especially of the physics part would be great!

rajat2004 avatar Jul 21 '20 08:07 rajat2004