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

Move world plugins to a config file #40

Merged
merged 1 commit into from
May 13, 2022
Merged

Move world plugins to a config file #40

merged 1 commit into from
May 13, 2022

Conversation

chapulina
Copy link
Contributor

@chapulina chapulina commented May 11, 2022

On #12 all world plugins were removed from the world files so we could load the defaults instead. But then on #33 we needed a non-default plugin, which meant we had to add all others.

This PR moves those plugins to a server.config file and points to that file using the IGN_GAZEBO_SERVER_CONFIG_PATH, so that becomes the new default set of plugins. This way, buoyancy will be enabled by default for all worlds.

It's still possible to override this config file by explicitly listing plugins inside each world file as needed.

There's more info about server configs on this tutorial.

Test it

Run

ign gazebo mbari_wec.sdf -r

The simulation should start and the buoy bounces up and down due to buoyancy.

@chapulina chapulina requested a review from quarkytale May 11, 2022 20:32
@chapulina chapulina self-assigned this May 12, 2022
Copy link
Contributor

@quarkytale quarkytale left a comment

Choose a reason for hiding this comment

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

Works for me!

@quarkytale quarkytale merged commit 7b1068b into main May 13, 2022
@quarkytale quarkytale deleted the chapulina/config branch May 13, 2022 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants