Skip to content

Commit

Permalink
tutorials: headless_rendering: Little fixes (#2607)
Browse files Browse the repository at this point in the history
Added information on EGL checking

---------
Signed-off-by: Martin Pecka <[email protected]>
  • Loading branch information
peci1 authored Sep 9, 2024
1 parent c4f95c4 commit 96775c8
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions tutorials/headless_rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ An easier solution is through the use of [EGL](https://www.khronos.org/egl), whi
Example usage:

```
gz sim -v 4 -s --headless-rendering sensors_demo.sdf
DISPLAY= gz sim -v 4 -s -r --headless-rendering sensors_demo.sdf
```

If you are using Gazebo as a library, then you can configure the
Expand Down Expand Up @@ -63,14 +63,23 @@ here](https://www.ogre3d.org/2021/02/06/ogre-2-2-5-cerberus-released-and-egl-hea
```
sudo reboot
```
11. [Install Gazebo](https://gazebosim.org/docs/latest/install).
12. Run a Gazebo world that uses OGRE2 with camera sensors using headless rendering. This will enable EGL.
15. [Install Gazebo](https://gazebosim.org/docs/latest/install).
16. Run a Gazebo world that uses OGRE2 with camera sensors using headless rendering. This will enable EGL.
```
gz sim -v 4 -s -r --headless-rendering sensors_demo.sdf
DISPLAY= gz sim -v 4 -s -r --headless-rendering sensors_demo.sdf
```
13. Check that simulation is producing sensor data by ssh'ing into the EC2
instance from a new terminal and echoing a sensor topic.
17. Check that simulation is producing sensor data by ssh'ing into the EC2
instance from a new terminal and testing the frequency of a sensor topic.
```
ssh -i SSH_PEM_FILE_USED_DURING_LAUNCH ubuntu@EC_INSTANCE_PUBLIC_IP
gz topic -et /thermal_camera
gz topic -ft /thermal_camera
```
18. To verify that the EGL backend was used, try the following command:
```
grep -R "EGL Subsystem" ~/.gz/rendering/ogre2.log
```
Its output should not be empty, e.g.:
```
*** Starting EGL Subsystem ***
*** Stopping EGL Subsystem ***
```

0 comments on commit 96775c8

Please sign in to comment.