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

本页目录

  • 如何放置
  • 输入和输出
  • 用法
  • 功能示例
  • 参考
Claude CodeCodexCursor
Luxonis 智能体工具包为你常用的编程智能体加载 Luxonis 上下文与技能,更快地基于 OAK 开发应用。
安装工具包

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()
Function called from within the create function to build the node. This function is useful for initialization, setting up inputs and outputs = stuff that cannot be perform in the constuctor.
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)

需要帮助?

请访问讨论论坛以获取技术支持或您可能有的任何其他问题。