Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ASSET_LICENSES.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@
## SPR 2027 地图

`resources/images/rmuc2027.*`、`rmul3v3.*` 和 `rmul1v1.*` 依据 RoboMaster 高校赛务发布的 [RMU 2027 场地图纸与可移动道具](https://bbs.robomaster.com/article/1970956) 制作。SPR 调整了俯视角度、材质、照明和显示配色,SVG 小地图按场地结构重绘。地图按 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) 提供,复用时应标注原作者、出处与改动,并遵守非商业及相同方式共享条款。

## README 运行截图

`docs/images/readme/` 展示 SPR 客户端的指挥屏、操作手 HUD 和全屏战况。截图由 SPR 从 `test_mainwindow_tactical_hotkey_integration.cpp` 的本机测试画面截取。队伍状态、计时和血量由测试填充,主图传截图使用仓库已登记的 `resources/images/tactical_camera_preview_default.png` 作为演示帧。画面内的地图和其余资源继续适用各自许可。地图署名和授权见上一节。
83 changes: 67 additions & 16 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,81 @@

[简体中文](README.md) · [English](README.en.md)

SPR's RoboMaster 2027 custom terminal, developed from [Fudan EGA's RM26 Custom Client](https://github.com/ClearWei/RM26_Client). The C++ and Qt source is available under the [MIT License](LICENSE). See the [asset register](ASSET_LICENSES.md) for media provenance.
A **RoboMaster 2027 custom client** maintained by the China University of Petroleum (Beijing) SPR team. Pilots can monitor their robot and match state over the main video feed. The command screen brings together both rosters, the arena map, battlefield events and the industrial camera. The project builds on Fudan EGA's RM26 Custom Client. [Upstream project](https://github.com/ClearWei/RM26_Client)

## Current client
[Match profiles](#match-profiles) · [Client views](#client-views) · [SPR changes](#spr-2027-changes) · [Quick start](#quick-start) · [Integration and verification](#integration-and-verification)

- Press `P` to choose RMUC, RMUL 3v3 or RMUL 1v1 and select the assigned red or blue seat.
- The command screen combines the arena map, both rosters, objectives, match events and the industrial camera preview. Press `M` for the expanded map.
- Use `Ctrl+T` to switch between the pilot video and command views. Hold `Tab` for match statistics. Heavy robot effects follow the logged-in team. [Keyboard shortcuts](docs/getting-started/keyboard-shortcuts.md)
> The screenshots show the running client with local test data. Windows and Ubuntu builds and automated tests have passed. Integration with the official 2027 engine, venue network and video hardware is pending.

## Official references
![RMUC command screen with the arena map, red and blue rosters, and match events](docs/images/readme/command-rmuc.png)

The 2027 implementation references the [communication protocol](https://bbs.robomaster.com/wiki/20204847/1969151), the [RMUC rulebook](https://bbs.robomaster.com/wiki/20204847/1969149) and the [RMUL rulebook](https://bbs.robomaster.com/wiki/20204847/1969150). The arena images are derived from the [official 2027 field drawings](https://bbs.robomaster.com/article/1970956), under the terms recorded in the [asset register](ASSET_LICENSES.md).
## Match profiles

Press `P`, choose the competition profile, then select the assigned red or blue seat. These are the seats offered by the login menu. The roster can also display other robots reported by the match data. Blue wire IDs are the corresponding red IDs plus 100.

| Profile | Config value | Arena | Login seats |
| --- | --- | --- | --- |
| RMUC | `rmuc2027` | 28 × 15 m | Heavy 1, infantry 3 and 4, aerial system 6 |
| RMUL 3v3 | `rmul3v3` | 12 × 8 m | Heavy 1 and infantry 3 |
| RMUL 1v1 | `rmul1v1` | 5 × 5 m | Infantry 3 |

[3v3 command screen](docs/images/readme/command-rmul-3v3.png) · [1v1 command screen](docs/images/readme/command-rmul-1v1.png)

## Client views

| View | What it shows | How to open it |
| --- | --- | --- |
| Pilot settings | Competition profile and seat selection. Team-specific indicators follow the selected seat. | `P` |
| Command screen | Match clock, score, both rosters, arena map, objective health where applicable, match events and a camera preview. | `Ctrl+T` switches between the command screen and pilot video. |
| Map or industrial-camera priority | The central area switches between the map and camera. A secondary map remains available in camera-priority mode. | `Ctrl+Y` on the command screen |
| Pilot video | A full-screen video feed with the shared match header, robot HUD, minimap and interaction prompts. | `Ctrl+T` |
| Full-screen match status | Both rosters and match statistics. RMUC shows base and outpost health, while RMUL includes the arena map. | Hold `Tab`. Release it or press `Esc` to close. |
| Expanded map | Arena geometry, reported locations and objective state for the selected profile and team perspective. | `M` |
| Role panels and match results | Ammo supply, exchange or role-specific actions where available. Results can be dismissed via the close button or `Esc`. | `O`, `I` or `H` from pilot view, depending on the action |

The video background below is a test frame. The HUD is drawn by the client. [Keyboard shortcuts and role controls](docs/getting-started/keyboard-shortcuts.md)

![RMUC pilot view with the shared match header, crosshair, robot status and minimap](docs/images/readme/pilot-rmuc.png)

## SPR 2027 changes

- The client uses distinct RMUC, RMUL 3v3 and RMUL 1v1 seat lists, layouts and maps. The map orientation follows the logged-in team.
- The redesigned command screen combines rosters, current robot status, battlefield events and a choice of map or industrial-camera priority. The pilot HUD and full-screen match status share the match information with the command screen.
- Selected 2027 messages feed objectives, control, robot state, positions and timing into the UI. Unknown or unavailable values show a placeholder.
- The logged-in team's heavy card displays an unlock indicator, a transition animation after installation confirmation, and a gold completed state. The other team's heavy card uses the regular presentation. The public `Event 16` does not define a team or robot ID, so the client uses attributable data for team-specific effects.
- Windows and Linux launch tooling, Windows dependency detection and network restoration support the existing local runtime kit. Test coverage includes profile layouts, seat changes, keyboard shortcuts and heavy-robot effects. [Changelog](CHANGELOG.md)

![RMUC match status from blue seat 3, where the blue heavy card indicates a confirmed installation](docs/images/readme/summary-rmuc-blue.png)

## Quick start

Use CMake 3.21+, a C++17 compiler, Qt 6 and Protobuf. Add FFmpeg development libraries for video and Paho MQTT C for match telemetry. The Windows build was tested with MinGW x64 and Qt 6.8.3. Ubuntu CI uses the same Qt version.
Follow the [step-by-step user guide (Chinese)](docs/getting-started/user-guide.md) to download the repository, install dependencies, build on Windows or Ubuntu, preview offline, run a simulated match, and connect to official match services.

GitHub distributes source code, assets, the simulator, and build tools. The prebuilt executable and double-click launchers are distributed separately as part of the team's runtime kit. See the [runtime kit notes](scripts/portable/README.md) if you already have that package.

## Integration and verification

Copy `config.example.json` to a local `config.json`. The template uses loopback for the match connection. Use venue-specific settings when connecting to the official system.

| Feed | Transport | Local configuration |
| --- | --- | --- |
| Match state | MQTT + Protobuf | `competition.mqtt_broker` and `competition.mqtt_port` for 2027, with port `3333` in the template. Match the player seat to the data source. |
| Main video | Fragmented HEVC/H.265 over UDP | Match `network.video_port` and `video.stream_url` to the forwarded feed. The template listens on `3334`. |
| Industrial camera | H.264 over MQTT `CustomByteBlock` | Uses the match MQTT connection and seat. |
| Optional team heavy-state sync | Separate wired team link | `competition.heavy_sync_source`, with default port `3346`. |

Use the **2026 compatibility profile** for the standalone simulator's baseline. Confirm the MQTT session and match data first, then test the UDP main video and MQTT camera individually. Selected 2027 UI behavior is covered by test fixtures. [Client configuration](docs/getting-started/configuration.md) · [Simulator](sim/README.md)

Windows verification includes an offline launch, 27 C++/Qt tests and portable-script checks. Ubuntu CI builds the app and runs 27 C++/Qt tests, simulator tests, the QML check and release audits. Formal 2027 field integration is pending.

## Repository and contributions

The Qt client lives in `src/`, arena and UI assets in `resources/`, the local simulator in `sim/`, portable launch tools in `scripts/portable/`, tests in `tests/`, and developer documentation in `docs/`.

```sh
cmake -S . -B build/release -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON
cmake --build build/release --parallel 4
ctest --test-dir build/release --output-on-failure
```
Use Issues for reports and include the profile, seat, OS, reproduction steps, and expected and actual behavior. Propose changes through pull requests from a feature branch or fork for maintainers to merge into `main`. [Contributor guide](CONTRIBUTING.md) · [Documentation index](docs/README.md)

Add SDK locations to `CMAKE_PREFIX_PATH` when needed. The CMake executable uses the compatibility name `RoboMasterClient2025` (`.exe` on Windows). An existing SPR Windows runtime kit launches `SPR2027Client.exe` through its custom-client launcher.
## References and licensing

Copy `config.example.json` to `config.json` to configure a local connection. The [simulator](sim/README.md) remains a standalone 2026-baseline test source. Local tests cover selected 2027 status and UI behavior. Integration with the 2027 field engine and video hardware is pending.
The 2027 implementation references the [communication protocol](https://bbs.robomaster.com/wiki/20204847/1969151), the [RMUC rulebook](https://bbs.robomaster.com/wiki/20204847/1969149) and the [RMUL rulebook](https://bbs.robomaster.com/wiki/20204847/1969150). The arena images derive from the [official 2027 field drawings](https://bbs.robomaster.com/article/1970956).

This repository contains sources, game assets and build scripts. The Windows runtime kit, official installers and venue configuration are managed outside Git. [Configuration](docs/getting-started/configuration.md) · [Documentation](docs/README.md) · [Portable tools](scripts/portable/README.md)
Source code is available under the MIT License. Maps and other media follow their documented licenses. The project is independently maintained and has no affiliation with DJI or RoboMaster. [MIT License](LICENSE) · [Asset and screenshot register](ASSET_LICENSES.md)
Loading