Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/modules/simulation/gz_bridge/gz_env.sh.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#!/usr/bin/env bash

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=$HOME/.gz/sim/px4/server.config

# We load plugins specific for PX4 through our own server config file
# See https://gazebosim.org/api/sim/8/server_config.html
mkdir -p $HOME/.gz/sim/px4/
cp $PX4_GZ_SERVER_CONFIG $GZ_SIM_SERVER_CONFIG_PATH
60 changes: 60 additions & 0 deletions src/modules/simulation/gz_bridge/server.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<server_config>
<plugins>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-physics-system"
name="gz::sim::systems::Physics">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-user-commands-system"
name="gz::sim::systems::UserCommands">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-scene-broadcaster-system"
name="gz::sim::systems::SceneBroadcaster">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-contact-system"
name="gz::sim::systems::Contact">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-imu-system"
name="gz::sim::systems::Imu">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-air-pressure-system"
name="gz::sim::systems::AirPressure">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-air-speed-system"
name="gz::sim::systems::AirSpeed">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-apply-link-wrench-system"
name="gz::sim::systems::ApplyLinkWrench">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-navsat-system"
name="gz::sim::systems::NavSat">
</plugin>
<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>
</plugins>
</server_config>
Loading