From f1529a06b19a1c57ee6b9906f3b9359f6a0ac719 Mon Sep 17 00:00:00 2001 From: leili Date: Wed, 10 Aug 2022 15:16:39 +0800 Subject: [PATCH] update numbers --- Docs/adv_agents.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Docs/adv_agents.md b/Docs/adv_agents.md index eb299052f..6857d9ee2 100644 --- a/Docs/adv_agents.md +++ b/Docs/adv_agents.md @@ -63,14 +63,14 @@ destination = random.choice(spawn_points).location agent.set_destination(destination) ``` -__5.__ Vehicle controls and behaviors are applied during a navigation step. During each step, the __Basic Agent__ will apply a vehicle control and react to any vehicles or traffic lights by performing an emergency stop. The __Behavior Agent__ will react to traffic lights, avoid pedestrians, follow cars and navigate intersections according to the behavior type you applied: +__4.__ Vehicle controls and behaviors are applied during a navigation step. During each step, the __Basic Agent__ will apply a vehicle control and react to any vehicles or traffic lights by performing an emergency stop. The __Behavior Agent__ will react to traffic lights, avoid pedestrians, follow cars and navigate intersections according to the behavior type you applied: ```py while True: vehicle.apply_control(agent.run_step()) ``` -__6.__ You can check if the agent has finished its trajectory and perform an action when that happens. The following snippet will end the simulation once your vehicle has reached its destination: +__5.__ You can check if the agent has finished its trajectory and perform an action when that happens. The following snippet will end the simulation once your vehicle has reached its destination: ```py while True: @@ -81,7 +81,7 @@ while True: vehicle.apply_control(agent.run_step()) ``` -__7.__ Instead of finishing the simulation when an agent has reached its target destination, a new, random route can be generated for the agent to follow: +__6.__ Instead of finishing the simulation when an agent has reached its target destination, a new, random route can be generated for the agent to follow: ```py while True: