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
10
namespace
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
18
namespace
argos
{
19
20
class
CLightEntity
:
public
CLEDEntity
{
21
22
public
:
23
24
ENABLE_VTABLE
();
25
26
public
:
27
28
CLightEntity
();
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
51
Real
m_fIntensity
;
52
};
53
54
}
55
56
#endif
argos
The namespace containing all the ARGoS related code.
Definition:
ci_actuator.h:12
argos::CVector3
A 3D vector class.
Definition:
vector3.h:29
argos::CLEDEntity
Definition:
led_entity.h:24
argos::CLightEntity::Init
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
Definition:
light_entity.cpp:37
argos::CLightEntity::ENABLE_VTABLE
ENABLE_VTABLE()
argos::TConfigurationNode
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Definition:
argos_configuration.h:27
argos::CLightEntity::SetIntensity
void SetIntensity(Real f_intensity)
Definition:
light_entity.h:41
argos::CLightEntity::GetTypeDescription
virtual std::string GetTypeDescription() const
Returns a string label for this class.
Definition:
light_entity.h:45
argos::CLightEntity::m_fIntensity
Real m_fIntensity
Definition:
light_entity.h:51
argos::CLightEntity::GetIntensity
Real GetIntensity() const
Definition:
light_entity.h:37
argos::CLightEntity::CLightEntity
CLightEntity()
Definition:
light_entity.cpp:17
argos::CColor
The basic color type.
Definition:
color.h:25
argos::CLightEntity
Definition:
light_entity.h:20
Real
float Real
Collects all ARGoS code.
Definition:
datatypes.h:39
plugins
simulator
entities
light_entity.h
Generated on Wed Aug 4 2021 00:15:55 for ARGoS by
1.8.17