Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tutorials: headless_rendering: Little fixes #2607

Merged
merged 3 commits into from
Sep 9, 2024
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