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

Inheritance diagram for ObjectPositionSensor:

Public Member Functions

 ObjectPositionSensor (ConfigurationParameters &params, QString prefix)
 Constructor and Configure. More...
 
 ~ObjectPositionSensor ()
 Destructor. More...
 
void save (ConfigurationParameters &params, QString prefix)
 Save the parameters of the ObjectPositionSensor into the ConfigurationParameters. More...
 
int size ()
 Return the number of neurons on which the Sensor will set the input: 3. More...
 
void update ()
 Update the state of the Sensor every time step. More...
 
- Public Member Functions inherited from Sensor
 Sensor (ConfigurationParameters &params, QString prefix)
 Constructor and Configure. More...
 
 ~Sensor ()
 Destructor. More...
 
QString name ()
 Return the name of the Sensor. More...
 
void setName (QString name)
 Use this method for changing the name of the Sensor. More...
 
- Public Member Functions inherited from NoisyDevice
 NoisyDevice (ConfigurationParameters &params, QString prefix)
 Constructor and Configure. More...
 
 ~NoisyDevice ()
 Destructor. More...
 
- Public Member Functions inherited from ParameterSettableInConstructor
 ParameterSettableInConstructor (ConfigurationParameters &, QString)
 
- Public Member Functions inherited from ParameterSettable
void addObserver (RuntimeParameterObserver *obs)
 
getRuntimeParameter (QString paramName)
 
virtual ParameterSettableUIgetUIManager ()
 
virtual void postConfigureInitialization ()
 
void removeObserver (RuntimeParameterObserver *obs)
 
void setRuntimeParameter (QString paramName, T newvalue)
 
QString typeName () const
 
- Public Member Functions inherited from ConcurrentResourcesUser
void addUsableResource (QString resource)
 
void addUsableResources (QStringList resources)
 
void declareResource (QString name, T *resource, QString lockBuddy="")
 
void deleteResource (QString name)
 
T * getResource (QString name, bool *resourceExists=NULL)
 
bool hasResource (QString name) const
 
void removeAllUsableResources ()
 
void removeUsableResource (QString resource)
 
void removeUsableResources (QStringList resources)
 
virtual void shareResourcesWith (ResourcesUser *buddy)
 
void usableResources (QStringList resources)
 
bool usedResourcesExist (QStringList *nonExistingResources=NULL) const
 

Static Public Member Functions

static void describe (QString type)
 Describe all the parameter for configuring the iCubArmJointsSensor. More...
 
- Static Public Member Functions inherited from Sensor
static void describe (QString type)
 Describe all the parameter for configuring the Sensor. More...
 
- Static Public Member Functions inherited from NoisyDevice
static void describe (QString type)
 Describe all the parameter for configuring the Sensor. More...
 
- Static Public Member Functions inherited from ParameterSettable
static void describe (QString type)
 
static QString fullParameterDescriptionPath (QString type, QString param)
 
static QString fullSubgroupDescriptionPath (QString type, QString sub)
 

Protected Member Functions

void resourceChanged (QString resourceName, ResourceChangeType changeType)
 The function called when a resource used here is changed. More...
 
- Protected Member Functions inherited from Sensor
QString actualResourceNameForMultirobot (QString resourceName) const
 Returns the actual resource name to use. More...
 
void checkAllNeededResourcesExist ()
 Checks whether all resources we need are existing and throws an exception if they aren't. More...
 
void resetNeededResourcesCheck ()
 Resets the check on needed resources so that the next call to checkAllNeededResourcesExist() will perform the full check and not the quick one. More...
 
- Protected Member Functions inherited from NoisyDevice
double applyNoise (double v, double minValue, double maxValue) const
 Adds noise to the value. More...
 
- Protected Member Functions inherited from ParameterSettable
void notifyChangesToParam (QString paramName)
 
- Protected Member Functions inherited from ConcurrentResourcesUser
T * getResource ()
 
- Protected Member Functions inherited from ResourcesUser
 ResourcesUser (const ResourcesUser &other)
 
virtual void notifyResourceChange (ResourceHandler *resource, ResourceChangeType changeType)=0
 
ResourcesUseroperator= (const ResourcesUser &other)
 

Protected Attributes

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

Additional Inherited Members

- Public Types inherited from ParameterSettable
enum  Property
 
- Public Types inherited from ResourcesUser
typedef Resource::ResourceChangeType ResourceChangeType
 
- Public Types inherited from Resource
enum  ResourceChangeType
 
- Public Attributes inherited from ParameterSettable
 AllowMultiple
 
 Default
 
 IsList
 
 IsMandatory
 
- Static Public Attributes inherited from ParameterSettable
static const double Infinity
 
static const int MaxInteger
 
static const int MinInteger
 
- Static Protected Member Functions inherited from ParameterSettable
static Descriptor addTypeDescription (QString type, QString shortHelp, QString longHelp=QString(""))
 
static void setGraphicalEditor (QString type)
 

Detailed Description

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

Definition at line 156 of file sensors.h.

Constructor & Destructor Documentation

Destructor.

Definition at line 154 of file sensors.cpp.

Member Function Documentation

void describe ( QString  type)
static

Describe all the parameter for configuring the iCubArmJointsSensor.

Definition at line 158 of file sensors.cpp.

References ParameterSettable::addTypeDescription(), Sensor::describe(), ParameterSettable::IsList, and ParameterSettable::IsMandatory.

void resourceChanged ( QString  resourceName,
ResourceChangeType  changeType 
)
protectedvirtual

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 192 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 188 of file sensors.cpp.

Member Data Documentation

wVector bbMax
protected

maximum 3D point for linearization

Definition at line 192 of file sensors.h.

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

wVector bbMin
protected

minimum 3D point for linearization

Definition at line 190 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 188 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 184 of file sensors.h.

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

QString objectName
protected

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