Skip to content

Commit 76a4ff3

Browse files
authored
Set default camera angle in cart_pole example (#3159)
Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent 83a6331 commit 76a4ff3

File tree

1 file changed

+16
-0
lines changed
  • examples/scripts/reinforcement_learning/simple_cart_pole

1 file changed

+16
-0
lines changed

examples/scripts/reinforcement_learning/simple_cart_pole/cart_pole.sdf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@
2323
name="gz::sim::systems::SceneBroadcaster">
2424
</plugin>
2525

26+
<gui fullscreen="0">
27+
<plugin filename="MinimalScene" name="3D View">
28+
<gz-gui>
29+
<title>3D View</title>
30+
<property type="bool" key="showTitleBar">false</property>
31+
<property type="string" key="state">docked</property>
32+
</gz-gui>
33+
<engine>ogre2</engine>
34+
<scene>scene</scene>
35+
<ambient_light>0.4 0.4 0.4</ambient_light>
36+
<background_color>0.8 0.8 0.8</background_color>
37+
<!-- set default user camera pose -->
38+
<camera_pose>0 6 3 0 0 -1.57</camera_pose>
39+
</plugin>
40+
</gui>
41+
2642
<light type="directional" name="sun">
2743
<cast_shadows>true</cast_shadows>
2844
<pose>0 0 10 0 0 0</pose>

0 commit comments

Comments
 (0)