51#ifndef CCI_FOOTBOT_DISTANCE_SCANNER_SENSOR_H
52#define CCI_FOOTBOT_DISTANCE_SCANNER_SENSOR_H
56 class CCI_FootBotDistanceScannerSensor;
59#include <argos3/core/control_interface/ci_sensor.h>
60#include <argos3/core/utility/math/angles.h>
149 virtual void CreateLuaState(lua_State* pt_lua_state);
151 virtual void ReadingsToLuaState(lua_State* pt_lua_state);
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
The basic interface for all sensors.
It defines the basic type CRadians, used to store an angle value in radians.
CCI_FootBotDistanceScannerSensor()
Constructor.
const TReadingsMap & GetShortReadingsMap()
Return a map of the readings of the ds, short sensor readings A map of the readings of the ds short s...
const TReadingsMap & GetLongReadingsMap()
Return a map of the readings of the ds, long sensor readings A map of the readings of the ds long sen...
TReadings m_tReadings
A vector of sReadings.
std::vector< SReading > TReadings
std::pair< CRadians, Real > TMapPair
TReadingsMap m_tLongReadingsMap
Map storing the last received packets from the long distance sensors.
TReadingsMap m_tReadingsMap
Map storing all the last received packets.
std::map< CRadians, Real > TReadingsMap
std::vector< TReadings > TLastReadings
TLastReadings m_tLastReadings
Vector storing the last received packets.
TReadingsMap m_tShortReadingsMap
Map storing the last received packets from the short distance sensors.
virtual ~CCI_FootBotDistanceScannerSensor()
Destructor.
const TReadingsMap & GetReadingsMap()
Return a map of the readings of the ds A map of the readings of the ds in the following format: angle...
The DTO of the distance scanner, it contains the measured distance and its angle.
SReading(const CRadians &c_angle, Real f_distance)