Skip to content

Commit 84751ff

Browse files
Benjamin Délèzeomichel
andauthored
SUMO extern controller options (cyberbotics#6259)
* SUMO extern controller * Update docs/automobile/sumo-interface.md Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> * Update projects/default/controllers/sumo_supervisor/sumo_supervisor.py Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com> --------- Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>
1 parent dcb8e88 commit 84751ff

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

docs/automobile/sumo-interface.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export WEBOTS_HOME=/snap/webots/current/usr/share/webots
3030
$WEBOTS_HOME/webots-controller $WEBOTS_HOME/projects/default/controllers/sumo_supervisor/sumo_supervisor.py
3131
```
3232

33+
If you want to set some SUMO options you have to specify them at the end of the launcher line, for example:
34+
```
35+
$WEBOTS_HOME/webots-controller $WEBOTS_HOME/projects/default/controllers/sumo_supervisor/sumo_supervisor.py --use-netconvert --no-gui
36+
```
37+
3338
#### macOS
3439

3540
Using [Homebrew](https://brew.sh), first install [XQuartz](https://www.xquartz.org) for the SUMO interface, that relies on X11, to work:

projects/default/controllers/sumo_supervisor/sumo_supervisor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ def sumoImportError():
3131
if os.getenv('SNAP_NAME'):
3232
sys.stderr.write("Please set the 'SumoInterface.externController' field to TRUE and "
3333
"launch the controller as extern controller.\n"
34+
"When launching the controller as extern, you must specify the SUMO options like --no-netconvert "
35+
"or --no-gui manually.\n"
3436
"Install SUMO ")
3537
else:
3638
sys.stderr.write("Please install it ")

0 commit comments

Comments
 (0)