Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ***
```
Loading