diff --git a/Docs/python_api.md b/Docs/python_api.md index 5a411a2f0..3ed66db63 100644 --- a/Docs/python_api.md +++ b/Docs/python_api.md @@ -3730,13 +3730,13 @@ Stops the callback for `callback_id` started with __on_tic - `callback_id` (_callback_) - The callback to be removed. The ID is returned when creating the callback. - **reset_all_traffic_lights**(**self**) Resets the cycle of all traffic lights in the map to the initial state. -- **spawn_actor**(**self**, **blueprint**, **transform**, **attach_to**=None, **attachment**=Rigid) +- **spawn_actor**(**self**, **blueprint**, **transform**, **attach_to**=None, **attachment_type**=Rigid) The method will create, return and spawn an actor into the world. The actor will need an available blueprint to be created and a transform (location and rotation). It can also be attached to a parent with a certain attachment type. - **Parameters:** - `blueprint` (_[carla.ActorBlueprint](#carla.ActorBlueprint)_) - The reference from which the actor will be created. - `transform` (_[carla.Transform](#carla.Transform)_) - Contains the location and orientation the actor will be spawned with. - `attach_to` (_[carla.Actor](#carla.Actor)_) - The parent object that the spawned actor will follow around. - - `attachment` (_[carla.AttachmentType](#carla.AttachmentType)_) - Determines how fixed and rigorous should be the changes in position according to its parent object. + - `attachment_type` (_[carla.AttachmentType](#carla.AttachmentType)_) - Determines how fixed and rigorous should be the changes in position according to its parent object. - **Return:** _[carla.Actor](#carla.Actor)_ - **tick**(**self**, **seconds**=10.0) This method is used in [__synchronous__ mode](https://[carla.readthedocs.io](#carla.readthedocs.io)/en/latest/adv_synchrony_timestep/), when the server waits for a client tick before computing the next frame. This method will send the tick, and give way to the server. It returns the ID of the new frame computed by the server. @@ -3745,13 +3745,13 @@ This method is used in [__synchronous__ mode](https://[carla.readthedocs.io](#ca - **Return:** _int_ - **Note:** _If no tick is received in synchronous mode, the simulation will freeze. Also, if many ticks are received from different clients, there may be synchronization issues. Please read the docs about [synchronous mode](https://[carla.readthedocs.io](#carla.readthedocs.io)/en/latest/adv_synchrony_timestep/) to learn more. _ -- **try_spawn_actor**(**self**, **blueprint**, **transform**, **attach_to**=None, **attachment**=Rigid) +- **try_spawn_actor**(**self**, **blueprint**, **transform**, **attach_to**=None, **attachment_type**=Rigid) Same as __spawn_actor()__ but returns None on failure instead of throwing an exception. - **Parameters:** - `blueprint` (_[carla.ActorBlueprint](#carla.ActorBlueprint)_) - The reference from which the actor will be created. - `transform` (_[carla.Transform](#carla.Transform)_) - Contains the location and orientation the actor will be spawned with. - `attach_to` (_[carla.Actor](#carla.Actor)_) - The parent object that the spawned actor will follow around. - - `attachment` (_[carla.AttachmentType](#carla.AttachmentType)_) - Determines how fixed and rigorous should be the changes in position according to its parent object. + - `attachment_type` (_[carla.AttachmentType](#carla.AttachmentType)_) - Determines how fixed and rigorous should be the changes in position according to its parent object. - **Return:** _[carla.Actor](#carla.Actor)_ - **unload_map_layer**(**self**, **map_layers**) Unloads the selected layers to the level. If the layer is already unloaded the call has no effect. diff --git a/PythonAPI/docs/world.yml b/PythonAPI/docs/world.yml index f694b4695..7e0346212 100644 --- a/PythonAPI/docs/world.yml +++ b/PythonAPI/docs/world.yml @@ -538,7 +538,7 @@ default: None doc: > The parent object that the spawned actor will follow around. - - param_name: attachment + - param_name: attachment_type type: carla.AttachmentType default: Rigid doc: > @@ -562,7 +562,7 @@ default: None doc: > The parent object that the spawned actor will follow around. - - param_name: attachment + - param_name: attachment_type type: carla.AttachmentType default: Rigid doc: >