Skip to content

Waves fail if wind_speed is between 0.26 and 0.39 #172

Open
@ellen-thaum

Description

@ellen-thaum

Hi Rhys,

I stumbled across some odd behaviour...

Issue

If the wind_speed parameter is set to a number between approximately 0.26 and 0.39 the waves fail to spawn in Gazebo.

Minimal example

Set wind_speed to 0.3 in the 'WavesModel' and 'WavesVisual' plugins of 'gz-waves-models/world_models/waves/model.sdf':

      <wave>
        <!-- `fft` wave parameters -->
        <algorithm>fft</algorithm>
        <tile_size>256</tile_size>
        <cell_count>256</cell_count>
        <wind_speed>0.3</wind_speed>
        <wind_angle_deg>135</wind_angle_deg>
        <steepness>2</steepness>
      </wave>

Re-build and run waves.sdf:

colcon build --merge-install
gz sim -v4 waves.sdf

The waves don't appear and all objects fall:
Example of failure

Note: I removed the wam-v to avoid setting up ArduPilotPlugin in a minimal environment.

There were no unusual messages in the output, so I wouldn't know where to start looking for the problem.

Check

Resetting wind_speed to 5.0 and re-running gz sim waves.sdf, everything looks fine:
Example of success

Any idea what might be causing particular values of wind_speed to fail?

Thanks for the great package.

Regards,

Ellen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions