ARGoS 3
A parallel, multi-engine simulator for swarm robotics
light_entity.h
Go to the documentation of this file.
1
7#ifndef LIGHT_ENTITY_H
8#define LIGHT_ENTITY_H
9
10namespace argos {
11 class CLightEntity;
12 class CLedEquippedEntity;
13}
14
15#include <argos3/core/simulator/entity/positional_entity.h>
16#include <argos3/plugins/simulator/entities/led_equipped_entity.h>
17
18namespace argos {
19
20 class CLightEntity : public CLEDEntity {
21
22 public:
23
25
26 public:
27
29
30 CLightEntity(const std::string& str_id,
31 const CVector3& c_position,
32 const CColor& c_color,
33 Real f_intensity);
34
35 virtual void Init(TConfigurationNode& t_tree);
36
37 inline Real GetIntensity() const {
38 return m_fIntensity;
39 }
40
41 inline void SetIntensity(Real f_intensity) {
42 m_fIntensity = f_intensity;
43 }
44
45 virtual std::string GetTypeDescription() const {
46 return "light";
47 }
48
49 protected:
50
52 };
53
54}
55
56#endif
float Real
Collects all ARGoS code.
Definition datatypes.h:39
The namespace containing all the ARGoS related code.
Definition ci_actuator.h:12
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
The basic color type.
Definition color.h:25
A 3D vector class.
Definition vector3.h:31
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
void SetIntensity(Real f_intensity)
Real GetIntensity() const
virtual std::string GetTypeDescription() const
Returns a string label for this class.