7 #ifndef CAMERAS_DEFAULT_SENSOR_H
8 #define CAMERAS_DEFAULT_SENSOR_H
11 class CCameraDefaultSensor;
12 class CEmbodiedEntity;
15 #include <argos3/core/utility/math/rng.h>
16 #include <argos3/core/simulator/space/space.h>
17 #include <argos3/core/simulator/sensor.h>
18 #include <argos3/plugins/robots/generic/control_interface/ci_camera_sensor.h>
19 #include <argos3/plugins/robots/generic/simulator/camera_sensor_algorithm.h>
32 std::vector<CCameraSensorSimulatedAlgorithm*>
Algorithms;
41 const std::vector<CCameraSensorSimulatedAlgorithm*>& vec_algorithms) :
47 Real fWidthToDepthRatio = (0.5 * c_resolution.
GetX()) / c_projection_matrix(0,0);
48 Real fHeightToDepthRatio = (0.5 * c_resolution.
GetY()) / c_projection_matrix(1,1);
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.
An entity that contains a pointer to the user-defined controller.
This entity is a link to a body in the physics engine.
An anchor related to the body of an entity.
The basic interface for a simulated sensor.
Real GetY() const
Returns the y coordinate of this vector.
Real GetX() const
Returns the x coordinate of this vector.
virtual void Init(TConfigurationNode &t_tree)
Initializes the sensor from the XML configuration tree.
virtual void SetRobot(CComposableEntity &c_entity)
Sets the entity associated to this sensor.
virtual ~CCameraDefaultSensor()
virtual void Update()
Updates the state of the entity associated to this sensor, if the sensor is currently enabled.
CControllableEntity * m_pcControllableEntity
CEmbodiedEntity * m_pcEmbodiedEntity
std::vector< SSensor > m_vecSensors
CTransformationMatrix3 Offset
CSquareMatrix< 3 > ProjectionMatrix
SSensor(SAnchor &s_anchor, const CTransformationMatrix3 &c_offset, const CRange< Real > &c_range, const CSquareMatrix< 3 > &c_projection_matrix, const CVector2 &c_resolution, const std::vector< CCameraSensorSimulatedAlgorithm * > &vec_algorithms)
std::vector< CCameraSensorSimulatedAlgorithm * > Algorithms