srmainwaring / asv_wave_sim

This package contains plugins that support the simulation of waves and surface vessels in Gazebo.
GNU General Public License v3.0
122 stars 34 forks source link

Update example regular wave models #73

Closed srmainwaring closed 1 year ago

srmainwaring commented 1 year ago

This PR updates the example wave models provided for testing the linear wave-body model.

Changes

Change the naming convention of models to match the plugin params

Wave models are named regular_waves_Ts_Hm where T is the wave period in seconds and H the wave height in metres. Previously the second part of the name used the waved amplitude which is confusing as the plugin specifies the wave height in the override.

Add extra wave models

Provide examples for low and high frequencies.

Comment

Wave plugin configuration can't be set in the world file because the visual plugin for the waves must be embedded in the model itself (system level plugins can be set when using but visual plugins cannot).

Different wave configurations could be generate programatically via embedded ruby or Python, however this complicates the launch as scripts are required. For the demonstration it is cleaner to provide a fixed range of examples.