5.2 The standard File Hierarchy of a ProjectSome rules have to be followed in order to create a project which can be used by Webots. This section describes the file hierarchy of a simple project. 5.2.1 The Root Directory of a ProjectThe root directory of a project contains at least a directory called worlds containing a single world file. But several other directories are often required:
Note that the directories can be created by using the wizard New Project Directory described above in this chapter. 5.2.2 The Project FilesThe project files contains information about the GUI (such as the perspective). These files are hidden. Each world file can have one project file. If the world file is named myWorldFile.wbt, its project file is named .myWorldFile.wbt.project. This file is written by Webots when a world is correctly closed. Removing them allows you to retrieve the default perspective. 5.2.3 The "controllers" DirectoryThis directory contains the controllers. Each controller is defined in a directory. A controller is referenced by the name of the directory. Here is an example of the controllers directory having one simple controller written in C which can be edited and executed.
Note that the main executable name must be identical to the directory name. ![]() ^ page top ^ |
| E-mail to webmaster | Last updated: | Copyright © 2010 Cyberbotics Ltd. |