Skip to content

Commit

Permalink
Remove commented out sections in SDFs, remove GUI plugins from SDF be…
Browse files Browse the repository at this point in the history
…cause unused, redo links

Signed-off-by: Athena Z <[email protected]>
  • Loading branch information
athenaz2 committed Sep 7, 2024
1 parent f04599f commit 95530a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 98 deletions.
49 changes: 1 addition & 48 deletions test/worlds/camera_sensor_gi_enabled_false.sdf
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<world name="sensors">
<!-- <physics name="1ms" type="ignored">
<max_step_size>.001</max_step_size>
<real_time_factor>0</real_time_factor>
</physics> -->
<plugin
filename="gz-sim-physics-system"
name="gz::sim::systems::Physics">
Expand All @@ -30,55 +26,12 @@
filename="gz-sim-user-commands-system"
name="gz::sim::systems::UserCommands">
</plugin>
<!-- <plugin
filename="gz-sim-scene-broadcaster-system"
name="gz::sim::systems::SceneBroadcaster">
</plugin> -->

<scene>
<ambient>0 0 0</ambient>
<background>0.1 0.1 0.1</background>
</scene>

<gui>
<plugin filename="MinimalScene" name="3D View">
<engine>ogre2</engine>
<camera_pose>0 2.5 1.25 0 0 -1.57</camera_pose>
</plugin>

<plugin filename="ImageDisplay" name="Image Display">
<topic>camera</topic>
</plugin>

<!-- <plugin filename="GlobalIlluminationVct" name="Global Illumination Vct">
</plugin> -->

<plugin filename="GzSceneManager" name="Scene Manager"/>
<plugin filename="InteractiveViewControl" name="Interactive view control"/>

<plugin filename="TransformControl" name="Transform control">
<gz-gui>
<property key="resizable" type="bool">false</property>
<property key="x" type="double">0</property>
<property key="y" type="double">50</property>
<property key="width" type="double">250</property>
<property key="height" type="double">50</property>
<property key="state" type="string">docked</property>
<property key="showTitleBar" type="bool">true</property>
<property key="cardBackground" type="string">#777777</property>
</gz-gui>
</plugin>
<plugin filename="SelectEntities" name="Select Entities">
<gz-gui>
<property key="resizable" type="bool">false</property>
<property key="width" type="double">5</property>
<property key="height" type="double">5</property>
<property key="state" type="string">floating</property>
<property key="showTitleBar" type="bool">false</property>
</gz-gui>
</plugin>
</gui>


<!--lighting-->
<light type="point" name="ceiling_light">
<pose>0 -0.5 2.5 0 0 0</pose>
Expand Down
47 changes: 0 additions & 47 deletions test/worlds/camera_sensor_gi_enabled_true.sdf
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<world name="sensors">
<!-- <physics name="1ms" type="ignored">
<max_step_size>.001</max_step_size>
<real_time_factor>0</real_time_factor>
</physics> -->
<plugin
filename="gz-sim-physics-system"
name="gz::sim::systems::Physics">
Expand All @@ -30,55 +26,12 @@
filename="gz-sim-user-commands-system"
name="gz::sim::systems::UserCommands">
</plugin>
<!-- <plugin
filename="gz-sim-scene-broadcaster-system"
name="gz::sim::systems::SceneBroadcaster">
</plugin> -->

<scene>
<ambient>0 0 0</ambient>
<background>0.1 0.1 0.1</background>
</scene>

<gui>
<plugin filename="MinimalScene" name="3D View">
<engine>ogre2</engine>
<camera_pose>0 2.5 1.25 0 0 -1.57</camera_pose>
</plugin>

<plugin filename="ImageDisplay" name="Image Display">
<topic>camera</topic>
</plugin>

<!-- <plugin filename="GlobalIlluminationVct" name="Global Illumination Vct">
</plugin> -->

<plugin filename="GzSceneManager" name="Scene Manager"/>
<plugin filename="InteractiveViewControl" name="Interactive view control"/>

<plugin filename="TransformControl" name="Transform control">
<gz-gui>
<property key="resizable" type="bool">false</property>
<property key="x" type="double">0</property>
<property key="y" type="double">50</property>
<property key="width" type="double">250</property>
<property key="height" type="double">50</property>
<property key="state" type="string">docked</property>
<property key="showTitleBar" type="bool">true</property>
<property key="cardBackground" type="string">#777777</property>
</gz-gui>
</plugin>
<plugin filename="SelectEntities" name="Select Entities">
<gz-gui>
<property key="resizable" type="bool">false</property>
<property key="width" type="double">5</property>
<property key="height" type="double">5</property>
<property key="state" type="string">floating</property>
<property key="showTitleBar" type="bool">false</property>
</gz-gui>
</plugin>
</gui>

<!--lighting-->
<light type="point" name="ceiling_light">
<pose>0 -0.5 2.5 0 0 0</pose>
Expand Down
6 changes: 3 additions & 3 deletions tutorials/global_illumination.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ GI can be enabled for the GUI through a GUI plugin. Both VCT and CI VCT are supp
#### Example usage for VCT

1) Open the [global_illumination.sdf](
https:/gazebosim/gz-sim/blob/main/examples/worlds/global_illumination.sdf) world with
https:/gazebosim/gz-sim/tree/gz-sim8/examples/worlds/global_illumination.sdf) world with

```bash
gz sim global_illumination.sdf
Expand All @@ -76,7 +76,7 @@ gz sim global_illumination.sdf
#### Example usage for CI VCT

1) Open the [global_illumination.sdf](
https:/gazebosim/gz-sim/blob/main/examples/worlds/global_illumination.sdf) world using Vulkan with
https:/gazebosim/gz-sim/tree/gz-sim8/examples/worlds/global_illumination.sdf) world using Vulkan with

```bash
gz sim global_illumination.sdf --render-engine-api-backend vulkan
Expand All @@ -93,7 +93,7 @@ GI can be enabled for sensors through the `<global_illumination>` element in the
#### Example usage with VCT

We will demonstrate how to enable VCT for the sensor with the SDF file below. (The finished SDF file can be viewed [here](
https:/gazebosim/gz-sim/blob/main/examples/worlds/global_illumination.sdf).)
https:/gazebosim/gz-sim/tree/gz-sim8/examples/worlds/global_illumination.sdf).)

1) Save the below in an SDF file named `gi_demo.sdf`:

Expand Down

0 comments on commit 95530a6

Please sign in to comment.