ARGoS 3
A parallel, multi-engine simulator for swarm robotics
argos::CCameraSensorDirectionalLEDDetectorAlgorithm Class Reference

This class provides the most general interface to a camera. More...

#include <camera_sensor_directional_led_detector_algorithm.h>

+ Inheritance diagram for argos::CCameraSensorDirectionalLEDDetectorAlgorithm:

Classes

class  CUpdateOperation
 

Public Member Functions

 CCameraSensorDirectionalLEDDetectorAlgorithm ()
 
virtual ~CCameraSensorDirectionalLEDDetectorAlgorithm ()
 
virtual void Init (TConfigurationNode &t_tree)
 Initializes the resource.
 
virtual void Update (const CSquareMatrix< 3 > &c_projection_matrix, const std::array< CPlane, 6 > &arr_frustum_planes, const CTransformationMatrix3 &c_camera_to_world_transform, const CVector3 &c_camera_location, const CVector3 &c_bounding_box_position, const CVector3 &c_bounding_box_half_extents)
 
void AddCheckedRay (bool b_intersected, const CRay3 &c_ray)
 
void AddReading (const CColor &c_color, const CVector2 &c_center)
 
bool IsShowRays ()
 Returns true if the rays must be shown in the GUI.
 
void SetShowRays (bool b_show_rays)
 Sets whether or not the rays must be shown in the GUI.
 
- Public Member Functions inherited from argos::CCameraSensorSimulatedAlgorithm
virtual ~CCameraSensorSimulatedAlgorithm ()
 
const std::vector< std::pair< bool, CRay3 > > & GetCheckedRays () const
 
- Public Member Functions inherited from argos::CCI_CameraSensorDirectionalLEDDetectorAlgorithm
 CCI_CameraSensorDirectionalLEDDetectorAlgorithm ()
 Constructor.
 
virtual ~CCI_CameraSensorDirectionalLEDDetectorAlgorithm ()
 Destructor.
 
const std::vector< SReading > & GetReadings () const
 
- Public Member Functions inherited from argos::CCI_CameraSensorAlgorithm
virtual ~CCI_CameraSensorAlgorithm ()
 
virtual void Reset ()
 Resets the resource.
 
virtual void Destroy ()
 Undoes whatever was done by Init().
 
- Public Member Functions inherited from argos::CBaseConfigurableResource
virtual ~CBaseConfigurableResource ()
 Class destructor.
 

Additional Inherited Members

- Protected Attributes inherited from argos::CCameraSensorSimulatedAlgorithm
std::vector< std::pair< bool, CRay3 > > m_vecCheckedRays
 
- Protected Attributes inherited from argos::CCI_CameraSensorDirectionalLEDDetectorAlgorithm
std::vector< SReadingm_vecReadings
 

Detailed Description

This class provides the most general interface to a camera.

The camera sensor enables the user to extract information from the images acquired by the simulated or by the physical camera.

Definition at line 30 of file camera_sensor_directional_led_detector_algorithm.h.

Constructor & Destructor Documentation

◆ CCameraSensorDirectionalLEDDetectorAlgorithm()

argos::CCameraSensorDirectionalLEDDetectorAlgorithm::CCameraSensorDirectionalLEDDetectorAlgorithm ( )

◆ ~CCameraSensorDirectionalLEDDetectorAlgorithm()

virtual argos::CCameraSensorDirectionalLEDDetectorAlgorithm::~CCameraSensorDirectionalLEDDetectorAlgorithm ( )
inlinevirtual

Member Function Documentation

◆ AddCheckedRay()

void argos::CCameraSensorDirectionalLEDDetectorAlgorithm::AddCheckedRay ( bool b_intersected,
const CRay3 & c_ray )
inline

◆ AddReading()

void argos::CCameraSensorDirectionalLEDDetectorAlgorithm::AddReading ( const CColor & c_color,
const CVector2 & c_center )
inline

◆ Init()

void argos::CCameraSensorDirectionalLEDDetectorAlgorithm::Init ( TConfigurationNode & t_tree)
virtual

Initializes the resource.

Parameters
t_treethe base of the XML configuration tree to parse
Exceptions
CARGoSExceptionif an error occurs

Reimplemented from argos::CCI_CameraSensorAlgorithm.

Definition at line 28 of file camera_sensor_directional_led_detector_algorithm.cpp.

◆ IsShowRays()

bool argos::CCameraSensorDirectionalLEDDetectorAlgorithm::IsShowRays ( )
inline

Returns true if the rays must be shown in the GUI.

Returns
true if the rays must be shown in the GUI.

Definition at line 110 of file camera_sensor_directional_led_detector_algorithm.h.

◆ SetShowRays()

void argos::CCameraSensorDirectionalLEDDetectorAlgorithm::SetShowRays ( bool b_show_rays)
inline

Sets whether or not the rays must be shown in the GUI.

Parameters
b_show_raystrue if the rays must be shown, false otherwise

Definition at line 118 of file camera_sensor_directional_led_detector_algorithm.h.

◆ Update()

void argos::CCameraSensorDirectionalLEDDetectorAlgorithm::Update ( const CSquareMatrix< 3 > & c_projection_matrix,
const std::array< CPlane, 6 > & arr_frustum_planes,
const CTransformationMatrix3 & c_camera_to_world_transform,
const CVector3 & c_camera_location,
const CVector3 & c_bounding_box_position,
const CVector3 & c_bounding_box_half_extents )
virtual

The documentation for this class was generated from the following files: