Webots Reference Manual - chapter 5 - section 2

Webots Reference Manual


5.2 Prototype Instantiation

Each prototype instance can be considered to be a complete copy of the prototype, with its interface fields and body nodes. Prototype are instantiated using the standard node syntax, for example:

Bicycle {
  position   0 0.5 0
  frameColor 0 0.8 0.8
  hasBrakes  FALSE
}

When prototype instances are read from a .wbt file, field values for the fields of the prototype interface may be given. If given, the field values are used for all nodes in the prototype definition that have IS statements for those fields.

release 7.0.2
Copyright © 2012 Cyberbotics Ltd. All right reserved.