-
Notifications
You must be signed in to change notification settings - Fork 14.6k
gz: use server config file for loading world plugins #24441
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d5d7321
gz: use server config file for loading world plugins
dakejahl 8a02f9d
submodule
dakejahl 35fb095
use server.config in tree
dakejahl f1d2113
newlines
dakejahl c93642e
format
dakejahl b60edf1
gzbridge: rename function
dakejahl 61cc95a
format
dakejahl 8f6e514
gzbridge: add magnetometer callback
dakejahl 8407eb5
change gz_find_package to find_package
dakejahl de76eaf
fix up directory structure and cmake to allow multiple plugins
dakejahl 029189c
newlines
dakejahl ca1bea2
add comment block explaining gz_env.sh
dakejahl d336f51
remove dupe readme
dakejahl b001a2e
remove SENS_EN_MAGSIM from all gz airframe files except spacecraft
dakejahl b3498dd
update gz submodule
dakejahl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule gz
updated
21 files
+26 −1 | models/advanced_plane/model.sdf | |
+25 −0 | models/lawnmower/model.sdf | |
+25 −0 | models/omnicopter/model.sdf | |
+25 −1 | models/px4vision/model.sdf | |
+25 −0 | models/quadtailsitter/model.sdf | |
+42 −17 | models/r1_rover/model.sdf | |
+25 −0 | models/rc_cessna/model.sdf | |
+25 −0 | models/rover_ackermann/model.sdf | |
+25 −0 | models/standard_vtol/model.sdf | |
+25 −0 | models/tiltrotor/model.sdf | |
+25 −0 | models/x500_base/model.sdf | |
+1 −1 | sdf_parsing/check_sdf.cc | |
+0 −148 | worlds/aruco.sdf | |
+0 −152 | worlds/baylands.sdf | |
+1 −150 | worlds/default.sdf | |
+0 −152 | worlds/forest.sdf | |
+0 −148 | worlds/frictionless.sdf | |
+0 −148 | worlds/lawn.sdf | |
+0 −148 | worlds/rover.sdf | |
+40 −200 | worlds/walls.sdf | |
+1 −153 | worlds/windy.sdf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
#!/usr/bin/env bash | ||
# ----------------------------------------------------------------------- | ||
# Gazebo Environment Configuration | ||
# ----------------------------------------------------------------------- | ||
# GZ_SIM_RESOURCE_PATH: Where Gazebo looks for models and worlds | ||
# GZ_SIM_SYSTEM_PLUGIN_PATH: Where Gazebo looks for plugin libraries | ||
# GZ_SIM_SERVER_CONFIG_PATH: Custom Gazebo server configuration file | ||
# | ||
# See Gazebo docs | ||
# https://gazebosim.org/api/sim/8/resources.html | ||
# https://gazebosim.org/api/sim/8/server_config.html | ||
# ----------------------------------------------------------------------- | ||
|
||
export PX4_GZ_MODELS=@PX4_SOURCE_DIR@/Tools/simulation/gz/models | ||
export PX4_GZ_WORLDS=@PX4_SOURCE_DIR@/Tools/simulation/gz/worlds | ||
export PX4_GZ_PLUGINS=@PX4_BINARY_DIR@/src/modules/simulation/gz_plugins | ||
export PX4_GZ_SERVER_CONFIG=@PX4_SOURCE_DIR@/src/modules/simulation/gz_bridge/server.config | ||
|
||
export GZ_SIM_RESOURCE_PATH=$GZ_SIM_RESOURCE_PATH:$PX4_GZ_MODELS:$PX4_GZ_WORLDS | ||
export GZ_SIM_SYSTEM_PLUGIN_PATH=$GZ_SIM_SYSTEM_PLUGIN_PATH:$PX4_GZ_PLUGINS | ||
export GZ_SIM_SERVER_CONFIG_PATH=$PX4_GZ_SERVER_CONFIG |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<server_config> | ||
<plugins> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-physics-system" name="gz::sim::systems::Physics"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-user-commands-system" name="gz::sim::systems::UserCommands"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-scene-broadcaster-system" name="gz::sim::systems::SceneBroadcaster"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-contact-system" name="gz::sim::systems::Contact"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-imu-system" name="gz::sim::systems::Imu"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-air-pressure-system" name="gz::sim::systems::AirPressure"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-air-speed-system" name="gz::sim::systems::AirSpeed"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-apply-link-wrench-system" name="gz::sim::systems::ApplyLinkWrench"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-navsat-system" name="gz::sim::systems::NavSat"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-magnetometer-system" name="gz::sim::systems::Magnetometer"/> | ||
<plugin entity_name="*" entity_type="world" filename="gz-sim-sensors-system" name="gz::sim::systems::Sensors"> | ||
<render_engine>ogre2</render_engine> | ||
</plugin> | ||
<plugin entity_name="*" entity_type="world" filename="libOpticalFlowSystem.so" name="custom::OpticalFlowSystem"/> | ||
<!-- <plugin entity_name="*" entity_type="world" filename="libTemplatePlugin.so" name="custom::TemplateSystem"/> --> | ||
</plugins> | ||
</server_config> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.