@@ -141,7 +141,7 @@ def run_ui(self):
141
141
self .estop_engaged is None and
142
142
(self .get_clock ().now () - start_time ) < timeout
143
143
):
144
- pass
144
+ rclpy . spin_once ( self . node )
145
145
146
146
if self .estop_engaged is None :
147
147
results .append (ClearpathTestResult (
@@ -221,8 +221,8 @@ def run_ui(self):
221
221
# if needed; this affects Ridgeback primarily
222
222
timeout = Duration (seconds = 2 )
223
223
start_time = self .get_clock ().now ()
224
- while self .get_clock .now () - start_time < timeout :
225
- pass
224
+ while self .get_clock () .now () - start_time < timeout :
225
+ rclpy . spin_once ( self . node )
226
226
227
227
self .command_wheels ()
228
228
user_input = self .promptYN ('Did the wheels rotate?' )
@@ -247,7 +247,7 @@ def command_wheels(self):
247
247
start_time = self .get_clock ().now ()
248
248
duration = Duration (seconds = 2 )
249
249
while (self .get_clock ().now () - start_time ) < duration :
250
- pass
250
+ rclpy . spin_once ( self . node )
251
251
252
252
self .cmd_vel .twist .linear .x = 0.0
253
253
@@ -268,5 +268,6 @@ def wait_for_estop(self, state, timeout_seconds=10):
268
268
(now - start_time ) < timeout
269
269
):
270
270
now = self .get_clock ().now ()
271
+ rclpy .spin_once (self .node )
271
272
272
273
return self .estop_engaged == state
0 commit comments