Warning: include(php/utility.php): Failed to open stream: No such file or directory in /home/argos/argos3/doc/api/embedded/a00037.php on line 2

Warning: include(): Failed opening 'php/utility.php' for inclusion (include_path='.:/usr/lib64/php') in /home/argos/argos3/doc/api/embedded/a00037.php on line 2
The ARGoS Website

argos::CCI_ColoredBlobPerspectiveCameraSensor Class Referenceabstract

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

#include <ci_colored_blob_perspective_camera_sensor.h>

Inheritance diagram for argos::CCI_ColoredBlobPerspectiveCameraSensor:
Collaboration diagram for argos::CCI_ColoredBlobPerspectiveCameraSensor:

Classes

struct  SBlob
 An SBlob represents a generic colored 2D segment in the image. More...
 
struct  SReadings
 It represents the readings collected through the camera at a specific time step. More...
 

Public Types

typedef std::vector< SBlob * > TBlobList
 Vector of pointers to colored blobs. More...
 
- Public Types inherited from argos::CCI_Sensor
typedef std::map< std::string, CCI_Sensor *, std::less< std::string > > TMap
 

Public Member Functions

 CCI_ColoredBlobPerspectiveCameraSensor ()
 Constructor. More...
 
virtual ~CCI_ColoredBlobPerspectiveCameraSensor ()
 Destructor. More...
 
const SReadingsGetReadings () const
 Returns a reference to the current camera readings. More...
 
virtual void Enable ()=0
 Enables image acquisition and processing. More...
 
virtual void Disable ()=0
 Disables image acquisition and processing. More...
 
- Public Member Functions inherited from argos::CCI_Sensor
virtual ~CCI_Sensor ()
 Class destructor. More...
 
virtual void Init (TConfigurationNode &t_node)
 Initializes the sensor from the XML configuration tree. More...
 
virtual void Reset ()
 Resets the sensor to the state it had just after Init(). More...
 
virtual void Destroy ()
 Destroys the sensor. More...
 
- Public Member Functions inherited from argos::CBaseConfigurableResource
virtual ~CBaseConfigurableResource ()
 Class destructor. More...
 

Protected Attributes

SReadings m_sReadings
 

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. This interface defines also the basic type of information that at the moment it is possible to extract from image processing on the real robot, that is the position of the colored LED of neighboring robots. The camera can be enabled and disabled, in order to save computation time.

Definition at line 26 of file ci_colored_blob_perspective_camera_sensor.h.

Member Typedef Documentation

Vector of pointers to colored blobs.

Definition at line 72 of file ci_colored_blob_perspective_camera_sensor.h.

Constructor & Destructor Documentation

argos::CCI_ColoredBlobPerspectiveCameraSensor::CCI_ColoredBlobPerspectiveCameraSensor ( )
inline

Constructor.

Definition at line 101 of file ci_colored_blob_perspective_camera_sensor.h.

virtual argos::CCI_ColoredBlobPerspectiveCameraSensor::~CCI_ColoredBlobPerspectiveCameraSensor ( )
inlinevirtual

Destructor.

Definition at line 106 of file ci_colored_blob_perspective_camera_sensor.h.

Member Function Documentation

virtual void argos::CCI_ColoredBlobPerspectiveCameraSensor::Disable ( )
pure virtual

Disables image acquisition and processing.

Implemented in argos::CColoredBlobPerspectiveCameraDefaultSensor.

virtual void argos::CCI_ColoredBlobPerspectiveCameraSensor::Enable ( )
pure virtual

Enables image acquisition and processing.

Implemented in argos::CColoredBlobPerspectiveCameraDefaultSensor.

const CCI_ColoredBlobPerspectiveCameraSensor::SReadings & argos::CCI_ColoredBlobPerspectiveCameraSensor::GetReadings ( ) const

Returns a reference to the current camera readings.

Returns
A reference to the current camera readings.

Definition at line 85 of file ci_colored_blob_perspective_camera_sensor.cpp.

Member Data Documentation

SReadings argos::CCI_ColoredBlobPerspectiveCameraSensor::m_sReadings
protected

Definition at line 132 of file ci_colored_blob_perspective_camera_sensor.h.