![]() |
5.2 Setting Up a New ControllerIn order to develop a new controller, you must first create a controllers directory in your user directory to contain all your robot and supervisor controller directories. Each robot or supervisor controller directory contains all the files necessary to develop and run a controller. In order to tell Webots where your controllers are, you must set up your user directory in the Webots preferences. Webots will first search for a controllers directory in your user directory, and if it doesn't find, it will then look in its own controllers directory. Now, in your newly created controllers directory, you must create a controller subdirectory, let's call it simple. Inside simple, several files must be created:
You can compile your program by typing make in the directory of your controller. As an introduction, it is recommanded that you copy the simple controller directory from the Webots controllers to your own controllers directory and then try to compile it. ![]() ![]() ![]() ^ page top ^ |
E-mail to webmaster | Last updated: | Copyright © 2002 Cyberbotics Ltd. |