From 2ffb3196fabc57b6134ec32d324065843e14deb3 Mon Sep 17 00:00:00 2001 From: nsubiron Date: Wed, 3 Apr 2019 19:30:00 +0200 Subject: [PATCH] Update CHANGELOG and Python API reference --- CHANGELOG.md | 3 +++ Docs/python_api.md | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 514a50e4d..f2d2d0ec0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,9 @@ * Fixed vehicles missing the route if autopilot enabled too late * Enhanced stop triggers options * Fixed division by zero in is_within_distance_ahead() + * Added new carla.command.SpawnActor to spawn actors in batch + * Added method `client.apply_batch_sync` that waits for server response + * Updated `spawn_npc.py` to spawn vehicles in batch ## CARLA 0.9.4 diff --git a/Docs/python_api.md b/Docs/python_api.md index 16cc022d2..1fd3a1aca 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -21,6 +21,7 @@ - `show_recorder_collisions(string filename, char category1, char category2)` - `show_recorder_actors_blocked(string filename, float min_time, float min_distance)` - `apply_batch(commands, do_tick=False)` +- `apply_batch_sync(commands, do_tick=False) -> list(carla.command.Response)` ## `carla.World` @@ -470,47 +471,69 @@ Static presets # module `carla.command` +`carla.command.FutureActor` (not yet spawned actor handler) + +## `carla.command.Response` + +- `actor_id` +- `error` -> str|empty +- `has_error()` + +## `carla.command.SpawnActor` + +- `__init__(blueprint, transform, parent=None)` +- `then(command)` + ## `carla.command.DestroyActor` +- `__init__(actor)` - `actor_id` ## `carla.command.ApplyVehicleControl` +- `__init__(actor, control)` - `actor_id` - `control` ## `carla.command.ApplyWalkerControl` +- `__init__(actor, control)` - `actor_id` - `control` ## `carla.command.ApplyTransform` +- `__init__(actor, transform)` - `actor_id` - `transform` ## `carla.command.ApplyVelocity` +- `__init__(actor, velocity)` - `actor_id` - `velocity` ## `carla.command.ApplyAngularVelocity` +- `__init__(actor, angular_velocity)` - `actor_id` - `angular_velocity` ## `carla.command.ApplyImpulse` +- `__init__(actor, impulse)` - `actor_id` - `impulse` ## `carla.command.SetSimulatePhysics` +- `__init__(actor, bool)` - `actor_id` - `enabled` ## `carla.command.SetAutopilot` +- `__init__(actor, bool)` - `actor_id` - `enabled`