From 38bd76f97717b5d2087081260790e1b75e256b79 Mon Sep 17 00:00:00 2001 From: Guramumei <1421887449@qq.com> Date: Wed, 31 Jul 2024 23:34:05 +0800 Subject: [PATCH] Add customize display ui update mode. --- rm_msgs/msg/referee/ManualToReferee.msg | 1 + rm_referee/src/referee_base.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/rm_msgs/msg/referee/ManualToReferee.msg b/rm_msgs/msg/referee/ManualToReferee.msg index 0465343b..ca507f73 100644 --- a/rm_msgs/msg/referee/ManualToReferee.msg +++ b/rm_msgs/msg/referee/ManualToReferee.msg @@ -7,6 +7,7 @@ bool cover_state #hero bool gimbal_eject bool hero_eject_flag +uint32 ui_symbol #engineer bool engineer_calibration_state diff --git a/rm_referee/src/referee_base.cpp b/rm_referee/src/referee_base.cpp index 412ae7b8..73c10909 100644 --- a/rm_referee/src/referee_base.cpp +++ b/rm_referee/src/referee_base.cpp @@ -476,6 +476,8 @@ void RefereeBase::manualDataCallBack(const rm_msgs::ManualToReferee::ConstPtr& d target_trigger_change_ui_->updateManualCmdData(data); if (cover_flash_ui_ && !is_adding_) cover_flash_ui_->updateManualCmdData(data, ros::Time::now()); + if (customize_display_flash_ui_ && !is_adding_) + customize_display_flash_ui_->updateCmdData(data->ui_symbol); } void RefereeBase::radarDataCallBack(const std_msgs::Int8MultiArrayConstPtr& data) {