Skip to content

Commit 7c037ac

Browse files
authored
fix(react-agent-ros2): replace non-blocking run with blocking to avoid severe ROS 2 degradation (#661)
1 parent 6e5a15b commit 7c037ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/agents/react_ros2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def main():
3434
# Agent will wait for messages published to /from_human ros2 topic
3535
agent.subscribe_source("/from_human", hri_connector)
3636
runner = AgentRunner([agent])
37-
runner.run()
37+
runner.run_and_wait_for_shutdown()
3838

3939

4040
if __name__ == "__main__":

0 commit comments

Comments
 (0)