Browse by type
A lightweight ROS1/ROS2 mobile robot human-machine interaction software
This project is developed based on Qt5 and built with CMake, enabling the use of a single codebase in both ROS1/ROS2 systems. During compilation, the software automatically detects the ROS1/ROS2 environment variables and builds accordingly, achieving isolation between ROS communication and interface.
All features are self-implemented through custom drawing, making it easy to run on low-performance edge devices. The project has integrated CI to ensure compatibility across multiple ROS versions and system versions.

💡 Tip: Click the tabs below to switch between different platform build and usage instructions
🐧 Linux Platform
sudo apt-get update
sudo apt-get install -y \
qtbase5-dev \
qtbase5-private-dev \
libqt5svg5-dev \
qtbase5-dev-tools \
libeigen3-dev \
libgtest-dev \
libsdl2-dev \
libsdl2-image-dev
Systems with Ubuntu 20.04 and below come with an outdated CMake version that needs to be upgraded to 3.16+. Ubuntu 22.04 and above can skip this step.
wget https://cmake.org/files/v3.16/cmake-3.16.4-Linux-x86_64.sh -O cmake-install.sh
chmod +x cmake-install.sh
sudo ./cmake-install.sh --prefix=/usr/local --skip-license
# Clone repository
git clone https://github.com/chengyangkj/Ros_Qt5_Gui_App.git
cd Ros_Qt5_Gui_App
# Create build directory
mkdir build && cd build
# Configure and build
cmake ..
make -j$(nproc)
./build.sh
Replaces third-party library sources with Gitee mirror for faster compilation:
./build_cn.sh
Or manually specify mirrors:
mkdir build && cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-Ddockwidget_GIT_REPOSITORY=https://gitee.com/kqz2007/qt-advanced-docking-system_github.git \
-Dnlohmann_json_GIT_REPOSITORY=https://gitee.com/athtan/json.git \
-Dyaml-cpp_GIT_REPOSITORY=https://gitee.com/dragonet_220/yaml-cpp.git \
-Dwebsocketpp_GIT_REPOSITORY=https://gitee.com/open-source-software_1/websocketpp.git
make -j$(nproc)
After building, the startup script will be automatically copied to the build directory:
cd build
./start.sh
The startup script will automatically set library file paths and launch the program.
cd build
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
./ros_qt5_gui_app
cd build
make install
cd ../install/bin
./start.sh
🪟 Windows Platform
Windows platform recommends using vcpkg to manage dependencies. The project includes a vcpkg.json manifest file that automatically installs all dependencies.
Install dependencies using vcpkg:
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
.\bootstrap-vcpkg.bat
$env:VCPKG_ROOT = "C:\path\to\vcpkg"
[Environment]::SetEnvironmentVariable("VCPKG_ROOT", "C:\path\to\vcpkg", "User")
cd Ros_Qt5_Gui_App
vcpkg install --triplet x64-windows
Note: The first installation of large dependencies like Qt5 will take a long time (30-60 minutes) as they need to be compiled from source. Subsequent builds will use cache and be much faster.
# Clone repository
git clone https://github.com/chengyangkj/Ros_Qt5_Gui_App.git
cd Ros_Qt5_Gui_App
# Create build directory
mkdir build
cd build
# Configure CMake (specify vcpkg toolchain)
cmake .. `
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" `
-DCMAKE_BUILD_TYPE=Release `
-DBUILD_WITH_TEST=OFF
# Build
cmake --build . --config Release --parallel
# Install
cmake --install . --config Release
Replaces third-party library sources with Gitee mirror for faster compilation:
# Create build directory
mkdir build
cd build
# Configure CMake with Gitee mirror for acceleration
cmake .. `
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT\scripts\buildsystems\vcpkg.cmake" `
-DCMAKE_BUILD_TYPE=Release `
-DBUILD_WITH_TEST=OFF `
-Ddockwidget_GIT_REPOSITORY=https://gitee.com/kqz2007/qt-advanced-docking-system_github.git `
-Dnlohmann_json_GIT_REPOSITORY=https://gitee.com/athtan/json.git `
-Dyaml-cpp_GIT_REPOSITORY=https://gitee.com/dragonet_220/yaml-cpp.git `
-Dwebsocketpp_GIT_REPOSITORY=https://gitee.com/open-source-software_1/websocketpp.git
# Build
cmake --build . --config Release --parallel
# Install
cmake --install . --config Release
After building, the startup script will be automatically copied to the build directory:
cd build
.\start.bat
The startup script will automatically set library file paths and launch the program.
cd build
.\ros_qt5_gui_app.exe
cd build
cmake --install . --config Release
cd ..\install\bin
.\start.bat
Download the binary package for your system version from the release page:
.tar.gz package, extract and refer to Linux Method 3: Run After Installation to run the program.zip package, extract and refer to Windows Method 3: Run After Installation to run the programBefore first run, please ensure:
For detailed configuration instructions, please refer to User Guide
Ros_Qt5_Gui_App/
├── src/ # Source code directory
│ ├── core/ # Core module (main program entry)
│ ├── mainwindow/ # Main window and interface
│ ├── common/ # Common libraries
│ ├── basic/ # Basic data structures
│ ├── channel/ # Communication channels (ROS1/ROS2/ROSBridge)
│ └── plugin/ # Plugin system
├── install/ # Installation scripts
│ ├── linux/bin/ # Linux startup scripts
│ └── windows/bin/ # Windows startup scripts
├── doc/ # Documentation directory
├── cmake/ # CMake modules
└── CMakeLists.txt # Main CMake configuration file
Welcome to submit Issues and Pull Requests!
If you have any ideas or suggestions, feel free to submit them to 🌟 Wishlist/Requirements. They might be implemented someday!
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=chengyangkj/Ros_Qt5_Gui_App&type=Timeline" width="75%" />

For details, visit ROS_Flutter_Gui_App

Supports map editing

For details, visit ROS_Web_Gui_App
| Branch | Supported Platforms | Description |
|---|---|---|
| master | Win10 Ubuntu | ROS + QWidget + QGraphicsView custom visualization interface display |
| qml_hmi | Win10 Ubuntu | ROS + QML + C++ hybrid programming, QML self-drawn map, lidar and other visualization demos |
| simple | Win10 Ubuntu | ROS + QWidget + Librviz visualization display, CSDN blog "ROS Human-Machine Interaction Software Development" course implementation version |
| rviz_tree | Win10 Ubuntu | ROS + QWidget + Librviz native layer API management, no need to manually create layers |
| ros_qt_demo | Win10 Ubuntu | Original package created using catkin_create_qt_pkg, CMakeLists.txt configured for Qt5, can be directly compiled and run |
| ros2_qt_demo | ROS2 | Qt demo package running on ROS2 platform, CMakeLists.txt configured for Qt5, can be built u |
$ claude mcp add Ros_Qt5_Gui_App \
-- python -m otcore.mcp_server <graph>