Aquila  2.0 prealpha
Cognitive Robotics Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
SOMInterface Class Reference

#include <somInterface.h>

Inheritance diagram for SOMInterface:
Interface

Public Slots

void sendParameters (float learningRate, int numSubIterations, int numOutputs, int iterationPause)
 Sends parameters.
 
void sendVisualiseLearning (int visualiseLearning)
 Sends visualise learning flag.
 
- Public Slots inherited from Interface
void sendAbortRequest ()
 Sends request to abort module.
 
void sendStartRequest ()
 Sends request to start module.
 
void sendStopRequest ()
 Sends request to stop module.
 
void sendSimulationMode (int simulationMode)
 Sends simulation module to module.
 

Signals

void mapReceived (QVector< float > map)
 
void numInputsReceived (int numInputs)
 
void trainingTimeReceived (float time)
 
void dataPointLimitsReceived (float low, float hi)
 
void parametersReceived (float learningRate, int numSubIterations, int numOutputs, int iterationPause)
 
- Signals inherited from Interface
void gpuListReceived (QStringList gpuList)
 
void progressReceived (int progress)
 
void statusReceived (int statusID)
 

Public Member Functions

 SOMInterface (GUI *pGUI)
 Constructor.
 
void sendSubIterations (int numSubIterations)
 Sends sub-iterations.
 
void sendNumOutputs (int numOutputs)
 Sends number of outputs.
 
void sendIterationsPause (int iterationPause)
 Sends iteration pause.
 
void sendLearningRate (double learningRate)
 Sends learning rate.
 
void sendTrainingRequest (QString fileName)
 Sends training request to localhost module.
 
void sendTrainingRequest (int numSamples, int numInputs, QVector< double > trainingData)
 Sends training request together with training date to remotehost running module.
 
void sendSaveRequest (QString fileName)
 Sends request to save self-organising map.
 
- Public Member Functions inherited from Interface
 Interface (GUI *pGUI)
 Constructor.
 
void sendGpuListRequest ()
 Sends request for list of GPU devices found on module server.
 
void sendCpuRequest ()
 Sends CPU request to module, which will updates its execution mode to CPU.
 
void sendParametersRequest ()
 Sends parameters request to module.
 
void sendQuitRequest ()
 Sends request to quit module.
 
void close ()
 Closes module.
 
void sendGpuID (int gpuID)
 Sends ID of selected GPU device to module.
 
void sendGpuIDs (QVector< int > gpuIDs)
 Sends ID of selected GPU devices to module.
 
 Interface ()
 Constructor.
 
void sendMessage (string message)
 Sends message to the output port.
 
void sendGpuList ()
 Sends a list of detected GPU devices to the output port.
 
void sendParameters ()
 Sends default parameters to the output port.
 
void sendStatus (int status)
 Sends module status to the output port.
 
bool configure (ResourceFinder &rf)
 Configures module.
 
 Interface ()
 
void sendMessage (string message)
 
void sendGpuList ()
 
void sendParameters ()
 
void sendStatus (int status)
 
bool configure (ResourceFinder &rf)
 
 Interface ()
 
void sendStatus (int status)
 
void sendMessage (string message)
 
void sendGpuList ()
 
void sendParameters ()
 
void sendActivity ()
 Sends activity.
 
bool configure (ResourceFinder &rf)
 
 Interface ()
 
void sendStatus (int status)
 
void sendMessage (string message)
 
void sendGpuList ()
 
void sendParameters (float learningRate, float momentum, float threshold, float weightRange, int iterations, int seed, int numFastNeurons, int numSlowNeurons, int ioDeltaT, int fastDeltaT, int slowDeltaT, int debuggingLevel, int portUpdateInterval)
 Sends parameters to the output port.
 
void sendError (int iteration, float error)
 Sends error at particular iteration to the output port.
 
void sendProgress (int progress)
 Sends training progress (in %) to the output port.
 
void sendNetwork ()
 Sends the weights of neural network to the output port.
 
void sendErrors ()
 Sends the final training errors the output port.
 
bool configure (ResourceFinder &rf)
 
 Interface ()
 
void sendParameters (float learningRate, int numSubIterations, int numOutputs, int iterationPause)
 Sends parameters to the output port.
 
void sendStatus (int status)
 
void sendMap ()
 Sends the weights of self-organising map to the output port.
 
void sendMessage (string message)
 
void sendGpuDeviceList ()
 Sends a list of detected GPU devices to the output port.
 
void sendNumInputs ()
 Sends number of inputs to the output port.
 
void sendTrainingTime ()
 Sends the total training time (in ms) to the output port.
 
void sendDataPointLimits ()
 Sends the original data min and max values to the output port.
 
void sendProgress (int progress)
 
bool configure (ResourceFinder &rf)
 
 Interface ()
 
void sendMessage (string message)
 
void sendGpuList ()
 
void sendParameters ()
 
void sendStatus (int status)
 
bool configure (ResourceFinder &rf)
 

Protected Member Functions

void processPortData ()
 Processes data received from module.
 
- Protected Member Functions inherited from Interface
virtual void processGpuList ()
 Processes data about GPU devices found on server running module.
 
virtual void printMessage ()
 Prints out or logs message received from module.
 

Additional Inherited Members

- Public Attributes inherited from Interface
Image leftCam
 
Image rightCam
 
Image leftMotion
 
Image rightMotion
 
- Protected Attributes inherited from Interface
GUImodule
 
yarp::os::Port inputPort
 
yarp::os::Port outputPort
 
yarp::os::Bottle receivedBottle
 

Detailed Description

Interface between SOM GUI and SOM module

Constructor & Destructor Documentation

SOMInterface::SOMInterface ( GUI pGUI)

Constructor.

Parameters
[in]pGUI- pointer to GUI

Member Function Documentation

void SOMInterface::dataPointLimitsReceived ( float  low,
float  hi 
)
signal
void SOMInterface::mapReceived ( QVector< float >  map)
signal
void SOMInterface::numInputsReceived ( int  numInputs)
signal
void SOMInterface::parametersReceived ( float  learningRate,
int  numSubIterations,
int  numOutputs,
int  iterationPause 
)
signal
void SOMInterface::processPortData ( )
protectedvirtual

Processes data received from module.

Reimplemented from Interface.

void SOMInterface::sendIterationsPause ( int  iterationPause)

Sends iteration pause.

Parameters
[in]iterationPause- iteration pause (in ms)
void SOMInterface::sendLearningRate ( double  learningRate)

Sends learning rate.

Parameters
[in]learningRate- learning rate
void SOMInterface::sendNumOutputs ( int  numOutputs)

Sends number of outputs.

Parameters
[in]numOutputs- number of outputs
void SOMInterface::sendParameters ( float  learningRate,
int  numSubIterations,
int  numOutputs,
int  iterationPause 
)
slot

Sends parameters.

Parameters
[in]learningRate- learning rate
[in]numSubIterations- number of sub-iterations
[in]numOutputs- number of outputs
[in]iterationPause- iteration pause
void SOMInterface::sendSaveRequest ( QString  fileName)

Sends request to save self-organising map.

Parameters
[in]fileName- name of the training file
void SOMInterface::sendSubIterations ( int  numSubIterations)

Sends sub-iterations.

Parameters
[in]numSubIterations- number of sub-iterations
void SOMInterface::sendTrainingRequest ( QString  fileName)

Sends training request to localhost module.

Parameters
[in]fileName- name of the training file
Note
This function is called when a localhost module is asked to load a training file.
Remotehost modules need to be sent training data via port using sendTrainingRequest function.
void SOMInterface::sendTrainingRequest ( int  numSamples,
int  numInputs,
QVector< double >  trainingData 
)

Sends training request together with training date to remotehost running module.

Parameters
[in]numSamples- number of samples
[in]numInputs- number of inputs
[in]trainingData- training data
void SOMInterface::sendVisualiseLearning ( int  visualiseLearning)
slot

Sends visualise learning flag.

Parameters
[in]visualiseLearning- learning visualisation flag
void SOMInterface::trainingTimeReceived ( float  time)
signal

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