|
3.7 ChargerDerived from Solid.
3.7.1 DescriptionThe Charger node is used to model a special kind of battery charger for the robots. A robot has to get close to a charger in order to recharge itself. A charger is not like a standard battery charger connected to a constant power supply. Instead, it is a battery itself: it accumulates energy with time. It could be compared to a solar power panel charging a battery. When the robot comes to get energy, it can't get more than the charger has presently accumulated. The appearance of the Charger node can be altered by its current energy. When the Charger node is full, the resulted color corresponds to its emissiveColor field, while when the Charger node is empty, its resulted color corresponds to its original one. Intermediate colors depend on the gradual field. Only the first child of the Charger node is affected by this alteration. The resulted color is applied only on the first child of the Charger node. If the first child is a Shape node, the emissiveColor field of its Material node is altered. If the first child is a Light node, its color field is altered. Otherwise, if the first child is a Group node, a recursive search is applied on this node in order to find and every Light, Shape and Group nodes are altered according to the two previous rules. 3.7.2 Field SummaryThe fields specific to the Charger node are:
![]() ^ page top ^ |
| E-mail to webmaster | Last updated: | Copyright © 2010 Cyberbotics Ltd. |