Closed srmainwaring closed 9 months ago
@srmainwaring Are you still able to control the WAM-V using the thrusters this way? The SimpleHydrodynamics also seems to compute the ship dynamics.
Are you still able to control the WAM-V using the thrusters this way? The SimpleHydrodynamics also seems to compute the ship dynamics.
If the gz-sim
thruster plugin is used, control is independent of the model for waves and the choice of hydrodynamics.
The example above uses plugins from asv_wave_sim to control the wave physics and visuals and another for the hydrodynamics. These plugins include non-linear restoring forces not captured in SimpleHydrodynamics, which uses a model that assumes small displacements from a mean position. SimpleHydrodynamics should be disabled if using the asv_wave_sim plugins.
Closing - no further action required at this stage.
@bsb808, @caguero and @j-herman, as a follow up from our call about wave models I've created a demo using the sydney_regatta world. I forked the gazebosim branch and swapped the wave models out for the ones in asv_wave_sim.
https://user-images.githubusercontent.com/24916364/189438132-ccc66f38-fa33-42eb-8257-58629201d1d4.mov
The example uses the non-PBS shader version of the wave renderer. The ocean is a 21 x 21 grid of tiles, each 100m x 100m containing 256 x 256 cells for the FFT wave generation.
Changes
There are a few modifications:
Set up and run
~/waves_ws/src/asv_wave_sim/gz-waves/src/gui/plugins/waves_control/build
as it's not fully integrated into the top level build files.Then run the world directly:
WAM-V
To enable the plugins for the WAM-V requires two additional changes:
Run using the launch file:
The wave spectrum settings can be updated at runtime (mean height and direction).
https://user-images.githubusercontent.com/24916364/189539746-a3f480f7-53e0-4090-bca8-6784d87da2ac.mov