|
1.1 Nodes and Functions1.1.1 NodesThe Webots nodes listed in this manual are described using standard VRML syntax. Principally, Webots uses a subset of the VRML97 nodes and fields, but it also defines additional nodes and fields specific to robotic definitions. For example, the Webots WorldInfo and Sphere nodes have additional fields with respect to VRML97. 1.1.2 The C/C++ APIChapter 3 covers all the functions of the Controller API, which allows you to program robots both in simulation and in practice (through Webots remote control or cross-compilation). The chapter describes the C prototypes of these functions, which can be used from a C or C++ controller program. 1.1.3 The Java APIIt is also possible to program both simulated and real robots in Java. The Java API is not documented explicitly, however, it was developed as a direct copy of the C/C++ API. Hence, all the Java method names and parameters are the same as the C functions described in this chapter, with a few exceptions:
A reference file for the Java API, called Controller.java, is provided in the doc directory of the Webots distribution. 1.1.4 Remote ControlThe C, C++ or Java API can be used for programming a remotely controlled Khepera or Aibo robot. This can be achieved through the robot window in the Webots graphical user interface. 1.1.5 Cross-compilationA number of limitations are inherent in the cross-compilation of controllers using the Webots API. These limitations are often consequences of the limitations of the real robots. For example, the Khepera robot can be programmed in C only, and not in C++. Please read the robot-specific chapters in the Webots User Guide for a description of the limitations and programming languages available for each robotic platform. ![]() ^ page top ^ |
| E-mail to webmaster | Last updated: | Copyright © 2008 Cyberbotics Ltd. |