diff --git a/examples/agents/react_ros2.py b/examples/agents/react_ros2.py index 8eac7319d..4e023ed3d 100644 --- a/examples/agents/react_ros2.py +++ b/examples/agents/react_ros2.py @@ -34,7 +34,7 @@ def main(): # Agent will wait for messages published to /from_human ros2 topic agent.subscribe_source("/from_human", hri_connector) runner = AgentRunner([agent]) - runner.run() + runner.run_and_wait_for_shutdown() if __name__ == "__main__":