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
114 stars 31 forks source link

Fix wave direction #26

Closed srmainwaring closed 2 years ago

srmainwaring commented 2 years ago

This PR fixes an issue where the requested wave direction is not set correctly because the FFT2 wave simulation and ocean tile are using different coordinate systems. The FFT uses a matrix coordinate system ('ij') whereas the OceanTile uses a cartesian ('xy') coordinate system - as a result the x and y axes were transposed.

Other changes: