2.2 Starting WebotsThe first you start Webots it will open the "Welcome to Webots !" menu with list of possible starting points. 2.2.1 LinuxOpen a terminal and type webots to launch Webots. 2.2.2 Mac OS XOpen the directory in which you installed the Webots package and double-click on the Webots icon. 2.2.3 WindowsFrom Windows Start menu, go to the Program Files | Cyberbotics menu and click on the Webots 6.2.1 menu item. 2.2.4 Command Line ArgumentsFollowing command line options are available when starting Webots from a Terminal (Linux/Mac) or a Command Prompt (Windows):
The optional worldfile argument specifies the name of a .wbt file to open. If it is not specified, Webots attempts to open the most recently opened file. The --minimize option is used to minimize Webots window on startup. It also skips the splash screen and the eventual Welcome Dialog. This option is used avoid cluttering the screen with windows when automatically launching Webots from scripts. Usually the --minimize mode is used together with the --mode=fast option in order to enable the fast simulation speed, e.g. webots --minimize --mode=fast filename.wbt The --mode=<mode> option can be used to start Webots in the specified execution mode. The three possible execution modes are: stop, run and fast; they correspond to the simulation control buttons of Webots' graphical user interface. This option overides, but does not modify, the startup mode saved in Webots' preferences. For example, type webots --mode=stop filename.wbt to start Webots in stop mode. 2.2.5 Environment Variables used by WebotsFollowing environment variables are available to control Webots output: Defining the WEBOTS_STDOUT and WEBOTS_STDERR variables, has the effect of redirecting Webots console output to the calling terminal or process. For example, this can be used to redirect the controllers output to a file or to pipe it to a shell command. WEBOTS_STDOUT redirects the stdout stream of the controllers, while WEBOTS_STDERR redirects the stderr stream. Note that the stderr stream may also contain Webots error or warning messages. You can enable the redirection like this (Mac/Linux):
![]() ^ page top ^ |
| E-mail to webmaster | Last updated: | Copyright © 2010 Cyberbotics Ltd. |