ARGoS 3
A parallel, multi-engine simulator for swarm robotics
ci_radios_actuator.h
Go to the documentation of this file.
1
7#ifndef CI_RADIOS_ACTUATOR_H
8#define CI_RADIOS_ACTUATOR_H
9
10namespace argos {
11 class CCI_RadiosActuator;
12}
13
14#include <argos3/core/control_interface/ci_actuator.h>
15#include <argos3/core/utility/datatypes/byte_array.h>
16
17namespace argos {
18
19 class CCI_RadiosActuator : virtual public CCI_Actuator {
20
21 public:
22
23 struct SInterface {
24 SInterface(const std::string& str_id,
25 const std::vector<CByteArray>& vec_data = {}) :
26 Id(str_id),
27 Data(vec_data) {}
28 std::string Id;
29 std::vector<CByteArray> Data;
30 using TVector = std::vector<SInterface>;
31 };
32
33 public:
34
43
44 public:
45
51
52#ifdef ARGOS_WITH_LUA
53 virtual void CreateLuaState(lua_State* pt_lua_state);
54#endif
55
56 protected:
57
59
60 };
61}
62
63#endif
The namespace containing all the ARGoS related code.
Definition ci_actuator.h:12
The basic interface for all actuators.
Definition ci_actuator.h:34
virtual void CreateLuaState(lua_State *pt_lua_state)=0
Creates the Lua state for this actuator.
SInterface::TVector m_vecInterfaces
SInterface::TVector & GetInterfaces()
Returns a reference to the radio interfaces.
virtual ~CCI_RadiosActuator()
Destructor.
SInterface(const std::string &str_id, const std::vector< CByteArray > &vec_data={})