Class SystemLogger

Inheritance Relationships

Base Type

Class Documentation

class SystemLogger : public dai::NodeCRTP<Node, SystemLogger, SystemLoggerProperties>

SystemLogger node. Send system information periodically.

Public Functions

SystemLogger(const std::shared_ptr<PipelineImpl> &par, int64_t nodeId)
SystemLogger(const std::shared_ptr<PipelineImpl> &par, int64_t nodeId, std::unique_ptr<Properties> props)
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

Public Members

Output out = {*this, "out", Output::Type::MSender, {{DatatypeEnum::SystemInformation, false}}}

Outputs SystemInformation message that carries various system information like memory and CPU usage, temperatures, …

Public Static Attributes

static constexpr const char *NAME = "SystemLogger"