ARGoS
3
A parallel, multi-engine simulator for swarm robotics
ci_footbot_motor_ground_sensor.h
Go to the documentation of this file.
1
32
#ifndef CCI_FOOTBOT_MOTOR_GROUND_SENSOR_H
33
#define CCI_FOOTBOT_MOTOR_GROUND_SENSOR_H
34
35
namespace
argos
{
36
class
CCI_FootBotMotorGroundSensor;
37
}
38
39
#include <argos3/core/control_interface/ci_sensor.h>
40
#include <argos3/core/utility/math/vector2.h>
41
#include <argos3/core/utility/math/range.h>
42
#include <vector>
43
44
namespace
argos
{
45
46
class
CCI_FootBotMotorGroundSensor
:
public
CCI_Sensor
{
47
48
public
:
49
50
struct
SReading
{
51
Real
Value
;
52
CVector2
Offset
;
53
54
SReading
() :
55
Value
(0.0f) {}
56
57
SReading
(
Real
f_value,
58
const
CVector2
& c_offset) :
59
Value
(f_value),
60
Offset
(c_offset) {}
61
};
62
63
typedef
std::vector<SReading>
TReadings
;
64
65
public
:
66
67
CCI_FootBotMotorGroundSensor
();
68
69
virtual
~CCI_FootBotMotorGroundSensor
() {}
70
71
const
TReadings
&
GetReadings
()
const
;
72
73
#ifdef ARGOS_WITH_LUA
74
virtual
void
CreateLuaState(lua_State* pt_lua_state);
75
76
virtual
void
ReadingsToLuaState(lua_State* pt_lua_state);
77
#endif
78
79
protected
:
80
81
TReadings
m_tReadings
;
82
83
};
84
85
std::ostream&
operator<<
(std::ostream& c_os,
const
CCI_FootBotMotorGroundSensor::SReading
& s_reading);
86
std::ostream&
operator<<
(std::ostream& c_os,
const
CCI_FootBotMotorGroundSensor::TReadings
& t_readings);
87
88
}
89
90
#endif
argos
The namespace containing all the ARGoS related code.
Definition:
ci_actuator.h:12
argos::CCI_FootBotMotorGroundSensor::SReading::SReading
SReading(Real f_value, const CVector2 &c_offset)
Definition:
ci_footbot_motor_ground_sensor.h:57
argos::CCI_FootBotMotorGroundSensor::SReading::Offset
CVector2 Offset
Definition:
ci_footbot_motor_ground_sensor.h:52
argos::CCI_FootBotMotorGroundSensor::TReadings
std::vector< SReading > TReadings
Definition:
ci_footbot_motor_ground_sensor.h:63
argos::CCI_FootBotMotorGroundSensor::~CCI_FootBotMotorGroundSensor
virtual ~CCI_FootBotMotorGroundSensor()
Definition:
ci_footbot_motor_ground_sensor.h:69
argos::CCI_Sensor
The basic interface for all sensors.
Definition:
ci_sensor.h:34
argos::CCI_FootBotMotorGroundSensor
Definition:
ci_footbot_motor_ground_sensor.h:46
argos::operator<<
std::ostream & operator<<(std::ostream &c_os, const CByteArray &c_byte_array)
Definition:
byte_array.cpp:530
argos::CVector2
A 2D vector class.
Definition:
vector2.h:25
argos::CCI_FootBotMotorGroundSensor::m_tReadings
TReadings m_tReadings
Definition:
ci_footbot_motor_ground_sensor.h:81
argos::CCI_FootBotMotorGroundSensor::SReading
Definition:
ci_footbot_motor_ground_sensor.h:50
argos::CCI_FootBotMotorGroundSensor::GetReadings
const TReadings & GetReadings() const
Definition:
ci_footbot_motor_ground_sensor.cpp:31
Real
float Real
Collects all ARGoS code.
Definition:
datatypes.h:39
argos::CCI_FootBotMotorGroundSensor::CCI_FootBotMotorGroundSensor
CCI_FootBotMotorGroundSensor()
Definition:
ci_footbot_motor_ground_sensor.cpp:19
argos::CCI_FootBotMotorGroundSensor::SReading::Value
Real Value
Definition:
ci_footbot_motor_ground_sensor.h:51
argos::CCI_FootBotMotorGroundSensor::SReading::SReading
SReading()
Definition:
ci_footbot_motor_ground_sensor.h:54
plugins
robots
foot-bot
control_interface
ci_footbot_motor_ground_sensor.h
Generated on Wed Aug 4 2021 00:15:55 for ARGoS by
1.8.17