Skip to content

Commit

Permalink
Make ViewAngle work with MinimalScene (#1016)
Browse files Browse the repository at this point in the history
Signed-off-by: Louise Poubel <[email protected]>
  • Loading branch information
chapulina authored Sep 13, 2021
1 parent c163898 commit 899034b
Show file tree
Hide file tree
Showing 4 changed files with 271 additions and 28 deletions.
15 changes: 11 additions & 4 deletions examples/worlds/minimal_scene.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ Features:
* Select entities
* Transform controls
* Spawn entities through GUI
* View angles
Missing for parity with GzScene3D:
* Context menu
* Record video
* View angles
* View collisions, wireframe, transparent, CoM, etc
* Drag and drop from Fuel / meshes
* ...
Expand Down Expand Up @@ -132,8 +132,6 @@ Missing for parity with GzScene3D:
<play_pause>true</play_pause>
<step>true</step>
<start_paused>true</start_paused>
<service>/world/buoyancy/control</service>
<stats_topic>/world/buoyancy/stats</stats_topic>

</plugin>

Expand All @@ -158,7 +156,6 @@ Missing for parity with GzScene3D:
<real_time>true</real_time>
<real_time_factor>true</real_time_factor>
<iterations>true</iterations>
<topic>/world/buoyancy/stats</topic>
</plugin>

<plugin filename="Spawn" name="Spawn Entities">
Expand Down Expand Up @@ -250,6 +247,16 @@ Missing for parity with GzScene3D:
</ignition-gui>
</plugin>

<!-- View angle -->
<plugin filename="ViewAngle" name="View angle">
<ignition-gui>
<property type="string" key="state">docked</property>
</ignition-gui>

<!-- disable legacy features used to connect this plugin to GzScene3D -->
<legacy>false</legacy>
</plugin>

</gui>

<light type="directional" name="sun">
Expand Down
2 changes: 2 additions & 0 deletions src/gui/plugins/view_angle/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
gz_add_gui_plugin(ViewAngle
SOURCES ViewAngle.cc
QT_HEADERS ViewAngle.hh
PRIVATE_LINK_LIBS
${PROJECT_LIBRARY_TARGET_NAME}-rendering
)


Loading

0 comments on commit 899034b

Please sign in to comment.