From f29638463217df09631f52ddaaf2d44b7cb7aead Mon Sep 17 00:00:00 2001 From: Lin Zhengyang <57137372+Nauw1010@users.noreply.github.com> Date: Mon, 30 Jan 2023 16:32:27 +0800 Subject: [PATCH] Update tuto_first_steps.md (#5774) Resolve a typo in the spawning random vehicles section. Co-authored-by: bernat --- Docs/tuto_first_steps.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Docs/tuto_first_steps.md b/Docs/tuto_first_steps.md index 14e274d23..d88943885 100644 --- a/Docs/tuto_first_steps.md +++ b/Docs/tuto_first_steps.md @@ -118,7 +118,7 @@ spawn_points = world.get_map().get_spawn_points() # Spawn 50 vehicles randomly distributed throughout the map # for each spawn point, we choose a random vehicle from the blueprint library for i in range(0,50): - world.try_spawn_actor(random.choice(vehicle_blueprints), random.choice(spawn_points))) + world.try_spawn_actor(random.choice(vehicle_blueprints), random.choice(spawn_points)) ``` Now we should also add a vehicle that will be the centerpoint of our simulation. To train an autonomous agent we need to simulate a the vehicle that it the autonomous agent will control. In CARLA parlance, we often refer to this vehicle as the "Ego vehicle". @@ -172,4 +172,4 @@ for vehicle in world.get_actors().filter('*vehicle*'): Now your simulation is running, with numerous vehicles driving around the map and a camera recording data from one of those vehicles. This data can then be used to feed a machine learning algorithm for training an autonomous driving agent. The Traffic manager has many functions for customising traffic behaviour, learn more [__here__](tuto_G_traffic_manager.md). -This is the most basic possible set up for a simulation, now you can go into further details deeper into documentation about the many extra sensors you can use to generate data, and the many other features of CARLA that can make your simulations more detailed and more realistic. \ No newline at end of file +This is the most basic possible set up for a simulation, now you can go into further details deeper into documentation about the many extra sensors you can use to generate data, and the many other features of CARLA that can make your simulations more detailed and more realistic.