PX4 / PX4-SITL_gazebo-classic

Set of plugins, models and worlds to use with OSRF Gazebo Simulator in SITL and HITL.
http://dev.px4.io/simulation-gazebo.html
378 stars 796 forks source link

Gust in wind_plugin #812

Closed Gryschock closed 3 years ago

Gryschock commented 3 years ago

Hi,

with px4 and ros1 we have a drone flighing in the world. For wind we just added the wind_plugin and konstant wind is working, but influence of the gust. GustVelocity is in m/s and Duration and Start in s? Screenshot from 2021-10-07 12-59-26 What do we have to consider for Gust?

Thx

Jaeyoung-Lim commented 3 years ago

@Gryschock Could you elaborate your question? You can configure the gust with the parameters that are exposed.

If you are curious how each parameters work, you can look at how the gust is being calculated in the gazebo_wind_plugin

Gryschock commented 3 years ago

@Jaeyoung-Lim SetupWindyWorld

I will try to describe, what I am expecting by this settings above in my world file. The wind is working, I see in the gazebo simulation an influence. And now I want to have a gust, after 60 sec. for 20 sec with direction in y with the same velocity like the const. wind (5 m/s). But I dont see any impact on my UGV, it is just hovering and compensates the const. wind in x-direction.

So I just dont understand why is normal wind working but the gust not? Have I forgotten something? Do I have to do something the wind_plugin? Or are the parameters wrong?

Hope this makes it clearer.

Thx

Alefunk commented 3 years ago

possibly related: #825

WangJintao1998 commented 2 years ago

@Jaeyoung-Lim SetupWindyWorld

I will try to describe, what I am expecting by this settings above in my world file. The wind is working, I see in the gazebo simulation an influence. And now I want to have a gust, after 60 sec. for 20 sec with direction in y with the same velocity like the const. wind (5 m/s). But I dont see any impact on my UGV, it is just hovering and compensates the const. wind in x-direction.

So I just dont understand why is normal wind working but the gust not? Have I forgotten something? Do I have to do something the wind_plugin? Or are the parameters wrong?

Hope this makes it clearer.

Thx

@Jaeyoung-Lim SetupWindyWorld

I will try to describe, what I am expecting by this settings above in my world file. The wind is working, I see in the gazebo simulation an influence. And now I want to have a gust, after 60 sec. for 20 sec with direction in y with the same velocity like the const. wind (5 m/s). But I dont see any impact on my UGV, it is just hovering and compensates the const. wind in x-direction.

So I just dont understand why is normal wind working but the gust not? Have I forgotten something? Do I have to do something the wind_plugin? Or are the parameters wrong?

Hope this makes it clearer.

Thx

Did you fix this problem? I have met the same problem.

Gryschock commented 2 years ago

Hey,

actually there is just a miswriting, but should be fixed in the newest version.