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
110 stars 29 forks source link

Wave Body: improve overrides - 8 #71

Closed srmainwaring closed 1 year ago

srmainwaring commented 1 year ago

This PR linearly interpolates the hydro coefficients given a regular wave frequency.

Previously the hydro coefficients lookup from hdf5 was hardcoded to a frequency 1.042 rad/s (wave period 6s).

The simulation should now use the correct coefficients from the hdf5 file when no overrides are provided in the sdf file.

Other minor fixes:

The interpolation uses Parsiad Azimzadeh's mlinterp library which is covered by the MIT license.