Class SystemLogger
Defined in File SystemLogger.hpp
Inheritance Relationships
Base Type
public dai::DeviceNodeCRTP< DeviceNode, SystemLogger, SystemLoggerProperties >(Template Class DeviceNodeCRTP)
Class Documentation
-
class SystemLogger : public dai::DeviceNodeCRTP<DeviceNode, SystemLogger, SystemLoggerProperties>
SystemLogger node. Send system information periodically.
Public Functions
-
void setRate(float hz)
Specify logging rate, at which messages will be sent out
- Parameters:
hz – Sending rate in hertz (messages per second)
-
float getRate()
Gets logging rate, at which messages will be sent out
-
virtual void buildInternal() override
Function called from within the
createfunction to build the node. This function is useful for initialization, setting up inputs and outputs = stuff that cannot be perform in the constuctor.
-
inline DeviceNodeCRTP()
-
inline DeviceNodeCRTP(std::unique_ptr<Properties> props)
-
inline DeviceNodeCRTP(std::unique_ptr<Properties> props, bool confMode)
Public Members
-
Output out = {*this, {"out", DEFAULT_GROUP, {{{DatatypeEnum::SystemInformation, false}, {DatatypeEnum::SystemInformationS3, false}}}}}
Outputs SystemInformation[S3] message that carries various system information like memory and CPU usage, temperatures, … For series 2 devices outputs SystemInformation message, for series 3 devices outputs SystemInformationS3 message
Public Static Attributes
-
static constexpr const char *NAME = "SystemLogger"
-
void setRate(float hz)