Skip to content

Conversation

@beniaminopozzan
Copy link
Member

This PR adds the gz::sim::systems::WindEffects plugin to the windy.sdf world which properly simulates wind effects on links having <enable_wind>true</enable_wind>.

Gazebo wind.sdf example world has been used as template for setting the parameters for the plugin.

Initial wind speed is set to zero but it can be changed by publishing on the /world/windy/wind/ gz topic like this:

gz topic -t "/world/windy/wind/" -m gz.msgs.Wind  -p "linear_velocity: {x:10, y:0, z:0}, enable_wind: true"

which will apply 10m/s wind speed in gz x direction (PX4 EAST direction as gz uses ENU and PX4 uses NED).

The changes has been tested in on the x500 model using Gazebo Jetty:

wind_validation.mp4

On Gazebo Harmonic the world did not load correctly even if the gazebo wind.sdf example world for gazebo harmonic works just fine.

However, I don't see this as a blocking issue as currently the windy world has no effect and it is practically equivalent to the default world. Therefore no existing logic is broken with this PR. Users using windy world on GZ Harmonic can simply switch to the default one.


No FW model (rc_cessna, advanced_plane) has wind enabled in this PR: if enabled the plane does not manage to takeoff, further investigation is required for them.

@beniaminopozzan beniaminopozzan self-assigned this Jan 1, 2026
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although the drag looks a bit small, thanks for fixing this!

Why did you want to disable it for the other models?

<model name='standard_vtol'>
<pose>0 0 0.246 0 0 0</pose>
<link name='base_link'>
<enable_wind>false</enable_wind>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why disable these?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants