【Webots 用户指南】<The User Interface>

时间:2020-03-18 14:03:52   收藏:0   阅读:197

The User Interface

Webots GUI is composed of four principal windows: the 3D window that displays and allows you to interact with the 3D simulation, the Scene tree which is a hierarchical representation of the current world, the Text editor that allows you to edit source code, and finally, the Console that displays both compilation and controller outputs.

%figure "Webots GUI"

技术图片

%end

The GUI has nine menus: File, Edit, View, Simulation, Build, Overlays, Tools, Wizards and Help.

File Menu

The File menu allows you to perform usual file operations: loading, saving, etc.

%figure "‘Make Movie...‘ dialog"

技术图片

%end

Note: on Windows, "Exit" is used instead of "Quit".

Edit Menu

The Edit menu provides usual text edition functions to manipulate files opened in the Text editor, such as Copy, Paste, Cut, etc.

View Menu

The View menu allows you to control the viewing in the simulation window.

Note:
The Follow Object, Follow Object and Rotate, Projection, Rendering, Optional Rendering Items, Disable Selection and Lock Viewpoint options are saved per world whereas the other options are global.

Simulation Menu

The Simulation menu is used to control the simulation mode.

Build Menu

The Build menu provides the functionality to compile (or cross-compile) controller code.
The build menu is described in more details here.

Overlays Menu

The Overlays menu provides actions specific to rendering device overlays (Camera, Display, Rangefinder).
Some actions of this menu are active only when a robot is selected in the 3D window or when there is only one robot in the simulation:

On the other hand the following items are always active and apply to all the robots in the world:

Tools Menu

The Tools menu allows you to open various Webots windows.

Wizards Menu

The Wizards menu makes it easier to create new projects and new controllers.

Help Menu

The Help menu makes it easier to access the documentation, support and general information.

The remaining menu items bring up various information as indicated, in the form of HTML pages, PDF documents, etc.

Main Toolbar

The main toolbar contains a button for adding new nodes to the world, the speedometer (see this subsection) and shortcuts to items of the File, Simulation and View menus.

Speedometer and Virtual Time

A speedometer (see this figure) indicates the speed of the simulation on your computer.
It is displayed on the main toolbar, and indicates how fast the simulation runs compared to real time.
In other words, it represents the speed of the virtual time.
If the value of the speedometer is 2, it means that your computer simulation is running twice as fast as the corresponding real robots would.
This information is valid both in Run mode and Fast mode.
Note: Simulation speed is not displayed when running a simulation in step-by-step mode (N/A is displayed instead).

%figure "Speedometer"

技术图片

%end

To the left of the speedometer, the virtual time is displayed using following format:

H:MM:SS:MMM

Where H is the number of hours (may be several digits), MM is the number of minutes, SS is the number of seconds, and MMM is the number of milliseconds (see this figure).
If the speedometer value is greater than one, the virtual time is progressing faster than real time.

The basic time step for simulation can be set in the basicTimeStep field of the WorldInfo node in the scene tree window.
It is expressed in virtual time milliseconds.
The value of this time step defines the length of the time step executed during the Step mode.
This step is multiplied by the displayRefresh field of the same WorldInfo node to define how frequently the display is refreshed.

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!