SystemLogger¶
SystemLogger node is used to get system information of the device.
How to place it¶
pipeline = dai.Pipeline()
logger = pipeline.create(dai.node.SystemLogger)
dai::Pipeline pipeline;
auto logger = pipeline.create<dai::node::SystemLogger>();
Inputs and Outputs¶
┌──────────────┐
│ │
│ │ out
│ SystemLogger ├────────►
│ │
│ │
└──────────────┘
Message types
out
- SystemInformation
Usage¶
pipeline = dai.Pipeline()
logger = pipeline.create(dai.node.SystemLogger)
logger.setRate(1) # 1 Hz
# Send system info to the host via XLink
xout = pipeline.create(dai.node.XLinkOut)
xout.setStreamName("sysinfo")
logger.out.link(xout.input)
dai::Pipeline pipeline;
auto logger = pipeline.create<dai::node::SystemLogger>();\
logger->setRate(1.0f); // 1 Hz
// Send system info to the host via XLink
auto xout = pipeline.create<dai::node::XLinkOut>();
xout->setStreamName("sysinfo");
logger->out.link(xout->input);
Examples of functionality¶
Reference¶
-
class
depthai.node.
SystemLogger
-
class
Id
Node identificator. Unique for every node on a single Pipeline
-
getAssetManager
(*args, **kwargs) Overloaded function.
getAssetManager(self: depthai.Node) -> depthai.AssetManager
getAssetManager(self: depthai.Node) -> depthai.AssetManager
-
getInputRefs
(*args, **kwargs) Overloaded function.
getInputRefs(self: depthai.Node) -> list[depthai.Node.Input]
getInputRefs(self: depthai.Node) -> list[depthai.Node.Input]
-
getInputs
(self: depthai.Node) → list[depthai.Node.Input]
-
getName
(self: depthai.Node) → str
-
getOutputRefs
(*args, **kwargs) Overloaded function.
getOutputRefs(self: depthai.Node) -> list[depthai.Node.Output]
getOutputRefs(self: depthai.Node) -> list[depthai.Node.Output]
-
getOutputs
(self: depthai.Node) → list[depthai.Node.Output]
-
getParentPipeline
(*args, **kwargs) Overloaded function.
getParentPipeline(self: depthai.Node) -> depthai.Pipeline
getParentPipeline(self: depthai.Node) -> depthai.Pipeline
-
getRate
(self: depthai.node.SystemLogger) → float
-
setRate
(self: depthai.node.SystemLogger, hz: float) → None
-
class
-
class
dai::node
::
SystemLogger
: public dai::NodeCRTP<Node, 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
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"¶
-
void