ARGoS  3
A parallel, multi-engine simulator for swarm robotics
ci_range_and_bearing_sensor.h
Go to the documentation of this file.
1 
7 #ifndef CI_RANGE_AND_BEARING_SENSOR_H
8 #define CI_RANGE_AND_BEARING_SENSOR_H
9 
10 namespace argos {
11  class CCI_RangeAndBearingSensor;
12 }
13 
14 #include <argos3/core/control_interface/ci_sensor.h>
15 #include <argos3/core/utility/datatypes/datatypes.h>
16 #include <argos3/core/utility/datatypes/byte_array.h>
17 #include <argos3/core/utility/math/quaternion.h>
18 
19 namespace argos {
20 
21  /****************************************/
22  /****************************************/
23 
25 
26  public:
27 
28  struct SPacket {
40 
41  SPacket();
42  };
43 
44  typedef std::vector<SPacket> TReadings;
45 
46  public:
47 
49 
50  const TReadings& GetReadings() const;
51 
52 #ifdef ARGOS_WITH_LUA
53  virtual void CreateLuaState(lua_State* pt_lua_state);
54 
55  virtual void ReadingsToLuaState(lua_State* pt_lua_state);
56 #endif
57 
58  protected:
59 
61 
62  };
63 
64  /****************************************/
65  /****************************************/
66 
67 }
68 
69 #endif
argos::CCI_RangeAndBearingSensor::~CCI_RangeAndBearingSensor
virtual ~CCI_RangeAndBearingSensor()
Definition: ci_range_and_bearing_sensor.h:48
argos
The namespace containing all the ARGoS related code.
Definition: ci_actuator.h:12
argos::CRadians
It defines the basic type CRadians, used to store an angle value in radians.
Definition: angles.h:42
argos::CCI_RangeAndBearingSensor::SPacket
Definition: ci_range_and_bearing_sensor.h:28
argos::CCI_RangeAndBearingSensor::SPacket::SPacket
SPacket()
Definition: ci_range_and_bearing_sensor.cpp:83
argos::CByteArray
Byte array utility class.
Definition: byte_array.h:28
argos::CCI_RangeAndBearingSensor::TReadings
std::vector< SPacket > TReadings
Definition: ci_range_and_bearing_sensor.h:44
argos::CCI_Sensor
The basic interface for all sensors.
Definition: ci_sensor.h:34
argos::CCI_RangeAndBearingSensor::m_tReadings
TReadings m_tReadings
Definition: ci_range_and_bearing_sensor.h:60
argos::CCI_RangeAndBearingSensor::SPacket::HorizontalBearing
CRadians HorizontalBearing
Definition: ci_range_and_bearing_sensor.h:30
argos::CCI_RangeAndBearingSensor::SPacket::VerticalBearing
CRadians VerticalBearing
The vertical bearing is defined as the angle between the local robot XY plane and the message source ...
Definition: ci_range_and_bearing_sensor.h:38
argos::CCI_RangeAndBearingSensor
Definition: ci_range_and_bearing_sensor.h:24
argos::CCI_RangeAndBearingSensor::GetReadings
const TReadings & GetReadings() const
Definition: ci_range_and_bearing_sensor.cpp:18
argos::CCI_RangeAndBearingSensor::SPacket::Data
CByteArray Data
Definition: ci_range_and_bearing_sensor.h:39
Real
float Real
Collects all ARGoS code.
Definition: datatypes.h:39
argos::CCI_RangeAndBearingSensor::SPacket::Range
Real Range
Definition: ci_range_and_bearing_sensor.h:29