From 75a6986c11b78f0feb4dda39884ef43a5473138a Mon Sep 17 00:00:00 2001 From: Go Sakayori Date: Sat, 15 Jun 2024 22:44:49 +0900 Subject: [PATCH] fix(vehicle_cmd_gate): fix unnecessary modification (#7488) fix onGateMode function Signed-off-by: Go Sakayori --- control/autoware_vehicle_cmd_gate/src/vehicle_cmd_gate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/control/autoware_vehicle_cmd_gate/src/vehicle_cmd_gate.cpp b/control/autoware_vehicle_cmd_gate/src/vehicle_cmd_gate.cpp index e8902c9dbf5b3..8f083990cd4ea 100644 --- a/control/autoware_vehicle_cmd_gate/src/vehicle_cmd_gate.cpp +++ b/control/autoware_vehicle_cmd_gate/src/vehicle_cmd_gate.cpp @@ -711,6 +711,7 @@ void VehicleCmdGate::onGateMode() if (!msg) return; const auto prev_gate_mode = current_gate_mode_; + current_gate_mode_ = *msg; if (current_gate_mode_.data != prev_gate_mode.data) { RCLCPP_INFO(