You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/automobile/scenario-creation-tutorial.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
This small tutorial explains step-by-step how to create a scenario inspired from a real world map and then add traffic using SUMO.
4
4
This tutorial was written for `linux` and `macOS`, but the same can be achieved on `Windows` converting the following commands to `DOS`.
5
5
6
+
Please refer to [these instructions](sumo-interface.md#dependencies) to install SUMO.
7
+
6
8
### Creation of the Webots Project Directory
7
9
8
10
```sh
@@ -67,7 +69,7 @@ Finally, you may add a [Fog](../reference/fog.md) node to make your world look n
67
69
On Linux, the path to the SUMO binaries and to the Webots libraries directories should be added in your LD\_LIBRARY\_PATH environment variable in order to run the SUMO binaries:
Copy file name to clipboardExpand all lines: docs/automobile/sumo-exporter.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,13 @@
1
1
# SUMO Exporter
2
2
3
-
In order to be able to simulate traffic in your simulation, it is required to have a SUMO network file (`sumo.net.xml`).
3
+
In order to be able to simulate traffic in your simulation, it is required to have the SUMO package installed on the system and a SUMO network file (`sumo.net.xml`).
4
4
The SUMO exporter can create SUMO network files from a Webots simulation.
5
5
6
6
## Dependencies
7
7
8
-
The SUMO exporter is using the `shapely` Python module.
8
+
Please refer to [these instructions](sumo-interface.md#dependencies) to install SUMO.
9
+
10
+
The SUMO exporter is also using the `shapely` Python module.
9
11
Please refer to [these instructions](openstreetmap-importer.md#dependencies) to install it.
10
12
11
13
## Expectations on the Webots Simulation
@@ -28,7 +30,7 @@ These files can be used by SUMO `netconvert` to generate the `sumo.net.xml` file
In order to use the SUMO Interface, you have to install the SUMO package on your system.
14
+
Please refer to the official [SUMO User Documentation](https://sumo.dlr.de/docs/Installing/index.html) for the complete installation instructions.
15
+
16
+
#### Debian or Ubuntu
17
+
18
+
```sh
19
+
sudo apt install sumo sumo-tools sumo-doc
20
+
```
21
+
22
+
`SUMO_HOME` environment variable will be automatically set during the installation, but it may be necessary to logout and login, or even reboot, after the installation to correctly run the SUMO Interface.
23
+
24
+
#### macOS
25
+
26
+
Using [Homebrew](https://brew.sh), first install [XQuartz](https://www.xquartz.org) for the SUMO interface, that relies on X11, to work:
27
+
```sh
28
+
brew install --cask xquartz
29
+
```
30
+
31
+
It may be necessary to logout and login or even reboot to activate the XQuartz.
32
+
Then, install the lastest stable version of SUMO:
33
+
```sh
34
+
brew tap dlr-ts/sumo
35
+
brew install sumo
36
+
```
37
+
38
+
Finally, setup the `SUMO_HOME` environment variable to point to the directory of your SUMO installation by adding the following line at the end of the `~/.bashrc` file:
39
+
```sh
40
+
export SUMO_HOME=/your/path/to/sumo
41
+
```
42
+
43
+
The default installation directory is `/opt/homebrew/opt/sumo/share/sumo`.
44
+
45
+
#### Windows
46
+
47
+
Download and run the latest installer from the [SUMO documentation](https://sumo.dlr.de/docs/Installing/index.html#windows).
48
+
11
49
### How to Include the Interface
12
50
13
51
In order to use this interface, a `SumoInterface` PROTO node should to be added to the world.
@@ -16,15 +54,12 @@ This folder should contain the usual files defining a network in SUMO (.edg.xml,
16
54
The configuration files called `sumo.netccfg` and `sumo.sumocfg` will be loaded by default.
17
55
If those configuration files do not exist, the interface will look for a configuration file with any other name (it is not recommended to have several configuration files for SUMO or NETCONVERT in the same folder as you don't know which one is going to be used).
18
56
19
-
> **Note**: Currently version 0.30 of SUMO is distributed with Webots, but if the `SUMO_HOME` environment variable is defined, Webots will use the version of SUMO specified in this variable.
57
+
> **Note**: SUMO should be installed on the system and the `SUMO_HOME` environment variable should be defined and point to the SUMO installation path.
20
58
21
59
The interface will automatically start SUMO and run it in synchronization with Webots time.
22
60
Each time a new vehicle enters the SUMO simulation, it will be created in Webots too and its position and orientation will be continually updated.
23
61
The vehicle DEF name is set to `SUMO_VEHICLEX`, with `X` being the vehicle number (starting from 0).
24
62
25
-
> **Note**[macOS]: On macOS, SUMO relies on X11.
26
-
You need therefore to install [XQuartz](https://www.xquartz.org) (version 2.7.8 or later) for the interface to work.
27
-
28
63
### Use Vehicles Already Present in the World
29
64
30
65
If some vehicles whose DEF name is `SUMO_VEHICLEX` are already present in the world at the simulation start, then the interface will automatically use them before creating new vehicles, this can be useful to avoid real-time addition of vehicles (which can make the simulation speed drop for a very short time).
@@ -158,9 +193,3 @@ The first function is called at initialization of the interface, the arguments a
158
193
The second one is called at each SUMO step and the argument is the time step.
159
194
160
195
Such a plugin can be used for example to change traffic light state in SUMO.
161
-
162
-
### Using the SUMO Executables Distributed with Webots
163
-
164
-
SUMO is distributed with Webots, it is located in `WEBOTS_HOME/projects/default/resources/sumo`, you can find all the executables in the `bin` folder.
165
-
To be able to use these executables you need first to add `WEBOTS_HOME/projects/default/resources/sumo/bin` to your PATH.
166
-
You will then for example be able to use `netedit` to edit your network files.
Copy file name to clipboardExpand all lines: docs/reference/changelog-r2023.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,7 @@ Released on June 27th, 2023.
39
39
- Added a model of suction cup ([#6165](https://github.com/cyberbotics/webots/pull/6165)).
40
40
- Cleanup
41
41
- Deprecated the C and MATLAB API functions `wb_supervisor_node_enable/disable_contact_point_tracking` in favor of `wb_supervisor_node_enable/disable_contact_points_tracking` to be more consistent with other APIs ([#5633](https://github.com/cyberbotics/webots/pull/5633)).
42
+
- Remove SUMO dependency from Webots package ([#6245](https://github.com/cyberbotics/webots/pull/6245)).
42
43
- Bug Fixes
43
44
- Fixed random crashes while creating [Skin](skin.md) and [Mesh](mesh.md) nodes ([#6218](https://github.com/cyberbotics/webots/pull/6218)).
44
45
- Windows: fixed compilation of controller programs located in paths with non-ASCII characters ([#6235](https://github.com/cyberbotics/webots/pull/6235)).
@@ -100,7 +101,6 @@ Released on June 27th, 2023.
100
101
- Fixed crash when deleting a [Group](group.md) or a [Pose](pose.md) in a [Led](led.md) or [Charger](charger.md) ([#6226](https://github.com/cyberbotics/webots/pull/6226)).
101
102
- Fixed duplicate [Lidar](lidar.md) rotatingHead when exporting to URDF ([#6233](https://github.com/cyberbotics/webots/pull/6233)).
102
103
- Dependency Updates
103
-
- Change the Windows version of SUMO to 1.13 to match the one used on Linux and macOS and avoid a potiental Log4J vulnerability ([#6010](https://github.com/cyberbotics/webots/pull/6010)).
104
104
- Upgraded to Qt6.4.3 on Ubuntu ([#6065](https://github.com/cyberbotics/webots/pull/6065)) and macOS ([#6157](https://github.com/cyberbotics/webots/pull/6157)).
105
105
- Cleanup
106
106
- Deprecated the C and MATLAB API functions `wb_supervisor_node_enable/disable_contact_point_tracking` in favor of `wb_supervisor_node_enable/disable_contact_points_tracking` to be more consistent with other APIs ([#5633](https://github.com/cyberbotics/webots/pull/5633)).
0 commit comments