Add windshear plugin for dynamics soaring #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe problem solved by this pull request
This PR adds a gazebo windshear plugin, which can be used to test dynamic soaring
Previously the wind plugin was a world plugin so that the same wind velocity is broadcast to all models in the gazebo world. For our purpose, the
gazebo_wind_shear_plugin
is added as a model plugin so that the wind strength can depend on the model pose.Describe your solution
A specific SITL target with airframe
plane_dynamicsoaring
is created and can be run with the following command.A linear wind gradient is implemented so that the wind gradient stays the same regardless of the altitude. We can extend this plugin to include more complicated wind plugins in the future.
The plugin can be configured with the following parameters
FYI @MarvinHarms
Test data / coverage
Tested in SITL Gazebo (flightlog: log), flying loiter circles at the same location with different altitudes. You can see the wind estimates varying depending on the altitude.
To reproduce:
Additional context