Webots User Guide

previous page go up next page

Foreword

Thanks

1. Installing Webots

2. Getting Started with Webots

3. Sample Webots Applications

4. Tutorial: Modeling and simulating your robot

5. Programming Controllers and Plugins

6. Using the e-puck robot

     

2.4 Scene Tree Window

As seen in the previous section, to access to the Scene Tree Window you can either choose Scene Tree in the Tools menu, or use the mouse pointer to double-click on an object. The scene tree contains the information that describes a simulated world, including robots and environment, and its graphical representation. The scene tree of Webots is structured like a VRML97 file. It is composed of a list of nodes, each containing fields. Fields can contain values (text strings, numerical values) or other nodes.

This section describes the user interface of the Scene Tree, gives an overview of the VRML97 nodes and Webots nodes.

scene_tree1

Figure 2.3: Scene Tree Window

2.4.1 Buttons of the Scene Tree Window

Nodes can be expanded with a double-click. When a field is selected, its value can be edited at the bottom of the Scene Tree. All changes will be immediately reflected in the 3D window. The following buttons are available to edit the world:

Cut: Cut the selected node.

Copy: Copy the value of the selected field or node.

Paste: Paste the value of the selected field or node.

Paste after: Paste a node below the currently selected node.

Note that the first three nodes of the Scene Tree (WorldInfo, Viewpoint, and Background) cannot be cut, copied or pasted. One single instance of each of these nodes must be present in every Webots world, and in that precise order.

Delete: Deletes the selected node or field (in a list of multiple fields).

Reset to default: Reset a field to the its default value.

Transform: Allows you to change the type of some nodes.

Insert after: Inserts a node right after the currently selected one. This triggers a dialog that will let you choose a node from a list. The new node is created with default values that can be modified afterwards. You can only insert a node suitable for the corresponding field.

New node: Adds a node into a node field. This triggers a dialog that will let you choose a node from a list. You can only insert a node suitable for the corresponding field.

Export: Exports a node into an ascii file. Exported nodes can then be imported in other worlds.

Import: Imports a previously exported node into the scene tree.

Help: Context sensitive help for the currently selected node.

Note: We recommend to use the Scene Tree to write Webots world files. However, because the nodes and fields are stored in a human readable form, it is also possible to edit world files with a regular text editor. Some search and replace operation may actually be easier that way. Please refer to Webots Reference Manual for more info on the available node and the world file format.

previous page go up next page
^ page top ^

  E-mail to webmaster Last updated: Copyright © 2008 Cyberbotics Ltd.