# Publish system status with `qrb_ros_system_monitor` The `qrb_ros_system_monitor` sample application has various ROS nodes that publish system status information, such as CPU loading, memory usage, and disk space. ## Pipeline for `qrb_ros_system_monitor` The figure shows the pipeline, which collects system information with the `sysfs` node and some system standard command tools, and then publishes these data with ROS messages.
/proc/stat
/proc/meminfo
df -BM -T
/sys/class/thermal/
thermal_zone0/temp
cpu_monitor
memory_monitor
disk_monitor
temperature_monitor
battery_monitor
/sys/class/power_
supply/battery/capacity
/cpu
/memory
/disk
/temperature
/battery
swap_monitor
/swap
QRB ROS System Monitor
system_information
/proc/swaps
/system_info_server
sysfs
ROS node
Internal module
File or command
Topic
**Figure : `qrb_ros_system_monitor` pipeline** ## ROS nodes used in the `qrb_ros_system_monitor` pipeline | ROS node | Description | | --- | --- | | CpuMonitor
Copy to clipboard | Publishes the CPU loading information. | | MemoryMonitor
Copy to clipboard | Publishes the memory usage information. | | DiskMonitor
Copy to clipboard | Publishes the disk space information. | | SwapMonitor
Copy to clipboard | Publishes the swap space information. | | TemperatureMonitor
Copy to clipboard | Publishes the CPU temperature. | | BatteryMonitor
Copy to clipboard | Publishes the battery information. | | SystemInfoServer
Copy to clipboard | Publishes static system information, such as CPU count. | ## ROS topics used in the `qrb_ros_system_monitor` pipeline | ROS topic | Message type | Published/Subscribed by | Description | | --- | --- | --- | --- | | `/cpu` | `qrb_ros_system_monitor::CpuMonitor` | Published by `CpuMonitor` | Publishes the CPU loading information. | | `/memory` | `qrb_ros_system_monitor::MemoryMonitor` | Published by `MemoryMonitor` | Publishes the memory usage information. | | `/disk` | `qrb_ros_system_monitor::DiskMonitor` | Published by `DiskMonitor` | Publishes the disk space information. | | `/swap` | `qrb_ros_system_monitor::SwapMonitor` | Published by `SwapMonitor` | Publishes the swap space information. | | `/temperature` | `qrb_ros_system_monitor::TemperatureMonitor` | Published by `TemperatureMonitor` | Publishes the CPU temperature. | | `/battery` | `qrb_ros_system_monitor::BatteryMonitor` | Published by `BatteryMonitor` | Publishes the battery information. | | `/system_info_server` | `qrb_ros_system_monitor::SystemInfoServer` | Published by `SystemInfoServer` | Publishes static system information, such as CPU count. | ## Prerequisites You have **Set up the device** according to [Set up the environment for running sample applications](https://docs.qualcomm.com/doc/80-70033-265/topic/quick_start.html#setup-demo-qs). ## Run out-of-the-box `qrb_ros_system_monitor` **Steps** 1. Start two terminals, and run the following commands in each terminal to set up QIR SDK and ROS2 environment on the device. Value range of `ROS_DOMAIN_ID`: [0, 232] ssh root@[ip-addr] (ssh) mount -o remount,rw /usr (ssh) source /usr/share/qirp-setup.sh (ssh) export ROS_DOMAIN_ID=xx Copy to clipboard 2. In terminal 1, run the system monitor ROS Node. (ssh) ros2 run qrb_ros_system_monitor qrb_ros_system_monitor Copy to clipboard 3. In terminal 2, check the system information with ROS topic. (ssh) ros2 topic echo /cpu Copy to clipboard ## Build and run `qrb_ros_system_monitor` **Steps** 1. Build `qrb_ros_system_monitor` provided by the QIR SDK on the host. cd source setup.sh cd qirp-samples/platform/qrb_ros_system_monitor colcon build --merge-install --cmake-args ${CMAKE_ARGS} Copy to clipboard 2. Push `qrb_ros_system_monitor` to the device. Note Ensure that the QIR SDK is installed on the device. cd qirp-samples/platform/qrb_ros_system_monitor/install tar czvf qrb_ros_system_monitor.tar.gz include lib share scp qrb_ros_system_monitor.tar.gz root@[ip-addr]:/opt/ ssh root@[ip-addr] (ssh) mount -o remount,rw /usr (ssh) tar --no-overwrite-dir --no-same-owner -zxf /opt/qrb_ros_system_monitor.tar.gz -C /usr/ Copy to clipboard 3. Start two terminals, and run the following commands in each terminal to set up QIR SDK and ROS2 environment on the device. Value range of `ROS_DOMAIN_ID`: [0, 232] ssh root@[ip-addr] (ssh) source /usr/share/qirp-setup.sh (ssh) export ROS_DOMAIN_ID=xx Copy to clipboard 4. In terminal 1, run the system monitor ROS node. (ssh) ros2 run qrb_ros_system_monitor qrb_ros_system_monitor Copy to clipboard 5. In terminal 2, get the system information. (ssh) ros2 topic echo /cpu (ssh) ros2 topic echo /memory Copy to clipboard ## Limitation The `sysfs` node and Linux standard command-line tools collect the system information values. Therefore, if the `sysfs` path changes or the output format of command-line tools changes, those ROS nodes may not work as expected. Last Published: Sep 30, 2026 [Previous Topic Enable basic RPLIDAR handling with rplidar-ros2](https://docs.qualcomm.com/bundle/publicresource/80-70033-265/topics/rplidar-ros2_5_2_3.md) [Next Topic Run basic OCR with ocr\_service](https://docs.qualcomm.com/bundle/publicresource/80-70033-265/topics/ocr-service_5_2_7.md)