Skip to content

Commit

Permalink
Update stream parameter's default value
Browse files Browse the repository at this point in the history
  • Loading branch information
CumaOzavci committed Dec 17, 2021
1 parent 7b0dedd commit 46eebf8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/webots_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@

command = [os.path.join(os.environ['WEBOTS_HOME'], 'webots'), '--mode=' + options.mode, options.world]

if options.stream != 'false':
command.append('--stream="' + options.stream + '"')
if options.stream.lower() != 'false':
if options.stream.lower() == 'true':
command.append('--stream="port=1234;mode=x3d;monitorActivity"')
else:
command.append('--stream="' + options.stream + '"')

if options.noGui.lower() == 'true':
command.append('--stdout')
Expand Down

0 comments on commit 46eebf8

Please sign in to comment.