Skip to content

Commit e55d433

Browse files
authored
Copy over web_visualization tutorial from Dome (#600)
Signed-off-by: Addisu Z. Taddese <[email protected]>
1 parent c7ae81a commit e55d433

File tree

5 files changed

+350
-0
lines changed

5 files changed

+350
-0
lines changed

fortress/web_visualization.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Overview
2+
3+
Web visualization supports rendering and interacting with running Ignition
4+
Gazebo simulations. You may find web visualization useful
5+
when interacting with remote or headless Gazebo Sim simulations. No
6+
additionally dependencies, other than a browser and internet connection, are
7+
required.
8+
9+
## How to use web visualization
10+
11+
The following steps will guide you through the process of running Ignition
12+
Gazebo with a websocket server and connecting to the websocket for
13+
visualization.
14+
15+
1. Start an Gazebo Sim instance as usual. We will use the `fuel.sdf`
16+
world and run it headless.
17+
```
18+
ign gazebo -v 4 -s -r fuel.sdf
19+
```
20+
21+
1. Create an Ignition Launch file with the websocket server plugin.
22+
```
23+
echo "<?xml version='1.0'?>
24+
<ignition version='1.0'>
25+
<plugin name='ignition::launch::WebsocketServer'
26+
filename='ignition-launch-websocket-server'>
27+
<port>9002</port>
28+
</plugin>
29+
</ignition>" > websocket.ign
30+
```
31+
32+
1. Run the websocket server using
33+
```
34+
ign launch -v 4 websocket.ign
35+
```
36+
37+
1. Visualize the simulation by going to
38+
[https://app.gazebosim.org/visualization](https://app.gazebosim.org/visualization) and pressing the Connect button.
39+
40+
1. It may take a few seconds for the scene to load. Your browser needs to
41+
fetch all of the models in the world.
42+
43+
## Websocket server customization
44+
45+
The following parameters are available in the websocket server plugin.
46+
47+
* `<admin_authorization_key>` : If this is set, then a connection must provide the matching key using an "auth" call on the websocket. If the `<authorization_key>` is set, then the connection can provide that key.
48+
* `<authorization_key>` : If this is set, then a connection must provide the
49+
matching key using an "auth" call on the websocket. If the `<admin_authorization_key>` is set, then the connection can provide that key.
50+
* `<max_connections>` : An integer that is the maximum number of simultaneous connections.
51+
* `<port>` : An integer that is websocket port.
52+
* `<publication_hz>` : An integer that is the maximum publication hertz rate.
53+
54+
## Code and Support
55+
56+
1. The code for the web application,
57+
[app.gazebosim.org](https://app.gazebosim.org), lives at
58+
[https://gitlab.com/ignitionrobotics/web/app](https://gitlab.com/ignitionrobotics/web/app).
59+
60+
1. The javascript library used to render the 3D scene lives at
61+
[https://gitlab.com/ignitionrobotics/web/gz3d](https://gitlab.com/ignitionrobotics/web/gz3d).
62+
63+
1. Is you notice an issue with web visualization, then please
64+
file a ticket at
65+
[https://github.com/gazebo-web/gzweb/issues](https://github.com/gazebo-web/gzweb/issues).
66+
67+
## Troubleshooting
68+
69+
1. If you are running Gazebo Sim in a docker container, make sure to
70+
use the [--network host](https://docs.docker.com/network/network-tutorial-host/) Docker commandline option. Without `--network host` the web application won't be able to connect to the websocket server.

garden/web_visualization.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Overview
2+
3+
Web visualization supports rendering and interacting with running
4+
Gazebo simulations. You may find web visualization useful
5+
when interacting with remote or headless Gazebo Sim simulations. No
6+
additionally dependencies, other than a browser and internet connection, are
7+
required.
8+
9+
## How to use web visualization
10+
11+
The following steps will guide you through the process of running
12+
Gazebo with a websocket server and connecting to the websocket for
13+
visualization.
14+
15+
1. Start an Gazebo Sim instance as usual. We will use the `fuel.sdf`
16+
world and run it headless.
17+
```
18+
gz sim -v 4 -s -r fuel.sdf
19+
```
20+
21+
1. Create an Gazebo Launch file with the websocket server plugin.
22+
```
23+
echo "<?xml version='1.0'?>
24+
<gz version='1.0'>
25+
<plugin name='gz::launch::WebsocketServer'
26+
filename='gz-launch-websocket-server'>
27+
<port>9002</port>
28+
</plugin>
29+
</gz>" > websocket.gzlaunch
30+
```
31+
32+
1. Run the websocket server using
33+
```
34+
gz launch -v 4 websocket.gzlaunch
35+
```
36+
37+
1. Visualize the simulation by going to
38+
[https://app.gazebosim.org/visualization](https://app.gazebosim.org/visualization) and pressing the Connect button.
39+
40+
1. It may take a few seconds for the scene to load. Your browser needs to
41+
fetch all of the models in the world.
42+
43+
## Websocket server customization
44+
45+
The following parameters are available in the websocket server plugin.
46+
47+
* `<admin_authorization_key>` : If this is set, then a connection must provide the matching key using an "auth" call on the websocket. If the `<authorization_key>` is set, then the connection can provide that key.
48+
* `<authorization_key>` : If this is set, then a connection must provide the
49+
matching key using an "auth" call on the websocket. If the `<admin_authorization_key>` is set, then the connection can provide that key.
50+
* `<max_connections>` : An integer that is the maximum number of simultaneous connections.
51+
* `<port>` : An integer that is websocket port.
52+
* `<publication_hz>` : An integer that is the maximum publication hertz rate.
53+
54+
## Code and Support
55+
56+
1. The code for the web application,
57+
[app.gazebosim.org](https://app.gazebosim.org), lives at
58+
[https://github.com/gazebo-web/gazebosim-app](https://github.com/gazebo-web/gazebosim-app).
59+
60+
1. The javascript library used to render the 3D scene lives at
61+
[https://github.com/gazebo-web/gzweb](https://github.com/gazebo-web/gzweb).
62+
63+
1. Is you notice an issue with web visualization, then please
64+
file a ticket at
65+
[https://github.com/gazebo-web/gzweb/issues](https://github.com/gazebo-web/gzweb/issues).
66+
67+
## Troubleshooting
68+
69+
1. If you are running Gazebo Sim in a docker container, make sure to
70+
use the [--network host](https://docs.docker.com/network/network-tutorial-host/) Docker commandline option. Without `--network host` the web application won't be able to connect to the websocket server.

harmonic/web_visualization.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Overview
2+
3+
Web visualization supports rendering and interacting with running
4+
Gazebo simulations. You may find web visualization useful
5+
when interacting with remote or headless Gazebo Sim simulations. No
6+
additionally dependencies, other than a browser and internet connection, are
7+
required.
8+
9+
## How to use web visualization
10+
11+
The following steps will guide you through the process of running
12+
Gazebo with a websocket server and connecting to the websocket for
13+
visualization.
14+
15+
1. Start an Gazebo Sim instance as usual. We will use the `fuel.sdf`
16+
world and run it headless.
17+
```
18+
gz sim -v 4 -s -r fuel.sdf
19+
```
20+
21+
1. Create an Gazebo Launch file with the websocket server plugin.
22+
```
23+
echo "<?xml version='1.0'?>
24+
<gz version='1.0'>
25+
<plugin name='gz::launch::WebsocketServer'
26+
filename='gz-launch-websocket-server'>
27+
<port>9002</port>
28+
</plugin>
29+
</gz>" > websocket.gzlaunch
30+
```
31+
32+
1. Run the websocket server using
33+
```
34+
gz launch -v 4 websocket.gzlaunch
35+
```
36+
37+
1. Visualize the simulation by going to
38+
[https://app.gazebosim.org/visualization](https://app.gazebosim.org/visualization) and pressing the Connect button.
39+
40+
1. It may take a few seconds for the scene to load. Your browser needs to
41+
fetch all of the models in the world.
42+
43+
## Websocket server customization
44+
45+
The following parameters are available in the websocket server plugin.
46+
47+
* `<admin_authorization_key>` : If this is set, then a connection must provide the matching key using an "auth" call on the websocket. If the `<authorization_key>` is set, then the connection can provide that key.
48+
* `<authorization_key>` : If this is set, then a connection must provide the
49+
matching key using an "auth" call on the websocket. If the `<admin_authorization_key>` is set, then the connection can provide that key.
50+
* `<max_connections>` : An integer that is the maximum number of simultaneous connections.
51+
* `<port>` : An integer that is websocket port.
52+
* `<publication_hz>` : An integer that is the maximum publication hertz rate.
53+
54+
## Code and Support
55+
56+
1. The code for the web application,
57+
[app.gazebosim.org](https://app.gazebosim.org), lives at
58+
[https://github.com/gazebo-web/gazebosim-app](https://github.com/gazebo-web/gazebosim-app).
59+
60+
1. The javascript library used to render the 3D scene lives at
61+
[https://github.com/gazebo-web/gzweb](https://github.com/gazebo-web/gzweb).
62+
63+
1. Is you notice an issue with web visualization, then please
64+
file a ticket at
65+
[https://github.com/gazebo-web/gzweb/issues](https://github.com/gazebo-web/gzweb/issues).
66+
67+
## Troubleshooting
68+
69+
1. If you are running Gazebo Sim in a docker container, make sure to
70+
use the [--network host](https://docs.docker.com/network/network-tutorial-host/) Docker commandline option. Without `--network host` the web application won't be able to connect to the websocket server.

ionic/web_visualization.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Overview
2+
3+
Web visualization supports rendering and interacting with running
4+
Gazebo simulations. You may find web visualization useful
5+
when interacting with remote or headless Gazebo Sim simulations. No
6+
additionally dependencies, other than a browser and internet connection, are
7+
required.
8+
9+
## How to use web visualization
10+
11+
The following steps will guide you through the process of running
12+
Gazebo with a websocket server and connecting to the websocket for
13+
visualization.
14+
15+
1. Start an Gazebo Sim instance as usual. We will use the `fuel.sdf`
16+
world and run it headless.
17+
```
18+
gz sim -v 4 -s -r fuel.sdf
19+
```
20+
21+
1. Create an Gazebo Launch file with the websocket server plugin.
22+
```
23+
echo "<?xml version='1.0'?>
24+
<gz version='1.0'>
25+
<plugin name='gz::launch::WebsocketServer'
26+
filename='gz-launch-websocket-server'>
27+
<port>9002</port>
28+
</plugin>
29+
</gz>" > websocket.gzlaunch
30+
```
31+
32+
1. Run the websocket server using
33+
```
34+
gz launch -v 4 websocket.gzlaunch
35+
```
36+
37+
1. Visualize the simulation by going to
38+
[https://app.gazebosim.org/visualization](https://app.gazebosim.org/visualization) and pressing the Connect button.
39+
40+
1. It may take a few seconds for the scene to load. Your browser needs to
41+
fetch all of the models in the world.
42+
43+
## Websocket server customization
44+
45+
The following parameters are available in the websocket server plugin.
46+
47+
* `<admin_authorization_key>` : If this is set, then a connection must provide the matching key using an "auth" call on the websocket. If the `<authorization_key>` is set, then the connection can provide that key.
48+
* `<authorization_key>` : If this is set, then a connection must provide the
49+
matching key using an "auth" call on the websocket. If the `<admin_authorization_key>` is set, then the connection can provide that key.
50+
* `<max_connections>` : An integer that is the maximum number of simultaneous connections.
51+
* `<port>` : An integer that is websocket port.
52+
* `<publication_hz>` : An integer that is the maximum publication hertz rate.
53+
54+
## Code and Support
55+
56+
1. The code for the web application,
57+
[app.gazebosim.org](https://app.gazebosim.org), lives at
58+
[https://github.com/gazebo-web/gazebosim-app](https://github.com/gazebo-web/gazebosim-app).
59+
60+
1. The javascript library used to render the 3D scene lives at
61+
[https://github.com/gazebo-web/gzweb](https://github.com/gazebo-web/gzweb).
62+
63+
1. Is you notice an issue with web visualization, then please
64+
file a ticket at
65+
[https://github.com/gazebo-web/gzweb/issues](https://github.com/gazebo-web/gzweb/issues).
66+
67+
## Troubleshooting
68+
69+
1. If you are running Gazebo Sim in a docker container, make sure to
70+
use the [--network host](https://docs.docker.com/network/network-tutorial-host/) Docker commandline option. Without `--network host` the web application won't be able to connect to the websocket server.

jetty/web_visualization.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Overview
2+
3+
Web visualization supports rendering and interacting with running
4+
Gazebo simulations. You may find web visualization useful
5+
when interacting with remote or headless Gazebo Sim simulations. No
6+
additionally dependencies, other than a browser and internet connection, are
7+
required.
8+
9+
## How to use web visualization
10+
11+
The following steps will guide you through the process of running
12+
Gazebo with a websocket server and connecting to the websocket for
13+
visualization.
14+
15+
1. Start an Gazebo Sim instance as usual. We will use the `fuel.sdf`
16+
world and run it headless.
17+
```
18+
gz sim -v 4 -s -r fuel.sdf
19+
```
20+
21+
1. Create an Gazebo Launch file with the websocket server plugin.
22+
```
23+
echo "<?xml version='1.0'?>
24+
<gz version='1.0'>
25+
<plugin name='gz::launch::WebsocketServer'
26+
filename='gz-launch-websocket-server'>
27+
<port>9002</port>
28+
</plugin>
29+
</gz>" > websocket.gzlaunch
30+
```
31+
32+
1. Run the websocket server using
33+
```
34+
gz launch -v 4 websocket.gzlaunch
35+
```
36+
37+
1. Visualize the simulation by going to
38+
[https://app.gazebosim.org/visualization](https://app.gazebosim.org/visualization) and pressing the Connect button.
39+
40+
1. It may take a few seconds for the scene to load. Your browser needs to
41+
fetch all of the models in the world.
42+
43+
## Websocket server customization
44+
45+
The following parameters are available in the websocket server plugin.
46+
47+
* `<admin_authorization_key>` : If this is set, then a connection must provide the matching key using an "auth" call on the websocket. If the `<authorization_key>` is set, then the connection can provide that key.
48+
* `<authorization_key>` : If this is set, then a connection must provide the
49+
matching key using an "auth" call on the websocket. If the `<admin_authorization_key>` is set, then the connection can provide that key.
50+
* `<max_connections>` : An integer that is the maximum number of simultaneous connections.
51+
* `<port>` : An integer that is websocket port.
52+
* `<publication_hz>` : An integer that is the maximum publication hertz rate.
53+
54+
## Code and Support
55+
56+
1. The code for the web application,
57+
[app.gazebosim.org](https://app.gazebosim.org), lives at
58+
[https://github.com/gazebo-web/gazebosim-app](https://github.com/gazebo-web/gazebosim-app).
59+
60+
1. The javascript library used to render the 3D scene lives at
61+
[https://github.com/gazebo-web/gzweb](https://github.com/gazebo-web/gzweb).
62+
63+
1. Is you notice an issue with web visualization, then please
64+
file a ticket at
65+
[https://github.com/gazebo-web/gzweb/issues](https://github.com/gazebo-web/gzweb/issues).
66+
67+
## Troubleshooting
68+
69+
1. If you are running Gazebo Sim in a docker container, make sure to
70+
use the [--network host](https://docs.docker.com/network/network-tutorial-host/) Docker commandline option. Without `--network host` the web application won't be able to connect to the websocket server.

0 commit comments

Comments
 (0)