Aquila
2.0 prealpha
Cognitive Robotics Architecture
|
#include <interface.h>
Classes | |
struct | Image |
Public Slots | |
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 | gpuListReceived (QStringList gpuList) |
void | progressReceived (int progress) |
void | statusReceived (int statusID) |
Public Member Functions | |
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) |
Public Attributes | |
Image | leftCam |
Image | rightCam |
Image | leftMotion |
Image | rightMotion |
Protected Member Functions | |
virtual void | processPortData () |
Processes module specific data received from module. | |
virtual void | processGpuList () |
Processes data about GPU devices found on server running module. | |
virtual void | printMessage () |
Prints out or logs message received from module. | |
Protected Attributes | |
GUI * | module |
yarp::os::Port | inputPort |
yarp::os::Port | outputPort |
yarp::os::Bottle | receivedBottle |
Base class for interfacing GUIs and modules
Interface::Interface | ( | ) |
Constructor.
Interface::Interface | ( | ) |
Interface::Interface | ( | ) |
Interface::Interface | ( | ) |
Interface::Interface | ( | ) |
Interface::Interface | ( | ) |
bool Interface::close | ( | ) |
Closes module.
Closes interface.
bool Interface::configure | ( | ResourceFinder & | rf | ) |
bool Interface::configure | ( | ResourceFinder & | rf | ) |
Configures module.
[in] | rf | - ResourceFinder object |
bool Interface::configure | ( | ResourceFinder & | rf | ) |
bool Interface::configure | ( | ResourceFinder & | rf | ) |
bool Interface::configure | ( | ResourceFinder & | rf | ) |
bool Interface::configure | ( | ResourceFinder & | rf | ) |
|
signal |
|
protectedvirtual |
Prints out or logs message received from module.
|
protectedvirtual |
Processes data about GPU devices found on server running module.
|
protectedvirtual |
Processes module specific data received from module.
Reimplemented in SOMInterface, MTRNNInterface, ESNInterface, TrackerInterface, BlankInterface, and XxxxxxxxxInterface.
|
signal |
|
slot |
Sends request to abort module.
void Interface::sendActivity | ( | ) |
Sends activity.
void Interface::sendCpuRequest | ( | ) |
Sends CPU request to module, which will updates its execution mode to CPU.
void Interface::sendDataPointLimits | ( | ) |
Sends the original data min and max values to the output port.
void Interface::sendError | ( | int | iteration, |
float | error | ||
) |
Sends error at particular iteration to the output port.
[in] | iteration | - current itertaion |
[in] | error | - current error |
void Interface::sendErrors | ( | ) |
Sends the final training errors the output port.
void Interface::sendGpuDeviceList | ( | ) |
Sends a list of detected GPU devices to the output port.
void Interface::sendGpuID | ( | int | gpuID | ) |
Sends ID of selected GPU device to module.
[in] | gpuID | - GPU device identification number |
void Interface::sendGpuIDs | ( | QVector< int > | gpuIDs | ) |
Sends ID of selected GPU devices to module.
[in] | gpuIDs | - vetor of GPU device identification numbers |
void Interface::sendGpuList | ( | ) |
void Interface::sendGpuList | ( | ) |
void Interface::sendGpuList | ( | ) |
Sends a list of detected GPU devices to the output port.
void Interface::sendGpuList | ( | ) |
void Interface::sendGpuList | ( | ) |
void Interface::sendGpuListRequest | ( | ) |
Sends request for list of GPU devices found on module server.
void Interface::sendMap | ( | ) |
Sends the weights of self-organising map to the output port.
void Interface::sendMessage | ( | string | message | ) |
void Interface::sendMessage | ( | string | message | ) |
void Interface::sendMessage | ( | string | message | ) |
Sends message to the output port.
[in] | message | - a message to be sent to the output port |
void Interface::sendMessage | ( | string | message | ) |
void Interface::sendMessage | ( | string | message | ) |
void Interface::sendMessage | ( | string | message | ) |
void Interface::sendNetwork | ( | ) |
Sends the weights of neural network to the output port.
void Interface::sendNumInputs | ( | ) |
Sends number of inputs to the output port.
void Interface::sendParameters | ( | float | learningRate, |
int | numSubIterations, | ||
int | numOutputs, | ||
int | iterationPause | ||
) |
Sends parameters to the output port.
[in] | learningRate | - initial learning rate |
[in] | numSubIterations | - number of sub-iterations |
[in] | numOutputs | - number of outputs |
[in] | iterationPause | - iteration pause |
void Interface::sendParameters | ( | float | learningRate, |
float | momentum, | ||
float | weightRange, | ||
float | threshold, | ||
int | iterations, | ||
int | seed, | ||
int | numFastNeurons, | ||
int | numSlowNeurons, | ||
int | ioDeltaT, | ||
int | fastDeltaT, | ||
int | slowDeltaT, | ||
int | debuggingLevel, | ||
int | portUpdateInterval | ||
) |
Sends parameters to the output port.
[in] | learningRate | - learning rate |
[in] | momentum | - momentum |
[in] | weightRange | - initial range of weights |
[in] | threshold | - error threshold |
[in] | iterations | - number of iterations |
[in] | seed | - random number generator seed |
[in] | numFastNeurons | - number of fast neurons |
[in] | numSlowNeurons | - number of slow neurons |
[in] | ioDeltaT | - input-output delta-t value |
[in] | fastDeltaT | - fast delta-t value |
[in] | slowDeltaT | - slow delta-t value |
[in] | debuggingLevel | - debugging level |
[in] | portUpdateInterval | - port update interval (Aquila plotting data) |
void Interface::sendParameters | ( | ) |
void Interface::sendParameters | ( | ) |
Sends default parameters to the output port.
void Interface::sendParameters | ( | ) |
void Interface::sendParameters | ( | ) |
void Interface::sendParametersRequest | ( | ) |
Sends parameters request to module.
void Interface::sendProgress | ( | int | progress | ) |
Sends training progress (in %) to the output port.
Sends current training progress (in %) to the output port.
[in] | progress | - current progress |
void Interface::sendProgress | ( | int | progress | ) |
void Interface::sendQuitRequest | ( | ) |
Sends request to quit module.
|
slot |
Sends simulation module to module.
[in] | simulationMode | - simulation mode |
|
slot |
Sends request to start module.
void Interface::sendStatus | ( | int | status | ) |
void Interface::sendStatus | ( | int | status | ) |
void Interface::sendStatus | ( | int | status | ) |
void Interface::sendStatus | ( | int | status | ) |
void Interface::sendStatus | ( | int | status | ) |
Sends module status to the output port.
Sends module state to the output port.
[in] | status | - current status |
void Interface::sendStatus | ( | int | status | ) |
|
slot |
Sends request to stop module.
void Interface::sendTrainingTime | ( | ) |
Sends the total training time (in ms) to the output port.
|
signal |
|
protected |
Image Interface::leftCam |
Image Interface::leftMotion |
|
protected |
|
protected |
|
protected |
Image Interface::rightCam |
Image Interface::rightMotion |