Click on the Environment Variables button at the bottom.
To do so, look for "environment variable" in the search bar of the Windows start menu, click on Edit the system environment variables, this will open up the System Properties dialog box to the Advanced tab. Open the Environment Variables system dialog box.Once successfully started this way, you must unset this environment variable, open again your world and increase the OpenGL preferences. To do this, simply set the environment variable WEBOTS_SAFE_MODE in the environment running Webots. The safe mode forces Webots to start with an empty world, reduces all the OpenGL options, and stores those preferences. In this case, Webots can be started in safe mode. It may happen that Webots cannot start because it is blocked on a world causing a Webots or OpenGL crash. You can get more information about web streaming in this section. Print a dot '.' on stdout every 5 seconds.ĭisable the streaming of stdout and stderr.įor example, the following command will start Webots with the streaming server enabled on the TCP port '1234' and will disable the streaming of stdout and stderr: webots -stream="port:1234 disableTextStreams" The port on which the streaming server is open. The supported options are described in this table. This option is a string containing a list of parameter keys and their values separated by semicolons. The -stream option starts the Webots streaming server.Īn option can be given to change the default parameters of the streaming server. Note that the stderr stream may also contain Webots error or warning messages. stdout redirects the stdout stream of the controllers, while -stderr redirects the stderr stream.
The -stdout and -stderr options have the effect of redirecting Webots console output to the calling terminal or process.įor example, this can be used to redirect the controllers output to a file or to pipe it to a shell command. The -sysinfo option displays misc information about the current system on the standard output stream and quits Webots. This option overrides, but does not modify, the startup mode saved in Webots' preferences.įor example, type webots -mode=pause filename.wbt to start Webots in pause mode. The four possible simulation modes are: pause, realtime, run and fast they correspond to the simulation control buttons of Webots' graphical user interface. The -mode= option can be used to start Webots in the specified simulation mode. Note that Webots automatically uses the Fast mode when -minimize is specified. This option can be used to avoid cluttering the screen with windows when automatically launching Webots from scripts. This also skips the splash screen and the eventual Welcome Dialog. The -minimize option is used to minimize (iconize) Webots window on startup. If it is not specified, Webots attempts to open the most recently opened file. The optional worldfile argument specifies the name of a. System information is prepended into the log file. The optional argument is an integer value that
Measure the performance of Webots and log it in the file specified in the MonitorActivity - Print a dot '.' on stdout every 5 seconds.ĭisableTextStreams - Disable the streaming of stdout and stderr. Port=1234 - Start the streaming server on port 1234. Redirect the stderr of the controllers to the terminal. Redirect the stdout of the controllers to the terminal. Prevent Webots from creating blocking pop-up windows. The Īrgument must be either pause, realtime, run or fast. Command Line Argumentsįollowing command line options are available when starting Webots from a Terminal (Linux/Mac) or a Command Prompt (Windows):ĭisplay information about the system and exit.Ĭhoose the startup mode, overriding application preferences. Note: Calling webots.exe directly from a DOS console may not work, as some settings may be missing (see the contents of webots.bat for details). It can also work from any directory if the above directory was added to your Path environment variable. This command works only if executed from the C:\Program Files\Webots\msys64\mingw64\bin directory (assuming Webots was installed in C:\Program Files). You can also start Webots from a DOS console ( cmd.exe) by typing webots.bat. On Windows 8, open the Start screen, scroll to the screen's right until you spot the Cyberbotics section and click on the Webots icon.
On Windows 10 and Windows 7, open the Start menu, go to the Program Files / Cyberbotics menu and click on the Webots menu item.
Open the directory in which you installed the Webots package and double-click on the Webots icon. Open a terminal and type webots to launch Webots. The first time you start Webots, it will open the "Welcome to Webots!" menu with a list of possible starting points.