It gets the three absolute coordinate (world frame) of an object. More...

Inheritance diagram for ObjectPositionSensor:

List of all members.

Public Member Functions

 ObjectPositionSensor (ConfigurationParameters &params, QString prefix)
 Constructor and Configure.
 ~ObjectPositionSensor ()
 Destructor.
void save (ConfigurationParameters &params, QString prefix)
 Save the parameters of the ObjectPositionSensor into the ConfigurationParameters.
int size ()
 Return the number of neurons on which the Sensor will set the input: 3.
void update ()
 Update the state of the Sensor every time step.

Static Public Member Functions

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

Protected Member Functions

void resourceChanged (QString resourceName, ResourceChangeType changeType)
 The function called when a resource used here is changed.

Protected Attributes

wVector bbMax
 maximum 3D point for linearization
wVector bbMin
 minimum 3D point for linearization
bool linearize
 if true will use bbMin and bbMax to linearize the position into [0,1]
QString neuronsIteratorResource
 The name of th resource associated with the neural network iterator.
QString objectName
 the object resource name

Detailed Description

It gets the three absolute coordinate (world frame) of an object.

Definition at line 36 of file sensors.h.


Constructor & Destructor Documentation

Destructor.

Definition at line 58 of file sensors.cpp.


Member Function Documentation

void resourceChanged ( QString  resourceName,
ResourceChangeType  changeType 
) [protected, virtual]

The function called when a resource used here is changed.

Parameters:
resourceNamethe name of the resource that has changed.
chageTypethe type of change the resource has gone through (whether it was created, modified or deleted)

Reimplemented from ConcurrentResourcesUser.

Definition at line 96 of file sensors.cpp.

References Logger::info(), Sensor::name(), ObjectPositionSensor::neuronsIteratorResource, NeuronsIterator::nextNeuron(), ObjectPositionSensor::objectName, Sensor::resetNeededResourcesCheck(), NeuronsIterator::setCurrentBlock(), and NeuronsIterator::setGraphicProperties().

void save ( ConfigurationParameters params,
QString  prefix 
) [virtual]
int size ( ) [virtual]

Return the number of neurons on which the Sensor will set the input: 3.

Implements Sensor.

Definition at line 92 of file sensors.cpp.


Member Data Documentation

wVector bbMax [protected]

maximum 3D point for linearization

Definition at line 72 of file sensors.h.

Referenced by ObjectPositionSensor::ObjectPositionSensor(), ObjectPositionSensor::save(), and ObjectPositionSensor::update().

wVector bbMin [protected]

minimum 3D point for linearization

Definition at line 70 of file sensors.h.

Referenced by ObjectPositionSensor::ObjectPositionSensor(), ObjectPositionSensor::save(), and ObjectPositionSensor::update().

bool linearize [protected]

if true will use bbMin and bbMax to linearize the position into [0,1]

Definition at line 68 of file sensors.h.

Referenced by ObjectPositionSensor::ObjectPositionSensor(), ObjectPositionSensor::save(), and ObjectPositionSensor::update().

QString neuronsIteratorResource [protected]

The name of th resource associated with the neural network iterator.

Definition at line 64 of file sensors.h.

Referenced by ObjectPositionSensor::ObjectPositionSensor(), ObjectPositionSensor::resourceChanged(), ObjectPositionSensor::save(), and ObjectPositionSensor::update().


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