iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Parameters

Module parameters allow users to tune the behavior of modules at run time. For example, an image filter may have a parameter to determine the amount of filtering to be applied. Parameters should be used by NRT module programmers every time they would otherwise use a function parameter, a global constant, etc.

NRT provides facilities to allow programmers to easily create parameters for modules out of any C++ data type. Module parameters encapsulate a value, which both can be used by the module's internal algorithms and can be changed from the outside by the module's user. In addition, it is possible for users to create poster, checker, and/or subscriber ports out of any module parameter, thereby allowing modules to change the parameters of other modules via posted messages.

parameters.png

Image above: Parameters of a module are listed in the NRT designer on the left column when you click on the module. The parameter values can be changed in the NRT designer. Hovering over the question mark icon next to each parameter provides additional information about the parameter. Finally, right-clicking on that icon allows one to create or delete poster/checker/subscriber ports tied to the parameter.

All parameter settings are also saved to disk when you save your workspace in the NRT designer.