此页面由 AI 自动翻译。查看英文原版

本页目录

  • 如何放置
  • 输入和输出
  • 用法
  • 功能示例
  • 参考

SystemLogger

Supported on:RVC2
SystemLogger 节点用于获取设备的 SystemInformation

如何放置

Python

Python
1pipeline = dai.Pipeline()
2logger = pipeline.create(dai.node.SystemLogger)

C++

C++
1dai::Pipeline pipeline;
2auto logger = pipeline.create<dai::node::SystemLogger>();

输入和输出

用法

Python

Python
1pipeline = dai.Pipeline()
2logger = pipeline.create(dai.node.SystemLogger)
3logger.setRate(1)  # 1 Hz
4
5sysLogQueue = logger.out.createOutputQueue()

C++

C++
1dai::Pipeline pipeline;
2auto logger = pipeline.create<dai::node::SystemLogger>();
3logger->setRate(1.0f);  // 1 Hz
4
5// Send system info to the host via XLink
6auto xout = pipeline.create<dai::node::XLinkOut>();
7xout->setStreamName("sysinfo");
8logger->out.link(xout->input);

功能示例

参考

class

dai::node::SystemLogger

#include SystemLogger.hpp
variable
Output out
Outputs SystemInformation[RVC4] message that carries various system information like memory and CPU usage, temperatures, ... For series 2 devices output SystemInformation message, for series 4 devices output SystemInformationRVC4 message
function
void setRate(float hz)
Specify logging rate, at which messages will be sent out
Parameters
  • hz: Sending rate in hertz (messages per second)
function
float getRate()
Gets logging rate, at which messages will be sent out
function
void buildInternal()
inline function
DeviceNodeCRTP()
inline function
DeviceNodeCRTP(const std::shared_ptr< Device > & device)
inline function
DeviceNodeCRTP(std::unique_ptr< Properties > props)
inline function
DeviceNodeCRTP(std::unique_ptr< Properties > props, bool confMode)
inline function
DeviceNodeCRTP(const std::shared_ptr< Device > & device, std::unique_ptr< Properties > props, bool confMode)

需要帮助?

请前往 Discussion Forum 获取技术支持或提出您可能有的任何其他问题。