7 #ifndef FOOTBOT_DISTANCE_SCANNER_SENSOR_H
8 #define FOOTBOT_DISTANCE_SCANNER_SENSOR_H
11 class CFootBotDistanceScannerRotZOnlySensor;
12 class CControllableEntity;
16 #include <argos3/plugins/robots/foot-bot/control_interface/ci_footbot_distance_scanner_sensor.h>
17 #include <argos3/plugins/robots/foot-bot/simulator/footbot_distance_scanner_equipped_entity.h>
18 #include <argos3/core/simulator/entity/embodied_entity.h>
19 #include <argos3/core/utility/math/rng.h>
20 #include <argos3/core/utility/math/ray3.h>
21 #include <argos3/core/simulator/sensor.h>
47 void UpdateNotRotating();
48 void UpdateRotating();
50 Real CalculateReadingForRay(
const CRay3& c_ray,
53 void CalculateRaysNotRotating();
54 void CalculateRaysRotating();
60 inline bool IsShowRays() {
68 inline void SetShowRays(
bool b_show_rays) {
69 m_bShowRays = b_show_rays;
75 CRandom::CRNG* m_pcRNG;
81 CRange<Real> m_cNoiseRange;
84 CFootBotDistanceScannerEquippedEntity* m_pcDistScanEntity;
85 CControllableEntity* m_pcControllableEntity;
86 CEmbodiedEntity* m_pcEmbodiedEntity;
87 CRadians m_cLastDistScanRotation;
91 CRay3 m_cShortRangeRays0[6];
92 CRay3 m_cShortRangeRays2[6];
93 CRay3 m_cLongRangeRays1[6];
94 CRay3 m_cLongRangeRays3[6];
97 CVector3 m_cDirection;
98 CVector3 m_cOriginRayStart;
99 CVector3 m_cOriginRayEnd;
100 CVector3 m_cRayStart;
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Basic class for an entity that contains other entities.
The basic interface for a simulated sensor.
CFootBotDistanceScannerRotZOnlySensor()
virtual void SetRobot(CComposableEntity &c_entity)
Sets the entity associated to this sensor.
virtual ~CFootBotDistanceScannerRotZOnlySensor()
virtual void Reset()
Resets the sensor to the state it had just after Init().
virtual void Update()
Updates the state of the entity associated to this sensor, if the sensor is currently enabled.
virtual void Init(TConfigurationNode &t_tree)
Initializes the sensor from the XML configuration tree.