Skip to content

Add RMU 2.0.0 support#312

Merged
2194555 merged 1 commit into
rm-controls:masterfrom
Whathelp233:RM2026
Jul 19, 2026
Merged

Add RMU 2.0.0 support#312
2194555 merged 1 commit into
rm-controls:masterfrom
Whathelp233:RM2026

Conversation

@Whathelp233

Copy link
Copy Markdown
Contributor

常规更新新的裁判系统协议

Copilot AI review requested due to automatic review settings July 12, 2026 12:33
@netlify

netlify Bot commented Jul 12, 2026

Copy link
Copy Markdown

Deploy Preview for rm-control ready!

Name Link
🔨 Latest commit 8307fb9
🔍 Latest deploy log https://app.netlify.com/projects/rm-control/deploys/6a538993b3d4200008fedabc
😎 Deploy Preview https://deploy-preview-312--rm-control.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the referee protocol/data-model to support RMU 2.0.0 by extending several protocol structs and their corresponding ROS messages, and wiring the new fields through the Referee::unpack() decoding path.

Changes:

  • Extend GameRobotHp, GameRobotStatus, RadarMarkData, SentryInfo, and RadarWirelessEnemyRobotBuff protocol definitions for RMU 2.0.0.
  • Publish newly added protocol fields into updated rm_msgs/msg/referee/* message definitions.
  • Update referee.cpp unpack logic to populate and publish the new fields.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
rm_referee/src/referee.cpp Decodes and publishes newly added RMU 2.0.0 fields (HP/status/radar/sentry/buff).
rm_referee/include/rm_referee/common/protocol.h Updates packed protocol structs/bitfields to match RMU 2.0.0 wire format.
rm_msgs/msg/referee/SentryInfo.msg Adds enhanced posture + remaining-time fields for sentry info.
rm_msgs/msg/referee/RadarWirelessEnemyRobotBuff.msg Adds “main status” fields for enemy robots.
rm_msgs/msg/referee/RadarMarkData.msg Adds additional radar marking/countermeasure flags.
rm_msgs/msg/referee/GameRobotStatus.msg Adds bullet_speed_limit.
rm_msgs/msg/referee/GameRobotHp.msg Adds damage_difference and enemy outpost/base HP.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

game_robot_status_data.shooter_cooling_limit = game_robot_status_ref.shooter_cooling_limit;
game_robot_status_data.shooter_cooling_rate = game_robot_status_ref.shooter_cooling_rate;
game_robot_status_data.chassis_power_limit = game_robot_status_ref.chassis_power_limit;
game_robot_status_data.bullet_speed_limit = game_robot_status_ref.bullet_speed_limit;
memcpy(&sentry_info_ref, rx_data + 7, sizeof(rm_referee::SentryInfo));
const uint32_t sentry_info_bits = sentry_info_ref.sentry_info;
const uint16_t sentry_info_2_bits = sentry_info_ref.sentry_info_2;
const uint64_t sentry_info_3_bits = sentry_info_ref.sentry_info_3;
Comment on lines 325 to +331
typedef struct
{
uint8_t dart_remaining_time;
uint8_t dart_last_aim_state : 3;
uint8_t enemy_total_hit_received : 3;
uint8_t dart_current_target : 2;
uint8_t reserved;
uint16_t dart_last_aim_state : 3;
uint16_t enemy_total_hit_received : 3;
uint16_t dart_current_target : 3;
uint16_t reserved : 7;
@2194555
2194555 merged commit dd0b778 into rm-controls:master Jul 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants