light_entity.cpp File Reference
#include "light_entity.h"
#include <argos3/core/simulator/simulator.h>
#include <argos3/core/simulator/space/space.h>
#include <argos3/plugins/simulator/media/led_medium.h>
Include dependency graph for light_entity.cpp:

Go to the source code of this file.

Namespaces

 argos
 The namespace containing all the ARGoS related code.
 

Functions

 argos::REGISTER_ENTITY (CLightEntity, "light", "Carlo Pinciroli [ilpincy@gmail.com]", "1.0", "A colored light.", "The light entity is an entity that emits a light detectable by a robot camera\n" "(as a normal LED) or by light sensors. A light is bodyless, therefore it must\n" "not be added to physics engines.\n" "A light is characterized by a color and an intensity. The color of the light\n" "is perceived by cameras. The intensity modifies the reading of the light\n" "sensors. The higher the intensity, the closer the light is perceived.\n\n" "REQUIRED XML CONFIGURATION\n\n" " <arena ...>\n" " ...\n" " <light id=\"light0\"\n" " position=\"0.4,2.3,0.25\"\n" " orientation=\"0,0,0\"\n" " color=\"yellow\"\n" " intensity=\"1.0\"\n" " medium=\"leds\"/>\n" " ...\n" " </arena>\n\n" "The 'id' attribute is necessary and must be unique among the entities. If two\n" "entities share the same id, initialization aborts.\n" "The 'position' attribute specifies the position of the center of the light.\n" "The attribute values are in the X,Y,Z order.\n" "The 'orientation' attribute specifies the orientation of the light. At the\n" "moment this attribute is mandatory but its value is ignored. In the future,\n" "it will be used to implement a directional light.\n" "The 'color' attribute specifies the color of the light.\n" "The 'intensity' attribute sets the intensity of the light. When the value is\n" "1.0, the light emits a normal amount of light. When it is 0.5 the amount of\n" "light is half, and when the value is 2.0 the emission is doubled. The\n" "intensity of the light affects the readings of the light sensors but not\n" "those of the cameras.\n" "The 'medium' attribute is used to add the light the corresponding LED medium.\n\n" "OPTIONAL XML CONFIGURATION\n\n" "None.\n", "Usable")
 
 argos::REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY (CLightEntity)