diff --git a/system/redundancy_switcher_interface/script/relay_to_sub.py b/system/redundancy_switcher_interface/script/relay_to_sub.py index f0ee9c8b05083..896181e931a24 100644 --- a/system/redundancy_switcher_interface/script/relay_to_sub.py +++ b/system/redundancy_switcher_interface/script/relay_to_sub.py @@ -66,11 +66,11 @@ def operation_mode_state_callback(self, msg): ) def trajectory_callback(self, msg): - if self.autonomous_mode or self.operation_mode_autonomous_state == False: + if not self.autonomous_mode or self.operation_mode_autonomous_state: self.pub_trajectory.publish(msg) def pose_callback(self, msg): - if self.autonomous_mode or self.operation_mode_autonomous_state == False: + if not self.autonomous_mode or self.operation_mode_autonomous_state: self.pub_pose_with_covariance.publish(msg) # def initialpose_callback(self, msg):