Fix inconsistency in the doc with the actual API.
`spawn_actor()` raises an exception, and `try_spawn_actor()` returns `None` on failure. However, the documentation swapped the descriptions of those two.
This commit is contained in:
parent
f8407118f8
commit
5c433cae78
|
@ -70,8 +70,8 @@ __The world object is responsible of spawning actors and keeping track of these.
|
|||
|
||||
The world has two different methods to spawn actors.
|
||||
|
||||
* [`spawn_actor()`](python_api.md#carla.World.spawn_actor) returns `None` if the spawning failed.
|
||||
* [`try_spawn_actor()`](python_api.md#carla.World.try_spawn_actor) raises an exception if the spawning failed.
|
||||
* [`spawn_actor()`](python_api.md#carla.World.spawn_actor) raises an exception if the spawning fails.
|
||||
* [`try_spawn_actor()`](python_api.md#carla.World.try_spawn_actor) returns `None` if the spawning fails.
|
||||
|
||||
```py
|
||||
transform = Transform(Location(x=230, y=195, z=40), Rotation(yaw=180))
|
||||
|
@ -300,4 +300,4 @@ CARLA forum</a>
|
|||
3rd. Maps and navigation</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue