|
IVALab Python Libraries
Collection of code for computer vision and robotics with specific API.
|
Base/abstract channel class. More...

Public Member Functions | |
| def | __init__ (self, theConfig=CfgChannel()) |
| Constructor for base trigger class. More... | |
| def | send (self, theAnnouncement) |
Public Attributes | |
| config | |
Base/abstract channel class.
A channel implements a reporting scheme. In the python logging API, a channel is similar to the combination of a handler and a formatter. When a report is triggered, then the channel needs to take care of outputting to the desired reporting output "stream" the proper message.
Various channel types are possible, with stdout and a text file being more typical examples. Using stdout provides a similar functionality to a logger but with the signal to text conversion encapsulated within its processing structure. In contrast a logger would be given the converted string to start with.
The base class here implicitly uses stdout through a print statement. Overload via a derived class to send elsewhere.
| def __init__ | ( | self, | |
theConfig = CfgChannel() |
|||
| ) |
Constructor for base trigger class.
Reimplemented in toROSmsg, Assignment, toCSV, and toFile.
| def send | ( | self, | |
| theAnnouncement | |||
| ) |
Reimplemented in toCSV, Assignment, toROSmsg, and toFile.
| config |