Skip to main content

qrb_ros_system_monitor 的管道流程

下图展示了管道流程,它通过 sysfs 节点和一些系统标准命令行工具收集系统信息,然后将这些数据以 ROS 消息发布出去。
QRB ROS System Monitor modules reading proc, sysfs, and df sources and publishing the cpu, memory, disk, temperature, battery, and swap topics.

qrb_ros_system_monitor 管道。

qrb_ros_system_monitor 管道中使用的 ROS 节点

下表列出了 qrb_ros_system_monitor 管道中使用的 ROS 节点,并说明每个节点发布的内容。

qrb_ros_system_monitor 管道中使用的 ROS 话题

下表列出了 qrb_ros_system_monitor 管道中使用的 ROS 话题,以及每个话题的消息类型和说明。

qrb_ros_system_monitor 管道中 ROS 话题所使用的 ROS 服务

下表列出了 qrb_ros_system_monitor 管道中使用的 ROS 服务,以及每个服务的类型和说明。

前提条件

你已根据安装 QIR SDK完成设备设置,并在设备上安装了 ROS2 Jazzy 和 Qualcomm Intelligent Robotics (QIR) SDK。

开箱即用运行 qrb_ros_system_monitor

1

在终端 1 中运行 qrb_ros_system_monitor

Run the system monitor
2

在终端 2 中,获取该节点的话题并根据需要检查系统状态

List the topics and echo the system status

限制

系统信息值由 sysfs 节点和 Linux 标准命令行工具收集。因此,如果 sysfs 路径变更或命令行工具的输出格式变更,那些 ROS 节点可能无法正常工作。