A real-time system monitoring dashboard for ROS 2. It provides a web-based UI that displays live CPU, memory, network bandwidth, USB bus utilization, and load average statistics, a scrollable /rosout log viewer, and interactive node and topic browsers β all served from a single ROS 2 node.
By default, the dashboard shows claimed USB bandwidth based on device speeds. For actual real-time USB traffic monitoring (useful for detecting camera saturation), enable usbmon:
# Load the usbmon kernel module
sudo modprobe usbmon
# Mount debugfs (skip if already mounted)
mountpoint -q /sys/kernel/debug || sudo mount -t debugfs none /sys/kernel/debug
# Verify usbmon is available
sudo ls /sys/kernel/debug/usb/usbmon/When usbmon is available and the process has read access, USB bus cards will show a "π Live" badge with actual bandwidth usage. Without it, only claimed bandwidth is displayed.
Note: The http_server process needs read access to
/sys/kernel/debug/usb/usbmon/0u. Run with sudo or adjust permissions as needed.
flowchart TB
subgraph Browser["Browser (http://hostname:2525)"]
direction LR
Stats["System Stats<br/>(polls /api/system)"]
Logs["/rosout Log Viewer<br/>(WebSocket β rosbridge :9090)"]
end
subgraph Backend
direction LR
HTTP["http_server<br/>(C++ node)<br/>:2525"]
ROS["rosbridge_server<br/>(WebSocket node)<br/>:9090"]
end
subgraph System
direction LR
Proc["/proc/stat<br/>/proc/meminfo<br/>/proc/loadavg"]
Graph["ROS 2 graph"]
end
Stats -->|HTTP GET| HTTP
Logs -->|ws://| ROS
HTTP --> Proc
ROS --> Graph
- ROS 2 (Humble, Iron, or Jazzy)
- colcon build tool
- Node.js β₯ 18 and npm (used at build time to compile the frontend)
- cpp-httplib development headers
sudo apt update
sudo apt install ros-${ROS_DISTRO}-rosbridge-server libcpp-httplib-dev nodejs npmNote: If your distro's Node.js is too old, use nvm to install a recent version.
Clone into a colcon workspace and build:
mkdir -p ~/ros2_ws/src
cd ~/ros2_ws/src
git clone https://github.com/namo-robotics/ros2_system_webview.git
cd ~/ros2_ws
source /opt/ros/${ROS_DISTRO}/setup.bash
colcon build
source install/setup.bashThe build automatically runs npm install && npm run build inside the web/ directory and installs the static export to share/system_webview/web.
The included launch file starts two nodes: rosbridge_websocket and the http_server:
ros2 launch system_webview main.launch.pyThen open http://localhost:2525 in a browser.
ros2 launch system_webview main.launch.py http_port:=8080Note: The rosbridge WebSocket port is hard-coded to
9090because the web frontend expects this port.
The compiled webapp files are committed directly into the repo so that the ros2 package can be built without dependencies on npm or javascript packages.
To compile the web app and build the full ros2 package, run:
./build.shA helper script runs the Next.js dev server (with hot-reload on port 3000), the C++ HTTP server (API on port 2525), and rosbridge side-by-side:
# Build once first
colcon build --packages-select system_webview
source install/setup.bash
./dev.sh
# β Web UI: http://localhost:3000 (hot-reload)
# β Stats API: http://localhost:2525/api/system
# β rosbridge: ws://localhost:9090| Package | Purpose |
|---|---|
rclcpp |
ROS 2 C++ client library |
rosbridge_server |
WebSocket bridge for the browser |
libcpp-httplib-dev |
Header-only C++ HTTP server library |
This project is licensed under the MIT License β see the LICENSE file for details.



