Camera sensors: two sensors (vertical and horizontal). Each sensor returns 0 when the target object is centered. Vertical and horizontal sensors. When a target object is seen sensors return a range of value from -1 to 1 where 0 menas that the target object has been focused. More...

Inheritance diagram for ColorCameraSensor:

List of all members.

Public Member Functions

 ColorCameraSensor (ConfigurationParameters &params, QString prefix)
 Constructor.
void save (ConfigurationParameters &params, QString prefix)
 Save the parameters of the ColorCameraSensor into the ConfigurationParameters.
int size ()
 Return the number of neurons on which the Sensor will set the input: 2*nObjects.
void update ()
 update the state of the sensory neurons every time step

Static Public Member Functions

static void describe (QString type)
 Describe all the parameter for configuring the ColorCameraSensor.

Public Attributes

QMap< WObject *, ImagePointm_objectsRetinaPosition
 The map associating to each object its position on the retina.

Detailed Description

Camera sensors: two sensors (vertical and horizontal). Each sensor returns 0 when the target object is centered. Vertical and horizontal sensors. When a target object is seen sensors return a range of value from -1 to 1 where 0 menas that the target object has been focused.

Definition at line 163 of file icubsensors.h.


Constructor & Destructor Documentation


Member Function Documentation

void describe ( QString  type) [static]
void save ( ConfigurationParameters params,
QString  prefix 
) [virtual]

Save the parameters of the ColorCameraSensor into the ConfigurationParameters.

Parameters:
paramsis the ConfigurationParameters where save the parameters
prefixis the path prefix for the parameters to save

Reimplemented from iCubSensor.

Definition at line 182 of file icubsensors.cpp.

References ConfigurationParameters::createParameter(), and ConfigurationParameters::startObjectParameters().

int size ( ) [virtual]

Return the number of neurons on which the Sensor will set the input: 2*nObjects.

Implements Sensor.

Definition at line 255 of file icubsensors.cpp.


Member Data Documentation

The map associating to each object its position on the retina.

Each point is normalized (i.e. is in [0, 1]x[0, 1])

Definition at line 183 of file icubsensors.h.

Referenced by ColorCameraSensor::update().


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