Skip to main content

System Resource Monitor

Monitors system resources via ROS 2 nodes, including CPU, memory, temperature, disk, swap space, and battery monitors.

Prerequisites

Run

Execute in two separate terminals:

Terminal 1 — Start the system monitor node:

radxa@airbox$
source /opt/ros/jazzy/setup.bash
ros2 run qrb_ros_system_monitor qrb_ros_system_monitor

Terminal 2 — View monitor topics:

radxa@airbox$
source /opt/ros/jazzy/setup.bash
ros2 topic list
# Echo a topic of interest, e.g. CPU usage
ros2 topic echo /cpu

Expected Output

Terminal 1:

[INFO] [cpu_monitor]: CPU Monitor start
[INFO] [memory_monitor]: Memory Monitor start
[INFO] [temperature_monitor]: Temperature Monitor start
[INFO] [disk_monitor]: DISK Monitor start
[INFO] [swap_monitor]: Swap Monitor start
[INFO] [battery_monitor]: Battery Monitor start

Terminal 2 ros2 topic echo /cpu outputs real-time CPU load data.

Stop

Press Ctrl + C in each terminal to stop.

    You need to be logged into GitHub to post a comment. If you are already logged in, please ignore this message.

    Radxa-docs © 2026 by Radxa Computer (Shenzhen) Co.,Ltd. is licensed under CC BY 4.0