Skip to content

Commit

Permalink
Make Video recorder plugin work with MinimalScene (#900)
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: Louise Poubel <louise@openrobotics.org>

Co-authored-by: Louise Poubel <louise@openrobotics.org>
  • Loading branch information
ahcorde and chapulina authored Sep 22, 2021
1 parent 5250b39 commit 4be711c
Show file tree
Hide file tree
Showing 4 changed files with 391 additions and 38 deletions.
33 changes: 27 additions & 6 deletions examples/worlds/minimal_scene.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Features:
* Markers
* Tape measure
* Grid config
* Video recording
* Select entities
* Transform controls
* Spawn entities through GUI
Expand All @@ -20,7 +21,6 @@ Features:
Missing for parity with GzScene3D:
* Context menu
* Record video
* Drag and drop from Fuel / meshes
* ...
Expand Down Expand Up @@ -245,26 +245,47 @@ Missing for parity with GzScene3D:
</ignition-gui>
</plugin>

<!-- Video recorder -->
<plugin filename="VideoRecorder" name="VideoRecorder">
<ignition-gui>
<property key="resizable" type="bool">false</property>
<property key="x" type="double">300</property>
<property key="y" type="double">50</property>
<property key="width" type="double">50</property>
<property key="height" type="double">50</property>
<property key="state" type="string">floating</property>
<property key="showTitleBar" type="bool">false</property>
<property key="cardBackground" type="string">#777777</property>
</ignition-gui>

<record_video>
<use_sim_time>true</use_sim_time>
<lockstep>true</lockstep>
<bitrate>4000000</bitrate>
</record_video>

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

<!-- Inspector -->
<plugin filename="ComponentInspector" name="Component inspector">
<ignition-gui>
<property type="bool" key="showTitleBar">false</property>
<property type="string" key="state">docked</property>
<property type="string" key="state">docked_collapsed</property>
</ignition-gui>
</plugin>

<!-- Entity tree -->
<plugin filename="EntityTree" name="Entity tree">
<ignition-gui>
<property type="bool" key="showTitleBar">false</property>
<property type="string" key="state">docked</property>
<property type="string" key="state">docked_collapsed</property>
</ignition-gui>
</plugin>

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

<!-- disable legacy features used to connect this plugin to GzScene3D -->
Expand Down
8 changes: 6 additions & 2 deletions src/gui/plugins/video_recorder/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
gz_add_gui_plugin(VideoRecorder
SOURCES VideoRecorder.cc
QT_HEADERS VideoRecorder.hh
SOURCES
VideoRecorder.cc
QT_HEADERS
VideoRecorder.hh
PUBLIC_LINK_LIBS
ignition-rendering${IGN_RENDERING_VER}::ignition-rendering${IGN_RENDERING_VER}
)
Loading

0 comments on commit 4be711c

Please sign in to comment.