ARGoS
3
A parallel, multi-engine simulator for swarm robotics
sensor.h
Go to the documentation of this file.
1
7
#ifndef SENSOR_H
8
#define SENSOR_H
9
10
namespace
argos
{
11
class
CComposableEntity;
12
}
13
14
namespace
argos
{
15
22
class
CSimulatedSensor
{
23
24
public
:
25
29
virtual
~CSimulatedSensor
() {}
30
41
virtual
void
SetRobot
(
CComposableEntity
& c_entity) = 0;
42
46
virtual
void
Update
() = 0;
47
48
};
49
50
/****************************************/
51
/****************************************/
52
53
}
54
60
#define REGISTER_SENSOR(CLASSNAME, \
61
LABEL, \
62
IMPLEMENTATION, \
63
AUTHOR, \
64
VERSION, \
65
BRIEF_DESCRIPTION, \
66
LONG_DESCRIPTION, \
67
STATUS) \
68
REGISTER_SYMBOL(CSimulatedSensor, \
69
CLASSNAME, \
70
LABEL " (" IMPLEMENTATION ")", \
71
AUTHOR, \
72
VERSION, \
73
BRIEF_DESCRIPTION, \
74
LONG_DESCRIPTION, \
75
STATUS)
76
77
#endif
argos
The namespace containing all the ARGoS related code.
Definition:
ci_actuator.h:12
argos::CComposableEntity
Basic class for an entity that contains other entities.
Definition:
composable_entity.h:32
argos::CSimulatedSensor::Update
virtual void Update()=0
Updates the state of the entity associated to this sensor.
argos::CSimulatedSensor
The basic interface for a simulated sensor.
Definition:
sensor.h:22
argos::CSimulatedSensor::~CSimulatedSensor
virtual ~CSimulatedSensor()
Class destructor.
Definition:
sensor.h:29
argos::CSimulatedSensor::SetRobot
virtual void SetRobot(CComposableEntity &c_entity)=0
Sets the entity associated to this sensor.
core
simulator
sensor.h
Generated on Wed Aug 4 2021 00:15:55 for ARGoS by
1.8.17