From cd248646dcf590ca21ba6fd458b7ec244abe5390 Mon Sep 17 00:00:00 2001 From: Jakub Delicat <109142865+delihus@users.noreply.github.com> Date: Mon, 16 Oct 2023 07:38:41 +0200 Subject: [PATCH] Update rosbot_gazebo/test/simulation_test_node.py Co-authored-by: rafal-gorecki <126687345+rafal-gorecki@users.noreply.github.com> --- rosbot_gazebo/test/simulation_test_node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rosbot_gazebo/test/simulation_test_node.py b/rosbot_gazebo/test/simulation_test_node.py index 16b4db85..7fb5a4ac 100644 --- a/rosbot_gazebo/test/simulation_test_node.py +++ b/rosbot_gazebo/test/simulation_test_node.py @@ -103,7 +103,8 @@ def timer_callback(self): self.lookup_transform_odom() def scan_callback(self, data: LaserScan): - self.scan_event.set() + if data.ranges: + self.scan_event.set() def publish_cmd_vel_messages(self): twist_msg = Twist()