Skip to content

Commit 3324679

Browse files
fixed bug where bridge wouldn't tick after route set
1 parent dc853c9 commit 3324679

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

srunner/autoagents/autoware_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ def run_step_init(self) -> bool:
140140
Operates on a fixed tick budget to ensure determinism. If the agent goes over the budget, it is treated as a failure.
141141
"""
142142

143+
self.carla_interface.tick_bridge()
144+
143145
if not self.agent_set_route:
144146
self.set_route()
145147

@@ -165,8 +167,6 @@ def run_step_init(self) -> bool:
165167
if self.autoware_state.route_set() and not self.autoware_state.sent_engage:
166168
return True
167169

168-
self.carla_interface.tick_bridge()
169-
170170
return False
171171

172172
def run_step(self) -> None:

0 commit comments

Comments
 (0)