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

gz: use server config file for loading world plugins #24441

Merged
merged 15 commits into from
Mar 6, 2025
Merged

Conversation

dakejahl
Copy link
Contributor

@dakejahl dakejahl commented Mar 3, 2025

See gazebo docs
https://gazebosim.org/api/sim/8/server_config.html

TLDR; the plugins can be loaded via a config file. This ensures we have all the plugins needed for PX4 without hardcoding them into the world files.

@dakejahl dakejahl requested a review from Jaeyoung-Lim March 4, 2025 01:25
@dakejahl
Copy link
Contributor Author

dakejahl commented Mar 4, 2025

@hamishwillee let's chat sometime about adding docs for gz plugins

Jaeyoung-Lim
Jaeyoung-Lim previously approved these changes Mar 4, 2025
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim left a comment

Choose a reason for hiding this comment

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

Thanks!

@dakejahl
Copy link
Contributor Author

dakejahl commented Mar 4, 2025

I added magnetometer callback to GZBridge. Tested functional.
PX4/PX4-gazebo-models#89

mbjd added a commit to PX4/PX4-gazebo-models that referenced this pull request Mar 4, 2025
just for developing the plugin. will change to new plugin infrastructure
once PX4/PX4-Autopilot#24441 merges.
mbjd added a commit that referenced this pull request Mar 4, 2025
atm it does nothing, but it builds and runs.

 - temporarily loaded by specifying in world sdf file.
   Tools/simulation/gz submodule update does that. Waiting for #24441

 - Build works but is very ugly. TODOs:
    - separate completely from OpticalFlowSystem
    - Add dependency on MovingPlatformController in a way that it works
      when setting the world with env var, not only when setting it with
      build target gz_$MODELNAME_$WORLDNAME (just always?)
@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-sync-q-a-mar-04-2025/44169/4

@DronecodeBot
Copy link

This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/px4-sync-q-a-mar-04-2025/44169/1

mbjd added a commit that referenced this pull request Mar 5, 2025
atm it does nothing, but it builds and runs.

 - temporarily loaded by specifying in world sdf file.
   Tools/simulation/gz submodule update does that. Waiting for #24441

 - Build works but is very ugly. TODOs:
    - separate completely from OpticalFlowSystem
    - Add dependency on MovingPlatformController in a way that it works
      when setting the world with env var, not only when setting it with
      build target gz_$MODELNAME_$WORLDNAME (just always?)
@dakejahl dakejahl enabled auto-merge (squash) March 6, 2025 00:37
@dakejahl dakejahl merged commit ea8bcd9 into main Mar 6, 2025
62 checks passed
@dakejahl dakejahl deleted the pr-gz_load_plugins branch March 6, 2025 00:37
mbjd added a commit to PX4/PX4-gazebo-models that referenced this pull request Mar 7, 2025
mbjd added a commit to PX4/PX4-gazebo-models that referenced this pull request Mar 7, 2025
just for developing the plugin. will change to new plugin infrastructure
once PX4/PX4-Autopilot#24441 merges.
mbjd added a commit to PX4/PX4-gazebo-models that referenced this pull request Mar 7, 2025
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.

5 participants