Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed test worlds for underwater simulation of DopplerVelocityLogSystem plugin #2346

Closed
wants to merge 1 commit into from

Conversation

sauk2
Copy link
Contributor

@sauk2 sauk2 commented Mar 28, 2024

🦟 Bug fix

Fixes #2344

Summary

Running the tests for DopplerVelocityLogSystem plugin results in a blank screen.

Command

  gz sim underwater_currents.sdf --verbose 2

Resulting blank screen
image

Solution

After adding the SceneBroadcaster plugin to the world SDF through the following lines

    <plugin
      filename="gz-sim-scene-broadcaster-system"
      name="gz::sim::systems::SceneBroadcaster">
    </plugin>

Running previous Command

  gz sim underwater_currents.sdf --verbose 2

Resulting simulation screen
image

Checklist

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Copy link
Contributor

@arjo129 arjo129 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont add scenebroadcaster to the tests. rather, create an example DVL world. Perhaps base it off the underwater currents or flat seabed worlds.

@sauk2
Copy link
Contributor Author

sauk2 commented Apr 17, 2024

@arjo129 I have pushed the changes in a separate PR #2373. Request you to take a look and provide feedback. If you prefer, you can close this PR.

@arjo129
Copy link
Contributor

arjo129 commented Apr 18, 2024

Thanks @sauk2! Closing in favor of #2373.

@arjo129 arjo129 closed this Apr 18, 2024
arjo129 pushed a commit that referenced this pull request Apr 18, 2024
# Summary
The examples/worlds directory does not contain any example world for DopplerVelocityLogSystem plugin. This PR adds the following:

Example world based on test/worlds/flat_seabed.sdf but with a SceneBroadcaster.
README.md in test/worlds directory to inform users not to use those world files.
More information can be found in Issue #2344 and PR #2346.

# Test it
This world can be tested (after building and sourcing the workspace) using the following command
```
  gz sim flat_seabed.sdf
```
---------

Signed-off-by: Saurabh Kamat <[email protected]>
@sauk2 sauk2 deleted the fix/underwater-tests branch April 18, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Unable to run test worlds for underwater simulation
2 participants