The base abstract class for iterating over neurons of a neural network. More...

Public Member Functions | |
virtual | ~NeuronsIterator () |
Destructor. | |
virtual double | getOutput ()=0 |
Get the output of the current neuron. | |
virtual bool | nextNeuron ()=0 |
Go to the next neuron of the current block. | |
virtual bool | setCurrentBlock (QString blockName)=0 |
Set the current blocks of neurons to iterate. | |
virtual void | setGraphicProperties (QString label, double minValue, double maxValue, QColor color)=0 |
Set the graphic properties for the current neuron (in case it will be visualized on a GUI) | |
virtual void | setInput (double value)=0 |
Set the input of the current neuron. | |
Additional Inherited Members | |
![]() | |
enum | ResourceChangeType |
Detailed Description
The base abstract class for iterating over neurons of a neural network.
The neuron iterator helps on iterating the neurons of the neural network for setting/getting the input/output values of sensor/motor neurons
The NeuronsIterator allow to divide in functional blocks the neural network and give a name to such blocks.
Definition at line 55 of file neuroninterfaces.h.
Constructor & Destructor Documentation
|
inlinevirtual |
Destructor.
Definition at line 58 of file neuroninterfaces.h.
Member Function Documentation
|
pure virtual |
Get the output of the current neuron.
Implemented in EvonetIterator.
Referenced by FakeMotor::update(), EpuckWheelVelocityMotor::update(), MarXbotWheelVelocityMotor::update(), KheperaWheelVelocityMotor::update(), iCubArmPosToPostureMotor::update(), iCubTorsoPosToPostureMotor::update(), MarXbotColorMotor::update(), iCubArmMusclesMotor::update(), iCubHandMusclesMotor::update(), iCubTorsoMusclesMotor::update(), MarXbotAttachmentDeviceMotor::update(), iCubHeadMusclesMotor::update(), iCubArmPosToVelMotor::update(), iCubTorsoPosToVelMotor::update(), iCubHeadPosToVelMotor::update(), iCubConfigurableHandPosToVelMotor::update(), iCubHeadVelocityMotor::update(), iCubArmVelocityMotor::update(), and iCubTorsoVelocityMotor::update().
|
pure virtual |
Go to the next neuron of the current block.
- Returns
- true if a next neuron exist and set it as current neuron; false when it has been reached the end of current block
- Note
- if you need to go back at the beginning, use setCurrentBlock again
Implemented in EvonetIterator.
Referenced by FakeMotor::resourceChanged(), FakeSensor::resourceChanged(), iCubArmRandomMotor::resourceChanged(), iCubArmJointsSensor::resourceChanged(), ObjectPositionSensor::resourceChanged(), iCubArmPosToPostureMotor::resourceChanged(), iCubTorsoPosToPostureMotor::resourceChanged(), iCubArmMusclesMotor::resourceChanged(), iCubPalmTargetDistSensor::resourceChanged(), iCubHandMusclesMotor::resourceChanged(), iCubPalmTouchSensor::resourceChanged(), iCubTorsoMusclesMotor::resourceChanged(), iCubHeadMusclesMotor::resourceChanged(), iCubTorsoJointsSensor::resourceChanged(), iCubHeadJointsSensor::resourceChanged(), iCubArmPosToVelMotor::resourceChanged(), iCubPCHeadJointsSensor::resourceChanged(), iCubTorsoPosToVelMotor::resourceChanged(), iCubHandJointsSensor::resourceChanged(), iCubHeadPosToVelMotor::resourceChanged(), iCubArmVelocityMotor::resourceChanged(), iCubTorsoVelocityMotor::resourceChanged(), FakeMotor::update(), FakeSensor::update(), iCubArmJointsSensor::update(), EpuckWheelVelocityMotor::update(), KheperaWheelVelocityMotor::update(), MarXbotWheelVelocityMotor::update(), EpuckProximityIRSensor::update(), KheperaProximityIRSensor::update(), ObjectPositionSensor::update(), ColorCameraSensor::update(), MarXbotProximityIRSensor::update(), iCubArmPosToPostureMotor::update(), LinearCameraSensor::update(), iCubTorsoPosToPostureMotor::update(), EpuckGroundIRSensor::update(), KheperaSampledProximityIRSensor::update(), iCubArmMusclesMotor::update(), MarXbotGroundBottomIRSensor::update(), iCubPalmTargetDistSensor::update(), iCubHandMusclesMotor::update(), iCubPalmTouchSensor::update(), EpuckLinearCameraSensor::update(), MarXbotGroundAroundIRSensor::update(), iCubTorsoMusclesMotor::update(), MarXbotAttachmentDeviceMotor::update(), iCubHeadMusclesMotor::update(), iCubHandTouchSensor::update(), MarXbotLinearCameraSensor::update(), EpuckSampledProximityIRSensor::update(), iCubTorsoJointsSensor::update(), iCubHeadJointsSensor::update(), iCubArmPosToVelMotor::update(), iCubPCHeadJointsSensor::update(), iCubTorsoPosToVelMotor::update(), MarXbotTractionSensor::update(), iCubHandJointsSensor::update(), iCubHeadPosToVelMotor::update(), MarXbotSampledProximityIRSensor::update(), iCubConfigurableHandPosToVelMotor::update(), iCubHeadVelocityMotor::update(), MarXbotAttachmentDeviceSensor::update(), iCubArmVelocityMotor::update(), and iCubTorsoVelocityMotor::update().
|
pure virtual |
Set the current blocks of neurons to iterate.
You need to first call this method for iterate over neurons. This method will initialize the internal counters for iterate over neurons, and set the first current neuron. To move forward call the method nextNeuron.
- Parameters
-
blockName is the name given to the block
- Returns
- true if the current block is now the block defined with name blockName; false otherwise
Implemented in EvonetIterator.
Referenced by FakeMotor::resourceChanged(), FakeSensor::resourceChanged(), iCubArmRandomMotor::resourceChanged(), iCubArmJointsSensor::resourceChanged(), ObjectPositionSensor::resourceChanged(), iCubArmPosToPostureMotor::resourceChanged(), iCubTorsoPosToPostureMotor::resourceChanged(), iCubArmMusclesMotor::resourceChanged(), iCubPalmTargetDistSensor::resourceChanged(), iCubHandMusclesMotor::resourceChanged(), iCubPalmTouchSensor::resourceChanged(), iCubTorsoMusclesMotor::resourceChanged(), iCubHeadMusclesMotor::resourceChanged(), iCubTorsoJointsSensor::resourceChanged(), iCubHeadJointsSensor::resourceChanged(), iCubArmPosToVelMotor::resourceChanged(), iCubPCHeadJointsSensor::resourceChanged(), iCubTorsoPosToVelMotor::resourceChanged(), iCubHandJointsSensor::resourceChanged(), iCubHeadPosToVelMotor::resourceChanged(), iCubArmVelocityMotor::resourceChanged(), iCubTorsoVelocityMotor::resourceChanged(), FakeMotor::update(), FakeSensor::update(), iCubArmJointsSensor::update(), EpuckWheelVelocityMotor::update(), KheperaWheelVelocityMotor::update(), MarXbotWheelVelocityMotor::update(), EpuckProximityIRSensor::update(), KheperaProximityIRSensor::update(), ObjectPositionSensor::update(), ColorCameraSensor::update(), MarXbotProximityIRSensor::update(), iCubArmPosToPostureMotor::update(), LinearCameraSensor::update(), iCubTorsoPosToPostureMotor::update(), EpuckGroundIRSensor::update(), MarXbotColorMotor::update(), KheperaSampledProximityIRSensor::update(), MarXbotGroundBottomIRSensor::update(), iCubArmMusclesMotor::update(), iCubPalmTargetDistSensor::update(), iCubHandMusclesMotor::update(), iCubPalmTouchSensor::update(), EpuckLinearCameraSensor::update(), MarXbotGroundAroundIRSensor::update(), iCubTorsoMusclesMotor::update(), MarXbotAttachmentDeviceMotor::update(), iCubHeadMusclesMotor::update(), iCubHandTouchSensor::update(), MarXbotLinearCameraSensor::update(), EpuckSampledProximityIRSensor::update(), iCubTorsoJointsSensor::update(), iCubHeadJointsSensor::update(), iCubArmPosToVelMotor::update(), iCubPCHeadJointsSensor::update(), iCubTorsoPosToVelMotor::update(), MarXbotTractionSensor::update(), iCubHandJointsSensor::update(), iCubHeadPosToVelMotor::update(), MarXbotSampledProximityIRSensor::update(), iCubConfigurableHandPosToVelMotor::update(), iCubHeadVelocityMotor::update(), MarXbotAttachmentDeviceSensor::update(), iCubArmVelocityMotor::update(), and iCubTorsoVelocityMotor::update().
|
pure virtual |
Set the graphic properties for the current neuron (in case it will be visualized on a GUI)
- Parameters
-
label is the name to show on the GUI corresponding to current neuron minValue is the min value for the current neuron (for the GUI visualizing the activation value) maxValue is the max value for the current neuron (for the GUI visualizing the activation value) color is the color on which the above data will be displayed on the GUIs
Implemented in EvonetIterator.
Referenced by FakeMotor::resourceChanged(), FakeSensor::resourceChanged(), iCubArmRandomMotor::resourceChanged(), iCubArmJointsSensor::resourceChanged(), ObjectPositionSensor::resourceChanged(), iCubArmPosToPostureMotor::resourceChanged(), iCubTorsoPosToPostureMotor::resourceChanged(), iCubArmMusclesMotor::resourceChanged(), iCubPalmTargetDistSensor::resourceChanged(), iCubHandMusclesMotor::resourceChanged(), iCubPalmTouchSensor::resourceChanged(), iCubTorsoMusclesMotor::resourceChanged(), iCubHeadMusclesMotor::resourceChanged(), iCubTorsoJointsSensor::resourceChanged(), iCubHeadJointsSensor::resourceChanged(), iCubArmPosToVelMotor::resourceChanged(), iCubPCHeadJointsSensor::resourceChanged(), iCubTorsoPosToVelMotor::resourceChanged(), iCubHandJointsSensor::resourceChanged(), iCubHeadPosToVelMotor::resourceChanged(), iCubArmVelocityMotor::resourceChanged(), and iCubTorsoVelocityMotor::resourceChanged().
|
pure virtual |
Set the input of the current neuron.
Implemented in EvonetIterator.
Referenced by FakeSensor::update(), iCubArmJointsSensor::update(), EpuckProximityIRSensor::update(), KheperaProximityIRSensor::update(), ObjectPositionSensor::update(), ColorCameraSensor::update(), MarXbotProximityIRSensor::update(), LinearCameraSensor::update(), EpuckGroundIRSensor::update(), KheperaSampledProximityIRSensor::update(), MarXbotGroundBottomIRSensor::update(), iCubPalmTargetDistSensor::update(), iCubPalmTouchSensor::update(), EpuckLinearCameraSensor::update(), MarXbotGroundAroundIRSensor::update(), iCubHandTouchSensor::update(), MarXbotLinearCameraSensor::update(), EpuckSampledProximityIRSensor::update(), iCubTorsoJointsSensor::update(), iCubHeadJointsSensor::update(), iCubPCHeadJointsSensor::update(), MarXbotTractionSensor::update(), iCubHandJointsSensor::update(), MarXbotSampledProximityIRSensor::update(), and MarXbotAttachmentDeviceSensor::update().
The documentation for this class was generated from the following file:
- experiments/include/neuroninterfaces.h