diff --git a/Docs/python_api.md b/Docs/python_api.md
index b71878fef..18a5be7dc 100644
--- a/Docs/python_api.md
+++ b/Docs/python_api.md
@@ -67,88 +67,95 @@ Sets the actor's velocity vector.
- `velocity` (_[carla.Vector3D](#carla.Vector3D)_)
=======
Base class for all actors.
-Actor is anything that plays a role in the simulation and can be moved around, examples of actors are vehicles, pedestrians, and sensors.
+Actor is anything that plays a role in the simulation and can be moved around, examples of actors are vehicles, pedestrians, and sensors.
Instance Variables
-- **id** (_int_)
-Unique id identifying this actor. Note ids are unique during a given episode.
-- **type_id** (_str_)
-Id of the blueprint that created this actor, e.g. "vehicle.ford.mustang".
-- **parent** (_[carla.Actor](#carla.Actor)_)
-Parent actor of this instance, None if this instance is not attached to another actor.
-- **semantic_tags** (_list(int)_)
-List of semantic tags of all components of this actor, see semantic segmentation sensor for the list of available tags. E.g., a traffic light actor could contain "pole" and "traffic light" tags.
-- **is_alive** (_bool_)
-Returns whether this object was destroyed using this actor handle.
-- **attributes** (_dict_)
-Dictionary of attributes of the blueprint that created this actor.
+- **id** (_int_)
+Unique id identifying this actor. Note ids are unique during a given episode.
+- **type_id** (_str_)
+Id of the blueprint that created this actor, e.g. "vehicle.ford.mustang".
+- **parent** (_[carla.Actor](#carla.Actor)_)
+Parent actor of this instance, None if this instance is not attached to another actor.
+- **semantic_tags** (_list(int)_)
+List of semantic tags of all components of this actor, see semantic segmentation sensor for the list of available tags. E.g., a traffic light actor could contain "pole" and "traffic light" tags.
+- **is_alive** (_bool_)
+Returns whether this object was destroyed using this actor handle.
+- **attributes** (_dict_)
+Dictionary of attributes of the blueprint that created this actor.
Methods
-- **destroy**(**self**)
-Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed. It has no effect if the Actor was already successfully destroyed.
- - **Return:** _bool_
+- **destroy**(**self**)
+Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed. It has no effect if the Actor was already successfully destroyed.
+ - **Return:** _bool_
- **Warning:** _This function blocks until the destruction operation is completed by the simulator.
-_
-- **get_world**(**self**)
-Returns the world this actor belongs to.
- - **Return:** _[carla.World](#carla.World)_
-- **get_location**(**self**)
-Returns the actor's current location.
- - **Return:** _[carla.Location](#carla.Location)_
+_
+- **get_world**(**self**)
+Returns the world this actor belongs to.
+ - **Return:** _[carla.World](#carla.World)_
+- **get_location**(**self**)
+Returns the actor's current location.
+ - **Return:** _[carla.Location](#carla.Location)_
- **Note:** _This function does not call the simulator, it returns the location received in the last tick.
-_
-- **get_transform**(**self**)
-Returns the actor's current transform.
- - **Return:** _[carla.Transform](#carla.Transform)_
+_
+- **get_transform**(**self**)
+Returns the actor's current transform.
+ - **Return:** _[carla.Transform](#carla.Transform)_
- **Note:** _This function does not call the simulator, it returns the transform received in the last tick.
-_
-- **get_velocity**(**self**)
-Returns the actor's current 3D velocity.
- - **Return:** _[carla.Vector3D](#carla.Vector3D)_
+_
+- **get_velocity**(**self**)
+Returns the actor's current 3D velocity.
+ - **Return:** _[carla.Vector3D](#carla.Vector3D)_
- **Note:** _This function does not call the simulator, it returns the velocity received in the last tick.
-_
-- **get_angular_velocity**(**self**)
-Returns the actor's current 3D angular velocity.
- - **Return:** _[carla.Vector3D](#carla.Vector3D)_
+_
+- **get_angular_velocity**(**self**)
+Returns the actor's current 3D angular velocity.
+ - **Return:** _[carla.Vector3D](#carla.Vector3D)_
- **Note:** _This function does not call the simulator, it returns the angular velocity received in the last tick.
-_
-- **get_acceleration**(**self**)
-Returns the actor's current 3D acceleration.
- - **Return:** _[carla.Vector3D](#carla.Vector3D)_
+_
+- **get_acceleration**(**self**)
+Returns the actor's current 3D acceleration.
+ - **Return:** _[carla.Vector3D](#carla.Vector3D)_
- **Note:** _This function does not call the simulator, it returns the acceleration received in the last tick.
-_
-- **set_location**(**self**, **location**)
-Teleport the actor to a given location.
+_
+- **set_location**(**self**, **location**)
+Teleport the actor to a given location.
- **Parameters:**
- - `location` (_[carla.Location](#carla.Location)_)
-- **set_transform**(**self**, **transform**)
-Teleport the actor to a given transform.
+ - `location` (_[carla.Location](#carla.Location)_)
+- **set_transform**(**self**, **transform**)
+Teleport the actor to a given transform.
- **Parameters:**
- - `transform` (_[carla.Transform](#carla.Transform)_)
-- **set_velocity**(**self**, **velocity**)
-Set the actor's velocity.
+ - `transform` (_[carla.Transform](#carla.Transform)_)
+- **set_velocity**(**self**, **velocity**)
+Set the actor's velocity.
- **Parameters:**
- - `velocity` (_[carla.Vector3D](#carla.Vector3D)_)
-- **set_angular_velocity**(**self**, **angular_velocity**)
-Set the actor's angular velocity.
+ - `velocity` (_[carla.Vector3D](#carla.Vector3D)_)
+- **set_angular_velocity**(**self**, **angular_velocity**)
+Set the actor's angular velocity.
- **Parameters:**
- - `angular_velocity` (_[carla.Vector3D](#carla.Vector3D)_)
-- **add_impulse**(**self**, **impulse**)
-Add impulse to the actor.
+ - `angular_velocity` (_[carla.Vector3D](#carla.Vector3D)_)
+- **add_impulse**(**self**, **impulse**)
+Add impulse to the actor.
- **Parameters:**
- - `impulse` (_[carla.Vector3D](#carla.Vector3D)_)
-- **set_simulate_physics**(**self**, **enabled**=True)
-Enable or disable physics simulation on this actor.
+ - `impulse` (_[carla.Vector3D](#carla.Vector3D)_)
+- **set_simulate_physics**(**self**, **enabled**=True)
+Enable or disable physics simulation on this actor.
- **Parameters:**
+<<<<<<< HEAD
- `enabled` (_bool_)
- **\__str__**(**self**)
- **Return:** _str_
>>>>>>> Python documentation.
+=======
+ - `enabled` (_bool_)
+- **\__str__**(**self**)
+ - **Return:** _str_
+>>>>>>> Fixed docs.
---
## carla.ActorAttribute
<<<<<<< HEAD
+<<<<<<< HEAD
CARLA provides a library of blueprints for actors that can be accessed as [carla.BlueprintLibrary](#carla.BlueprintLibrary). Each of these blueprints has a series of attributes defined internally. Some of these are modifiable, others are not. A list of recommended values is provided for those that can be set.
Instance Variables
@@ -195,28 +202,32 @@ Returns true if this actor's attribute is not zero or null.
- **Return:** _bool_
=======
Class that defines an attribute of a [carla.ActorBlueprint](#carla.ActorBlueprint).
+=======
+Class that defines an attribute of a [carla.ActorBlueprint](#carla.ActorBlueprint).
+>>>>>>> Fixed docs.
Instance Variables
-- **id** (_str_)
-The attribute's identifier.
-- **type** (_[carla.ActorAttributeType](#carla.ActorAttributeType)_)
-The attribute parameter type.
-- **recommended_values** (_list(str)_)
-List of recommended values that the attribute may have.
-- **is_modifiable** (_bool_)
-True if the attribute is modifiable.
+- **id** (_str_)
+The attribute's identifier.
+- **type** (_[carla.ActorAttributeType](#carla.ActorAttributeType)_)
+The attribute parameter type.
+- **recommended_values** (_list(str)_)
+List of recommended values that the attribute may have.
+- **is_modifiable** (_bool_)
+True if the attribute is modifiable.
Methods
-- **as_bool**(**self**)
-- **as_int**(**self**)
-- **as_float**(**self**)
-- **as_str**(**self**)
-- **as_color**(**self**)
-- **\__eq__**(**self**, **other**)
+- **as_bool**(**self**)
+- **as_int**(**self**)
+- **as_float**(**self**)
+- **as_str**(**self**)
+- **as_color**(**self**)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_bool / int / float / str / [carla.Color](#carla.Color) / [carla.ActorAttribute](#carla.ActorAttribute)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_bool / int / float / str / [carla.Color](#carla.Color) / [carla.ActorAttribute](#carla.ActorAttribute)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
+<<<<<<< HEAD
- `other` (_bool / int / float / str / [carla.Color](#carla.Color) / [carla.ActorAttribute](#carla.ActorAttribute)_)
- **\__nonzero__**(**self**)
- **\__bool__**(**self**)
@@ -225,11 +236,21 @@ True if the attribute is modifiable.
- **\__str__**(**self**)
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `other` (_bool / int / float / str / [carla.Color](#carla.Color) / [carla.ActorAttribute](#carla.ActorAttribute)_)
+- **\__nonzero__**(**self**)
+- **\__bool__**(**self**)
+- **\__int__**(**self**)
+- **\__float__**(**self**)
+- **\__str__**(**self**)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.ActorAttributeType
<<<<<<< HEAD
+<<<<<<< HEAD
CARLA provides a library of blueprints for actors in [carla.BlueprintLibrary](#carla.BlueprintLibrary) with different attributes each. This class defines the types those at [carla.ActorAttribute](#carla.ActorAttribute) can be as a series of enum. All this information is managed internally and listed here for a better comprehension of how CARLA works.
Instance Variables
@@ -248,11 +269,22 @@ Class that defines the type of attribute of a [carla.ActorAttribute](#carla.Acto
- **String**
- **RGBColor**
>>>>>>> Python documentation.
+=======
+Class that defines the type of attribute of a [carla.ActorAttribute](#carla.ActorAttribute).
+
+Instance Variables
+- **Bool**
+- **Int**
+- **Float**
+- **String**
+- **RGBColor**
+>>>>>>> Fixed docs.
---
## carla.ActorBlueprint
<<<<<<< HEAD
+<<<<<<< HEAD
CARLA provides a blueprint library for actors that can be consulted through [carla.BlueprintLibrary](#carla.BlueprintLibrary). Each of these consists of an identifier for the blueprint and a series of attributes that may be modifiable or not. This class is the intermediate step between the library and the actor creation. Actors need an actor blueprint to be spawned. These store the information for said blueprint in an object with its attributes and some tags to categorize them. The user can then customize some attributes and eventually spawn the actors through [carla.World](#carla.World).
Instance Variables
@@ -295,52 +327,63 @@ If the `id` attribute is modifiable, changes its value to `value`.
- `value` (_str_) – The new value for said attribute.
=======
Class that contains all the necessary information for spawning an Actor.
+=======
+Class that contains all the necessary information for spawning an Actor.
+>>>>>>> Fixed docs.
Instance Variables
-- **id** (_str_)
-Actor blueprint identifier, e.g. `walker.pedestrian.0001`.
-- **tags** (_list(str)_)
-List of tags of an actor blueprint e.g. `['0001', 'pedestrian', 'walker']`.
+- **id** (_str_)
+Actor blueprint identifier, e.g. `walker.pedestrian.0001`.
+- **tags** (_list(str)_)
+List of tags of an actor blueprint e.g. `['0001', 'pedestrian', 'walker']`.
Methods
-- **has_tag**(**self**, **tag**)
-Returns `true` if an actor blueprint has the tag.
+- **has_tag**(**self**, **tag**)
+Returns `true` if an actor blueprint has the tag.
- **Parameters:**
- - `tag` (_str_) – e.g. 'walker'.
- - **Return:** _bool_
-- **match_tags**(**self**, **wildcard_pattern**)
-Test if any of the flags or id matches wildcard_pattern.
+ - `tag` (_str_) – e.g. 'walker'.
+ - **Return:** _bool_
+- **match_tags**(**self**, **wildcard_pattern**)
+Test if any of the flags or id matches wildcard_pattern.
- **Parameters:**
- - `wildcard_pattern` (_str_)
- - **Return:** _bool_
+ - `wildcard_pattern` (_str_)
+ - **Return:** _bool_
- **Note:** _The wildcard_pattern follows Unix shell-style wildcards.
-_
-- **has_attribute**(**self**, **id**)
-Returns `true` if the blueprint contains the specified attribute.
+_
+- **has_attribute**(**self**, **id**)
+Returns `true` if the blueprint contains the specified attribute.
- **Parameters:**
- - `id` (_str_) – e.g 'gender'.
- - **Return:** _bool_
-- **get_attribute**(**self**, **id**)
-Returns the current actor attribute through its id.
+ - `id` (_str_) – e.g 'gender'.
+ - **Return:** _bool_
+- **get_attribute**(**self**, **id**)
+Returns the current actor attribute through its id.
- **Parameters:**
- - `id` (_str_)
- - **Return:** _[carla.ActorAttribute](#carla.ActorAttribute)_
-- **set_attribute**(**self**, **id**, **value**)
-Sets an existing attribute to the actor's blueprint.
+ - `id` (_str_)
+ - **Return:** _[carla.ActorAttribute](#carla.ActorAttribute)_
+- **set_attribute**(**self**, **id**, **value**)
+Sets an existing attribute to the actor's blueprint.
- **Parameters:**
- - `id` (_str_)
- - `value` (_str_)
+ - `id` (_str_)
+ - `value` (_str_)
- **Note:** _Attribute can only be set or changed if it is modifiable
+<<<<<<< HEAD
_
- **\__len__**(**self**)
- **\__iter__**(**self**)
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+_
+- **\__len__**(**self**)
+- **\__iter__**(**self**)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.ActorList
<<<<<<< HEAD
+<<<<<<< HEAD
A class that contains every actor present on the scene and provides access to them. The list is automatically created and updated by the server and it can be returned using [carla.World](#carla.World).
Methods
@@ -369,30 +412,41 @@ Finds an actor using its identifier and returns it or None if it is not p
- **Return:** _[carla.Actor](#carla.Actor)_
=======
Class that provides access to actors.
+=======
+Class that provides access to actors.
+>>>>>>> Fixed docs.
Methods
-- **find**(**self**, **actor_id**)
-Find an actor by ID.
+- **find**(**self**, **actor_id**)
+Find an actor by ID.
- **Parameters:**
- - `actor_id` (_int_)
-- **filter**(**self**, **wildcard_pattern**)
-Filters a list of Actors with type_id matching wildcard_pattern.
+ - `actor_id` (_int_)
+- **filter**(**self**, **wildcard_pattern**)
+Filters a list of Actors with type_id matching wildcard_pattern.
- **Parameters:**
- - `wildcard_pattern` (_str_)
- - **Note:** _The wildcard_pattern follows Unix shell-style wildcards (fnmatch).
-_
-- **\__getitem__**(**self**, **pos**)
+ - `wildcard_pattern` (_str_)
+ - **Note:** _The wildcard_pattern follows Unix shell-style wildcards (fnmatch).
+_
+- **\__getitem__**(**self**, **pos**)
- **Parameters:**
+<<<<<<< HEAD
- `pos` (_int_)
- **\__len__**(**self**)
- **\__iter__**(**self**)
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `pos` (_int_)
+- **\__len__**(**self**)
+- **\__iter__**(**self**)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.ActorSnapshot
<<<<<<< HEAD
+<<<<<<< HEAD
A class that comprises all the information for an actor at a certain moment in time. These objects are contained in a [carla.WorldSnapshot](#carla.WorldSnapshot) and sent to the client once every tick.
Instance Variables
@@ -414,12 +468,16 @@ Returns the velocity vector registered for an actor in that tick.
- **Return:** _[carla.Vector3D](#carla.Vector3D)_
=======
Class that provides access to the data of a [carla.Actor](#carla.Actor) in a [carla.WorldSnapshot](#carla.WorldSnapshot).
+=======
+Class that provides access to the data of a [carla.Actor](#carla.Actor) in a [carla.WorldSnapshot](#carla.WorldSnapshot).
+>>>>>>> Fixed docs.
Instance Variables
-- **id** (_int_)
-The ActorSnapshot's identifier.
+- **id** (_int_)
+The ActorSnapshot's identifier.
Methods
+<<<<<<< HEAD
- **get_transform**(**self**)
Returns the actor's current transform.
- **Return:** _[carla.Transform](#carla.Transform)_
@@ -434,11 +492,27 @@ Returns the actor's current 3D acceleration.
- **Return:** _[carla.Vector3D](#carla.Vector3D)_
- **\__self__**(**self**)
>>>>>>> Python documentation.
+=======
+- **get_transform**(**self**)
+Returns the actor's current transform.
+ - **Return:** _[carla.Transform](#carla.Transform)_
+- **get_velocity**(**self**)
+Returns the actor's current 3D velocity.
+ - **Return:** _[carla.Vector3D](#carla.Vector3D)_
+- **get_angular_velocity**(**self**)
+Returns the actor's current 3D angular velocity.
+ - **Return:** _[carla.Vector3D](#carla.Vector3D)_
+- **get_acceleration**(**self**)
+Returns the actor's current 3D acceleration.
+ - **Return:** _[carla.Vector3D](#carla.Vector3D)_
+- **\__self__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.AttachmentType
<<<<<<< HEAD
+<<<<<<< HEAD
Class that defines attachment options between an actor and its parent. When spawning actors, these can be attached to another actor so their position changes accordingly. This is specially useful for cameras and sensors. [Here](../python_cookbook/#attach-sensors-recipe) is a brief recipe in which we can see how sensors can be attached to a car when spawned. Note that the attachment type is declared as an enum within the class.
Instance Variables
@@ -455,11 +529,21 @@ Standard fixed attachment.
- **SpringArm**
Attachment that expands or retracts based on camera situation.
>>>>>>> Python documentation.
+=======
+Class that defines the attachment options. See [carla.World.spawn_actor](#carla.World.spawn_actor).
Check out this [`recipe`](../python_cookbook/#attach-sensors-recipe)!
+
+Instance Variables
+- **Rigid**
+Standard fixed attachment.
+- **SpringArm**
+Attachment that expands or retracts based on camera situation.
+>>>>>>> Fixed docs.
---
## carla.BlueprintLibrary
<<<<<<< HEAD
+<<<<<<< HEAD
A class that contains the blueprints provided for actor spawning. Its main application is to return [carla.ActorBlueprint](#carla.ActorBlueprint) objects needed to spawn actors. Each blueprint has an identifier and attributes that may or may not be modifiable. The library is automatically created by the server and can be accessed through [carla.World](#carla.World).
[Here](../bp_library/) is a reference containing every available blueprint and its specifics.
@@ -490,33 +574,45 @@ Returns the blueprint corresponding to that identifier.
- **Return:** _[carla.ActorBlueprint](#carla.ActorBlueprint)_
=======
Class that provides access to [blueprints](../bp_library/).
+=======
+Class that provides access to [blueprints](../bp_library/).
+>>>>>>> Fixed docs.
Methods
-- **find**(**self**, **id**)
-Returns a [carla.ActorBlueprint](#carla.ActorBlueprint) through its id.
+- **find**(**self**, **id**)
+Returns a [carla.ActorBlueprint](#carla.ActorBlueprint) through its id.
- **Parameters:**
- - `id` (_str_)
- - **Return:** _[carla.ActorBlueprint](#carla.ActorBlueprint)_
-- **filter**(**self**, **wildcard_pattern**)
-Filters a list of ActorBlueprint with id or tags matching wildcard_pattern. The pattern is matched against each blueprint's id and tags.
+ - `id` (_str_)
+ - **Return:** _[carla.ActorBlueprint](#carla.ActorBlueprint)_
+- **filter**(**self**, **wildcard_pattern**)
+Filters a list of ActorBlueprint with id or tags matching wildcard_pattern. The pattern is matched against each blueprint's id and tags.
- **Parameters:**
- - `wildcard_pattern` (_str_)
- - **Return:** _[carla.BlueprintLibrary](#carla.BlueprintLibrary)_
+ - `wildcard_pattern` (_str_)
+ - **Return:** _[carla.BlueprintLibrary](#carla.BlueprintLibrary)_
- **Note:** _The wildcard_pattern follows Unix shell-style wildcards (fnmatch).
-_
-- **\__getitem__**(**self**, **pos**)
+_
+- **\__getitem__**(**self**, **pos**)
- **Parameters:**
+<<<<<<< HEAD
- `pos` (_int_)
- **Return:** _[carla.ActorBlueprint](#carla.ActorBlueprint)_
- **\__len__**(**self**)
- **\__iter__**(**self**)
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `pos` (_int_)
+ - **Return:** _[carla.ActorBlueprint](#carla.ActorBlueprint)_
+- **\__len__**(**self**)
+- **\__iter__**(**self**)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.BoundingBox
<<<<<<< HEAD
+<<<<<<< HEAD
Helper class defining a box location and its dimensions that will later be used by [carla.DebugHelper](#carla.DebugHelper) or a [carla.Client](#carla.Client) to draw shapes and detect collisions. Bounding boxes normally act for object colliders. Check out this [recipe](../python_cookbook/#debug-bounding-box-recipe) where the user takes a snapshot of the world and then proceeds to draw bounding boxes for traffic lights.
Instance Variables
@@ -881,121 +977,26 @@ Enable or disable physics simulation on this actor.
## carla.ActorAttribute _class_
Class that defines an attribute of a [carla.ActorBlueprint](#carla.ActorBlueprint).
+=======
+Bounding box helper class.
+>>>>>>> Fixed docs.
Instance Variables
-- **id** (_str_)
-The attribute's identifier.
-- **type** (_[carla.ActorAttributeType](#carla.ActorAttributeType)_)
-The attribute parameter type.
-- **recommended_values** (_list(str)_)
-List of recommended values that the attribute may have.
-- **is_modifiable** (_bool_)
-True if the attribute is modifiable.
-
-Methods
-- **as_bool**(**self**)
-- **as_int**(**self**)
-- **as_float**(**self**)
-- **as_str**(**self**)
-- **as_color**(**self**)
-- **\__eq__**(**self**, **other**)
- - **Parameters:**
- - `other` (_bool / int / float / str / [carla.Color](#carla.Color) / [carla.ActorAttribute](#carla.ActorAttribute)_)
-- **\__ne__**(**self**, **other**)
- - **Parameters:**
- - `other` (_bool / int / float / str / [carla.Color](#carla.Color) / [carla.ActorAttribute](#carla.ActorAttribute)_)
-- **\__nonzero__**(**self**)
-- **\__bool__**(**self**)
-- **\__int__**(**self**)
-- **\__float__**(**self**)
-- **\__str__**(**self**)
-- **\__str__**(**self**)
-
----
-
-## carla.ActorBlueprint _class_
-Class that contains all the necessary information for spawning an Actor.
-
-Instance Variables
-- **id** (_str_)
-Actor blueprint identifier, e.g. `walker.pedestrian.0001`.
-- **tags** (_list(str)_)
-List of tags of an actor blueprint e.g. `['0001', 'pedestrian', 'walker']`.
-
-Methods
-- **has_tag**(**self**, **tag**)
-Returns `true` if an actor blueprint has the tag.
- - **Parameters:**
- - `tag` (_str_) – e.g. 'walker'.
- - **Return:** _bool_
-- **match_tags**(**self**, **wildcard_pattern**)
-Test if any of the flags or id matches wildcard_pattern.
- - **Parameters:**
- - `wildcard_pattern` (_str_)
- - **Return:** _bool_
- - **Note:** _The wildcard_pattern follows Unix shell-style wildcards.
-_
-- **has_attribute**(**self**, **id**)
-Returns `true` if the blueprint contains the specified attribute.
- - **Parameters:**
- - `id` (_str_) – e.g 'gender'.
- - **Return:** _bool_
-- **get_attribute**(**self**, **id**)
-Returns the current actor attribute through its id.
- - **Parameters:**
- - `id` (_str_)
- - **Return:** _[carla.ActorAttribute](#carla.ActorAttribute)_
-- **set_attribute**(**self**, **id**, **value**)
-Sets an existing attribute to the actor's blueprint.
- - **Parameters:**
- - `id` (_str_)
- - `value` (_str_)
- - **Note:** _Attribute can only be set or changed if it is modifiable
-_
-- **\__len__**(**self**)
-- **\__iter__**(**self**)
-- **\__str__**(**self**)
-
----
-
-## carla.ActorSnapshot _class_
-Class that provides access to the data of a [carla.Actor](#carla.Actor) in a [carla.WorldSnapshot](#carla.WorldSnapshot).
-
-Instance Variables
-- **id** (_int_)
-The ActorSnapshot's identifier.
-
-Methods
-- **get_transform**(**self**)
-Returns the actor's current transform.
- - **Return:** _[carla.Transform](#carla.Transform)_
-- **get_velocity**(**self**)
-Returns the actor's current 3D velocity.
- - **Return:** _[carla.Vector3D](#carla.Vector3D)_
-- **get_angular_velocity**(**self**)
-Returns the actor's current 3D angular velocity.
- - **Return:** _[carla.Vector3D](#carla.Vector3D)_
-- **get_acceleration**(**self**)
-Returns the actor's current 3D acceleration.
- - **Return:** _[carla.Vector3D](#carla.Vector3D)_
-- **\__self__**(**self**)
-
----
-
-## carla.BoundingBox _class_
-Bounding box helper class.
-
-Instance Variables
-- **location** (_[carla.Location](#carla.Location)_)
-The center of the bounding box relative to its parent actor.
-- **extent** (_[carla.Vector3D](#carla.Vector3D)_)
+- **location** (_[carla.Location](#carla.Location)_)
+The center of the bounding box relative to its parent actor.
+- **extent** (_[carla.Vector3D](#carla.Vector3D)_)
It contains the vector from the center of the bounding box to one of the vertex of the box.
+<<<<<<< HEAD
So, if you want to know the _X bounding box size_, you can just do `extent.x * 2`.
>>>>>>> Python documentation.
+=======
+So, if you want to know the _X bounding box size_, you can just do `extent.x * 2`.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **location**, **extent**)
+- **\__init__**(**self**, **location**, **extent**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `location` (_[carla.Location](#carla.Location)_) – Point to center the box.
- `extent` (_[carla.Vector3D](#carla.Vector3D)_) – Vector containing half the size of the box for every axis.
@@ -1007,16 +1008,23 @@ Returns **True** if a point passed in world space is inside this bounding box.
- **contains**(**self**, **world_point**, **transform**)
Returns **True** if a point passed in world space is inside this bounding box.
>>>>>>> Python documentation.
+=======
+ - `location` (_[carla.Location](#carla.Location)_)
+ - `extent` (_[carla.Vector3D](#carla.Vector3D)_)
+- **contains**(**self**, **world_point**, **transform**)
+Returns **True** if a point passed in world space is inside this bounding box.
+>>>>>>> Fixed docs.
- **Parameters:**
- - `world_point` (_[carla.Location](#carla.Location)_) – The point in world space to be checked.
- - `transform` (_[carla.Transform](#carla.Transform)_) – Contains location and rotation needed to convert this object's local space to world space.
- - **Return:** _bool_
-- **get_local_vertices**(**self**)
-Returns a list containing the locations of this object's vertices in local space.
- - **Return:** _list([carla.Location](#carla.Location))_
-- **get_world_vertices**(**self**, **transform**)
-Returns a list containing the locations of this object's vertices in world space.
+ - `world_point` (_[carla.Location](#carla.Location)_) – The point in world space to be checked.
+ - `transform` (_[carla.Transform](#carla.Transform)_) – Contains location and rotation needed to convert this object's local space to world space.
+ - **Return:** _bool_
+- **get_local_vertices**(**self**)
+Returns a list containing the locations of this object's vertices in local space.
+ - **Return:** _list([carla.Location](#carla.Location))_
+- **get_world_vertices**(**self**, **transform**)
+Returns a list containing the locations of this object's vertices in world space.
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `transform` (_[carla.Transform](#carla.Transform)_) – Contains location and rotation needed to convert this object's local space to world space.
- **Return:** _list([carla.Location](#carla.Location))_
@@ -1147,19 +1155,25 @@ Stops the recording in progress. If you specified a path in `filename`, the reco
- `transform` (_[carla.Transform](#carla.Transform)_) – Contains location and rotation needed to convert this object's local space to world space.
- **Return:** _list([carla.Location](#carla.Location))_
- **\__eq__**(**self**, **other**)
+=======
+ - `transform` (_[carla.Transform](#carla.Transform)_) – Contains location and rotation needed to convert this object's local space to world space.
+ - **Return:** _list([carla.Location](#carla.Location))_
+- **\__eq__**(**self**, **other**)
+>>>>>>> Fixed docs.
- **Parameters:**
- - `other` (_[carla.BoundingBox](#carla.BoundingBox)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.BoundingBox](#carla.BoundingBox)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.BoundingBox](#carla.BoundingBox)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.BoundingBox](#carla.BoundingBox)_)
+- **\__str__**(**self**)
---
-## carla.Client _class_
-Client used to connect to a Carla server.
+## carla.Client
+Client used to connect to a Carla server.
Methods
+<<<<<<< HEAD
- **\__init__**(**self**, **host**, **port**, **worker_threads**=0)
Client constructor.
- **Parameters:**
@@ -1258,11 +1272,111 @@ This function executes the whole list of commands on a single simulation step, b
- `due_tick_cue` (_bool_) – A boolean parameter to specify whether or not to perform a [carla.World.tick](#carla.World.tick) after applying the batch in _synchronous mode_.
- **Return:** _list_
>>>>>>> Python documentation.
+=======
+- **\__init__**(**self**, **host**, **port**, **worker_threads**=0)
+Client constructor.
+ - **Parameters:**
+ - `host` (_str_) – IP address where a CARLA Simulator instance is running.
+ - `port` (_int_) – TCP port where the CARLA Simulator instance is running.
+ - `worker_threads` (_int_) – Number of working threads used for background updates. If 0, use all available concurrency.
+- **set_timeout**(**self**, **seconds**)
+Set the timeout in seconds allowed to block when doing networking calls.
+ - **Parameters:**
+ - `seconds` (_float_) – New timeout value in seconds.
+- **get_client_version**(**self**)
+Get the client version as a string.
+ - **Return:** _str_
+- **get_server_version**(**self**)
+Get the server version as a string.
+ - **Return:** _str_
+- **get_world**(**self**)
+Get the world currently active in the simulation.
+ - **Return:** _[carla.World](#carla.World)_
+- **get_available_maps**(**self**)
+Get a list of strings of the maps available on server. The result can be something like:
+ '/Game/Carla/Maps/Town01'
+ '/Game/Carla/Maps/Town02'
+ '/Game/Carla/Maps/Town03'
+ '/Game/Carla/Maps/Town04'
+ '/Game/Carla/Maps/Town05'
+ '/Game/Carla/Maps/Town06'
+ '/Game/Carla/Maps/Town07'.
+ - **Return:** _list(str)_
+- **reload_world**(**self**)
+Reload the current world, note that a new world is created with default settings using the same map. All actors present in the world will be destroyed.
+ - **Raises:** RuntimeError
+- **load_world**(**self**, **map_name**)
+Load a new world with default settings using `map_name` map. All actors present in the current world will be destroyed.
+ - **Parameters:**
+ - `map_name` (_str_) – Name of the map to load, accepts both full paths and map names, e.g. '/Game/Carla/Maps/Town01' or 'Town01'.
+- **start_recorder**(**self**, **filename**)
+If we use a simple name like 'recording.log' then it will be saved at server folder 'CarlaUE4/Saved/recording.log'. If we use some folder in the name, then it will be considered to be an absolute path, like '/home/carla/recording.log'.
+ - **Parameters:**
+ - `filename` (_str_) – Name of the file to write the recorded data.
+- **stop_recorder**(**self**)
+Stops the recording in progress.
+- **show_recorder_file_info**(**self**, **filename**, **show_all**)
+Will show info about the recorded file (frames, times, events, state, positions...) We have the option to show all the details per frame, that includes all the traffic light states, position of all actors, and animations data.
+ - **Parameters:**
+ - `filename` (_str_) – Name of the recorded file to load.
+ - `show_all` (_bool_) – Show all detailed info, or just a summary.
+- **show_recorder_collisions**(**self**, **filename**, **category1**, **category2**)
+This will show which collisions were recorded in the file. We can use a filter for the collisions we want, using two categories. The categories can be:
+ 'h' = Hero
+ 'v' = Vehicle
+ 'w' = Walker
+ 't' = Traffic light
+ 'o' = Other
+ 'a' = Any
+So, if you want to see only collisions about a vehicle and a walker, we would use for category1 'v' and category2 'w'. Or if you want all the collisions (filter off) you can use 'a' as both categories.
+ - **Parameters:**
+ - `filename` (_str_) – Name of the recorded file to load.
+ - `category1` (_single char_) – Character specifying the category of the first actor.
+ - `category2` (_single char_) – Character specifying the category of the second actor.
+- **show_recorder_actors_blocked**(**self**, **filename**, **min_time**, **min_distance**)
+Shows which actors seem blocked by some reason. The idea is to calculate which actors are not moving as much as 'min_distance' for a period of 'min_time'. By default min_time = 60 seconds (1 min) and min_distance = 100 centimeters (1 m).
+ - **Parameters:**
+ - `filename` (_str_) – Name of the recorded file to load.
+ - `min_time` (_float_) – How many seconds has to be stoped an actor to be considered as blocked.
+ - `min_distance` (_float_) – How many centimeters needs to move the actor in order to be considered as moving, and not blocked.
+- **replay_file**(**self**, **name**, **start**, **duration**, **follow_id**)
+Playback a file.
+ - **Parameters:**
+ - `name` (_str_) – Name of the file.
+ - `start` (_float_) – Time in seconds where to start the playback. If it is negative, then it starts from the end.
+ - `duration` (_float_) – Id of the actor to follow. If this is 0 then camera is disabled.
+ - `follow_id` (_int_)
+- **set_replayer_time_factor**(**self**, **time_factor**)
+Apply a different playback speed to current playback. Can be used several times while a playback is in curse.
+ - **Parameters:**
+ - `time_factor` (_float_) – A value of 1.0 means normal time factor. A value < 1.0 means slow motion (for example 0.5 is half speed) A value > 1.0 means fast motion (for example 2.0 is double speed).
+- **apply_batch**(**self**, **commands**)
+This function executes the whole list of commands on a single simulation step. For example, to set autopilot on some actors, we could use: [sample_code](https://github.com/carla-simulator/carla/blob/10c5f6a482a21abfd00220c68c7f12b4110b7f63/PythonAPI/examples/spawn_npc.py#L126). We don't have control about the response of each command. If we need that, we can use `apply_batch_sync()`.
+ - **Parameters:**
+ - `commands` (_list_) – A list of commands to execute in batch. Each command has a different number of parameters. Currently, we can use these [commands](#command.ApplyAngularVelocity):
+ SpawnActor
+ DestroyActor
+ ApplyVehicleControl
+ ApplyWalkerControl
+ ApplyTransform
+ ApplyVelocity
+ AplyAngularVelocity
+ ApplyImpulse
+ SetSimulatePhysics
+ SetAutopilot.
+- **apply_batch_sync**(**self**, **commands**, **due_tick_cue**)
+This function executes the whole list of commands on a single simulation step, blocks until the commands are executed, and returns a list of [`command.Response`](#command.Response) that can be used to determine whether a single command succeeded or not. [sample_code](https://github.com/carla-simulator/carla/blob/10c5f6a482a21abfd00220c68c7f12b4110b7f63/PythonAPI/examples/spawn_npc.py#L112-L116).
+ - **Parameters:**
+ - `commands` (_list_) – A list of commands to execute in batch. For a list of commands available see function above apply_batch().
+ - `due_tick_cue` (_bool_) – A boolean parameter to specify whether or not to perform a [carla.World.tick](#carla.World.tick) after applying the batch in _synchronous mode_.
+ - **Return:** _list_
+>>>>>>> Fixed docs.
---
## carla.CollisionEvent
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines a collision data for sensor.other.collision. The sensor creates one of this for every collision detected which may be many for one simulation step. Learn more about this [here](/cameras_and_sensors/#sensorothercollision).
Instance Variables
@@ -1283,51 +1397,72 @@ Get the actor to which we collided.
- **normal_impulse** (_[carla.Vector3D](#carla.Vector3D)_)
Normal impulse result of the collision.
>>>>>>> Python documentation.
+=======
+Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines a registered collision.
+
+
Instance Variables
+- **actor** (_[carla.Actor](#carla.Actor)_)
+Get "self" actor. Actor that measured the collision.
+- **other_actor** (_[carla.Actor](#carla.Actor)_)
+Get the actor to which we collided.
+- **normal_impulse** (_[carla.Vector3D](#carla.Vector3D)_)
+Normal impulse result of the collision.
+>>>>>>> Fixed docs.
---
## carla.Color
<<<<<<< HEAD
+<<<<<<< HEAD
Class that defines a 32-bit RGBA color.
=======
Class that defines a 32-bit BGRA color.
>>>>>>> Python documentation.
+=======
+Class that defines a 32-bit BGRA color.
+>>>>>>> Fixed docs.
Instance Variables
-- **r** (_int_)
-Red color (0-255).
-- **g** (_int_)
-Green color (0-255).
-- **b** (_int_)
-Blue color (0-255).
-- **a** (_int_)
-Alpha channel (0-255).
+- **r** (_int_)
+Red color (0-255).
+- **g** (_int_)
+Green color (0-255).
+- **b** (_int_)
+Blue color (0-255).
+- **a** (_int_)
+Alpha channel (0-255).
Methods
<<<<<<< HEAD
+<<<<<<< HEAD
- **\__init__**(**self**, **r**=0, **g**=0, **b**=0, **a**=255)
Initializes a color, black by default.
=======
- **\__init__**(**self**, **r**=0, **g**=0, **b**=0, **a**=255)
Client constructor.
>>>>>>> Python documentation.
+=======
+- **\__init__**(**self**, **r**=0, **g**=0, **b**=0, **a**=255)
+Client constructor.
+>>>>>>> Fixed docs.
- **Parameters:**
- - `r` (_int_)
- - `g` (_int_)
- - `b` (_int_)
- - `a` (_int_)
-- **\__eq__**(**self**, **other**)
+ - `r` (_int_)
+ - `g` (_int_)
+ - `b` (_int_)
+ - `a` (_int_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Color](#carla.Color)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.Color](#carla.Color)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Color](#carla.Color)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.Color](#carla.Color)_)
+- **\__str__**(**self**)
---
## carla.ColorConverter
<<<<<<< HEAD
+<<<<<<< HEAD
Class that defines conversion patterns that can be applied to a [carla.Image](#carla.Image) in order to show information provided by [carla.Sensor](#carla.Sensor). Depth conversions cause a loss of accuracy, as sensors detect depth as float that is then converted to a grayscale value between 0 and 255. Take a look a this [recipe](../python_cookbook/#converted-image-recipe) to see an example of how to create and save image data for sensor.camera.semantic_segmentation.
Instance Variables
@@ -1348,11 +1483,21 @@ Class that defines the color converter options. Check out this [`recipe`](../pyt
- **LogarithmicDepth**
- **CityScapesPalette**
>>>>>>> Python documentation.
+=======
+Class that defines the color converter options. Check out this [`recipe`](../python_cookbook/#converted-image-recipe)!
+
+Instance Variables
+- **Raw**
+- **Depth**
+- **LogarithmicDepth**
+- **CityScapesPalette**
+>>>>>>> Fixed docs.
---
## carla.DebugHelper
<<<<<<< HEAD
+<<<<<<< HEAD
Helper class part of [carla.World](#carla.World) that defines methods for creating debug shapes. By default, shapes last one second. They can be permanent, but take into account the resources needed to do so. Check out this [recipe](../python_cookbook/#debug-bounding-box-recipe) where the user takes a snapshot of the world and then proceeds to draw bounding boxes for traffic lights.
Methods
@@ -1398,61 +1543,69 @@ Draws a string in a given location of the simulation which can only be seen serv
- `life_time` (_float_)
=======
Class that provides drawing debug shapes. Check out this [`example`](https://github.com/carla-simulator/carla/blob/master/PythonAPI/util/lane_explorer.py).
+=======
+Class that provides drawing debug shapes. Check out this [`example`](https://github.com/carla-simulator/carla/blob/master/PythonAPI/util/lane_explorer.py).
+>>>>>>> Fixed docs.
Methods
-- **draw_point**(**self**, **location**, **size**=0.1f, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
-Draws a point in the given location.
+- **draw_point**(**self**, **location**, **size**=0.1f, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
+Draws a point in the given location.
- **Parameters:**
- - `location` (_[carla.Location](#carla.Location)_)
- - `size` (_float_)
- - `color` (_[carla.Color](#carla.Color)_)
- - `life_time` (_float_)
- - `persistent_lines` (_bool_) – _Deprecated, use `life_time = 0` instead_.
-- **draw_line**(**self**, **begin**, **end**, **thickness**=0.1f, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
-Draws a line between two given locations.
+ - `location` (_[carla.Location](#carla.Location)_)
+ - `size` (_float_)
+ - `color` (_[carla.Color](#carla.Color)_)
+ - `life_time` (_float_)
+ - `persistent_lines` (_bool_) – _Deprecated, use `life_time = 0` instead_.
+- **draw_line**(**self**, **begin**, **end**, **thickness**=0.1f, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
+Draws a line between two given locations.
- **Parameters:**
- - `begin` (_[carla.Location](#carla.Location)_)
- - `end` (_[carla.Location](#carla.Location)_)
- - `thickness` (_float_)
- - `color` (_[carla.Color](#carla.Color)_)
- - `life_time` (_float_)
- - `persistent_lines` (_bool_) – _Deprecated, use `life_time = 0` instead_.
-- **draw_arrow**(**self**, **begin**, **end**, **thickness**=0.1f, **arrow_size**=0.1f, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
-Draws an arrow between two given locations.
+ - `begin` (_[carla.Location](#carla.Location)_)
+ - `end` (_[carla.Location](#carla.Location)_)
+ - `thickness` (_float_)
+ - `color` (_[carla.Color](#carla.Color)_)
+ - `life_time` (_float_)
+ - `persistent_lines` (_bool_) – _Deprecated, use `life_time = 0` instead_.
+- **draw_arrow**(**self**, **begin**, **end**, **thickness**=0.1f, **arrow_size**=0.1f, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
+Draws an arrow between two given locations.
- **Parameters:**
- - `begin` (_[carla.Location](#carla.Location)_)
- - `end` (_[carla.Location](#carla.Location)_)
- - `thickness` (_float_)
- - `arrow_size` (_float_)
- - `color` (_[carla.Color](#carla.Color)_)
- - `life_time` (_float_)
- - `persistent_lines` (_bool_) – _Deprecated, use `life_time = 0` instead_.
-- **draw_box**(**self**, **box**, **rotation**, **thickness**=0.1f, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
-Draws the [carla.BoundingBox](#carla.BoundingBox) of a given bounding_box.
Check out this [`recipe`](../python_cookbook/#debug-bounding-box-recipe)!
+ - `begin` (_[carla.Location](#carla.Location)_)
+ - `end` (_[carla.Location](#carla.Location)_)
+ - `thickness` (_float_)
+ - `arrow_size` (_float_)
+ - `color` (_[carla.Color](#carla.Color)_)
+ - `life_time` (_float_)
+ - `persistent_lines` (_bool_) – _Deprecated, use `life_time = 0` instead_.
+- **draw_box**(**self**, **box**, **rotation**, **thickness**=0.1f, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
+Draws the [carla.BoundingBox](#carla.BoundingBox) of a given bounding_box.
Check out this [`recipe`](../python_cookbook/#debug-bounding-box-recipe)!
- **Parameters:**
- - `box` (_[carla.BoundingBox](#carla.BoundingBox)_)
- - `rotation` (_[carla.Rotation](#carla.Rotation)_)
- - `thickness` (_float_)
- - `color` (_[carla.Color](#carla.Color)_)
- - `life_time` (_float_)
- - `persistent_lines` (_bool_) – _Deprecated, use `life_time = 0` instead_.
-- **draw_string**(**self**, **location**, **text**, **draw_shadow**=False, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
-Draws a string in a given location.
+ - `box` (_[carla.BoundingBox](#carla.BoundingBox)_)
+ - `rotation` (_[carla.Rotation](#carla.Rotation)_)
+ - `thickness` (_float_)
+ - `color` (_[carla.Color](#carla.Color)_)
+ - `life_time` (_float_)
+ - `persistent_lines` (_bool_) – _Deprecated, use `life_time = 0` instead_.
+- **draw_string**(**self**, **location**, **text**, **draw_shadow**=False, **color**=(255,0,0), **life_time**=-1.0f, **persistent_lines**=True)
+Draws a string in a given location.
- **Parameters:**
- - `location` (_[carla.Location](#carla.Location)_)
- - `text` (_str_)
- - `draw_shadow` (_bool_)
- - `color` (_[carla.Color](#carla.Color)_)
- - `life_time` (_float_)
- - `persistent_lines` (_bool_) – _Deprecated, set a high `life_time` instead_.
+ - `location` (_[carla.Location](#carla.Location)_)
+ - `text` (_str_)
+ - `draw_shadow` (_bool_)
+ - `color` (_[carla.Color](#carla.Color)_)
+ - `life_time` (_float_)
+ - `persistent_lines` (_bool_) – _Deprecated, set a high `life_time` instead_.
- **Note:** _Strings can only be seen on the server-side.
+<<<<<<< HEAD
_
>>>>>>> Python documentation.
+=======
+_
+>>>>>>> Fixed docs.
---
## carla.GearPhysicsControl
<<<<<<< HEAD
+<<<<<<< HEAD
Class that provides access to vehicle transmission details by defining a gear and when to run on it. This will be later used by [carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl) to help simulate physics.
Instance Variables
@@ -1473,56 +1626,72 @@ The level of RPM (in relation to MaxRPM) where the gear autobox initiates shifti
- **up_ratio** (_float_)
The level of RPM (in relation to MaxRPM) where the gear autobox initiates shifting up.
>>>>>>> Python documentation.
+=======
+Class that provides access to vehicle transmission details.
+
+Instance Variables
+- **ratio** (_float_)
+The transmission ratio of the gear.
+- **down_ratio** (_float_)
+The level of RPM (in relation to MaxRPM) where the gear autobox initiates shifting down.
+- **up_ratio** (_float_)
+The level of RPM (in relation to MaxRPM) where the gear autobox initiates shifting up.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **ratio**=1.0, **down_ratio**=0.5, **up_ratio**=0.65)
+- **\__init__**(**self**, **ratio**=1.0, **down_ratio**=0.5, **up_ratio**=0.65)
- **Parameters:**
- - `ratio` (_float_)
- - `down_ratio` (_float_)
- - `up_ratio` (_float_)
-- **\__eq__**(**self**, **other**)
+ - `ratio` (_float_)
+ - `down_ratio` (_float_)
+ - `up_ratio` (_float_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.GearPhysicsControl](#carla.GearPhysicsControl)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.GearPhysicsControl](#carla.GearPhysicsControl)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.GearPhysicsControl](#carla.GearPhysicsControl)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.GearPhysicsControl](#carla.GearPhysicsControl)_)
+- **\__str__**(**self**)
---
## carla.GeoLocation
<<<<<<< HEAD
+<<<<<<< HEAD
Class that contains geographical coordinates simulated data. The [carla.Map](#carla.Map) can convert simulation locations by using the tag in the OpenDRIVE file.
=======
Class that contains geolocation simulated data.
>>>>>>> Python documentation.
+=======
+Class that contains geolocation simulated data.
+>>>>>>> Fixed docs.
Instance Variables
-- **latitude** (_float_)
-North/South value of a point on the map.
-- **longitude** (_float_)
-West/East value of a point on the map.
-- **altitude** (_float_)
-Height regarding ground level.
+- **latitude** (_float_)
+North/South value of a point on the map.
+- **longitude** (_float_)
+West/East value of a point on the map.
+- **altitude** (_float_)
+Height regarding ground level.
Methods
-- **\__init__**(**self**, **latitude**=0.0, **longitude**=0.0, **altitude**=0.0)
+- **\__init__**(**self**, **latitude**=0.0, **longitude**=0.0, **altitude**=0.0)
- **Parameters:**
- - `latitude` (_float_)
- - `longitude` (_float_)
- - `altitude` (_float_)
-- **\__eq__**(**self**, **other**)
+ - `latitude` (_float_)
+ - `longitude` (_float_)
+ - `altitude` (_float_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.GeoLocation](#carla.GeoLocation)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.GeoLocation](#carla.GeoLocation)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.GeoLocation](#carla.GeoLocation)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.GeoLocation](#carla.GeoLocation)_)
+- **\__str__**(**self**)
---
## carla.GnssMeasurement
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines the Gnss data registered by a sensor.other.gnss. It essentially reports its position with the position of the sensor and an OpenDRIVE geo-reference.
Instance Variables
@@ -1543,14 +1712,26 @@ West/East value of a point on the map.
- **altitude** (_float_)
Height regarding ground level.
>>>>>>> Python documentation.
+=======
+Inherited from _[carla.SensorData](#carla.SensorData)_
Gnss sensor data.
+
+
Instance Variables
+- **latitude** (_float_)
+North/South value of a point on the map.
+- **longitude** (_float_)
+West/East value of a point on the map.
+- **altitude** (_float_)
+Height regarding ground level.
+>>>>>>> Fixed docs.
Methods
-- **\__str__**(**self**)
+- **\__str__**(**self**)
---
## carla.IMUMeasurement
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines the data registered by a sensor.other.imu, regarding the sensor's transformation according to the current [carla.World](#carla.World). It essentially acts as accelerometer, gyroscope and compass.
Instance Variables
@@ -1571,14 +1752,26 @@ Measures angular velocity in `rad/sec`.
- **compass** (_float_)
Orientation with respect to the North (`(0.0, -1.0, 0.0)` in Unreal) in radians.
>>>>>>> Python documentation.
+=======
+Inherited from _[carla.SensorData](#carla.SensorData)_
IMU sensor data regarding the sensor World's transformation.
+
+
Instance Variables
+- **accelerometer** (_[carla.Vector3D](#carla.Vector3D)_)
+Measures linear acceleration in `m/s^2`.
+- **gyroscope** (_[carla.Vector3D](#carla.Vector3D)_)
+Measures angular velocity in `rad/sec`.
+- **compass** (_float_)
+Orientation with respect to the North (`(0.0, -1.0, 0.0)` in Unreal) in radians.
+>>>>>>> Fixed docs.
Methods
-- **\__str__**(**self**)
+- **\__str__**(**self**)
---
## carla.Image
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines an image of 32-bit BGRA colors that will be used as initial data retrieved by camera sensors. There are different camera sensors (currently three, RGB, depth and semantic segmentation) and each of these makes different use for the images. Learn more about them [here](/cameras_and_sensors/).
Instance Variables
@@ -1605,75 +1798,232 @@ Saves the image to disk using a converter pattern stated as `color_converter`. T
- **\__getitem__**(**self**, **pos**)
=======
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines an image of 32-bit BGRA colors.
+=======
+
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines an image of 32-bit BGRA colors.
+>>>>>>> Fixed docs.
Instance Variables
-- **width** (_int_)
-Image width in pixels.
-- **height** (_int_)
-Image height in pixels.
-- **fov** (_float_)
-Horizontal field of view of the image in degrees.
-- **raw_data** (_bytes_)
+- **width** (_int_)
+Image width in pixels.
+- **height** (_int_)
+Image height in pixels.
+- **fov** (_float_)
+Horizontal field of view of the image in degrees.
+- **raw_data** (_bytes_)
Methods
-- **convert**(**self**, **color_converter**)
-Convert the image with the applied conversion.
+- **convert**(**self**, **color_converter**)
+Convert the image with the applied conversion.
- **Parameters:**
- - `color_converter` (_[carla.ColorConverter](#carla.ColorConverter)_)
-- **save_to_disk**(**self**, **path**, **color_converter**=Raw)
-Save the image to disk.
+ - `color_converter` (_[carla.ColorConverter](#carla.ColorConverter)_)
+- **save_to_disk**(**self**, **path**, **color_converter**=Raw)
+Save the image to disk.
- **Parameters:**
+<<<<<<< HEAD
- `path` (_str_) – Path where it will be saved.
- `color_converter` (_[carla.ColorConverter](#carla.ColorConverter)_)
- **\__len__**(**self**)
- **\__iter__**(**self**)
- **\__getitem__**(**self**, **pos**)
>>>>>>> Python documentation.
+=======
+ - `path` (_str_) – Path where it will be saved.
+ - `color_converter` (_[carla.ColorConverter](#carla.ColorConverter)_)
+- **\__len__**(**self**)
+- **\__iter__**(**self**)
+- **\__getitem__**(**self**, **pos**)
+>>>>>>> Fixed docs.
- **Parameters:**
- - `pos` (_int_)
-- **\__setitem__**(**self**, **pos**, **color**)
+ - `pos` (_int_)
+- **\__setitem__**(**self**, **pos**, **color**)
- **Parameters:**
- - `pos` (_int_)
- - `color` (_[carla.Color](#carla.Color)_)
-- **\__str__**(**self**)
+ - `pos` (_int_)
+ - `color` (_[carla.Color](#carla.Color)_)
+- **\__str__**(**self**)
---
## carla.Junction
-Class that embodies the intersections on the road described in the OpenDRIVE file according to OpenDRIVE 1.4 standards.
+Class that embodies the intersections on the road described in the OpenDRIVE file according to OpenDRIVE 1.4 standards.
Instance Variables
-- **id** (_int_)
-Identificator found in the OpenDRIVE file.
-- **bounding_box** (_[carla.BoundingBox](#carla.BoundingBox)_)
-Bounding box encapsulating the junction lanes.
+- **id** (_int_)
+Identificator found in the OpenDRIVE file.
+- **bounding_box** (_[carla.BoundingBox](#carla.BoundingBox)_)
+Bounding box encapsulating the junction lanes.
Methods
-- **get_waypoints**(**self**, **lane_type**)
-Returns a list of pairs of waypoints. Every tuple on the list contains first an initial and then a final waypoint within the intersection boundaries that describe the beginning and the end of said lane along the junction. Lanes follow their OpenDRIVE definitions so there may be many different tuples with the same starting waypoint due to possible deviations, as this are considered different lanes.
+- **get_waypoints**(**self**, **lane_type**)
+Returns a list of pairs of waypoints. Every tuple on the list contains first an initial and then a final waypoint within the intersection boundaries that describe the beginning and the end of said lane along the junction. Lanes follow their OpenDRIVE definitions so there may be many different tuples with the same starting waypoint due to possible deviations, as this are considered different lanes.
- **Parameters:**
- - `lane_type` (_[carla.LaneType](#carla.LaneType)_) – Type of lanes to get the waypoints.
- - **Return:** _list(tuple([carla.Waypoint](#carla.Waypoint)))_
+ - `lane_type` (_[carla.LaneType](#carla.LaneType)_) – Type of lanes to get the waypoints.
+ - **Return:** _list(tuple([carla.Waypoint](#carla.Waypoint)))_
+
+---
+
+## carla.Landmark
+Class containing the definition of a signal affecting a specific road.
+
+Instance Variables
+- **road_id** (_int_)
+Id of the road where this signal is defined. This road may be different from the road this signal is currently affecting.
+- **distance** (_float_)
+Remaining distance to the signal from the waypoint calling `get_landmarks` or `get_landmarks_of_type`.
+- **s** (_float_)
+Distance position of the signal along the geometry of the road `road_id`.
+- **t** (_float_)
+Lateral position of the signal along the geometry of the road `road_id`.
+- **id** (_str_)
+Unique id of the signal in the OpenDRIVE file.
+- **name** (_str_)
+Name of the signal in the in the OpenDRIVE file.
+- **is_dynamic** (_bool_)
+Indicates if the signal state changes over time such as traffic lights.
+- **orientation** (_LandmarkOrientation_)
+Indicates if the signal state changes over time such as traffic lights.
+- **z_offset** (_float_)
+Elevation from the ground of the signal.
+- **country** (_str_)
+Country code where this signal is defined (default to OpenDRIVE).
+- **type** (_str_)
+Type identification of the signal according to country code.
+- **sub_type** (_str_)
+Subtype identification of the signal according to country code.
+- **value** (_float_)
+Value printed in the signal (e.g. speed limit, maximum weight, etc).
+- **unit** (_str_)
+Units of attribute `value`.
+- **height** (_float_)
+Total height of the signal.
+- **width** (_float_)
+Total width of the signal.
+- **text** (_str_)
+Additional text in the signal.
+- **h_offset** (_float_)
+Heading of the signal relative to the orientation of the road.
+- **pitch** (_float_)
+Pitch of the signal.
+- **roll** (_float_)
+Roll of the signal.
+- **waypoint** (_[carla.Waypoint](#carla.Waypoint)_)
+The waypoint where this signal is producing an effect in the road.
+- **transform** (_[carla.Transform](#carla.Transform)_)
+The position and orientation of this signal in the world.
+
+Methods
+- **get_lane_validities**(**self**)
+Returns a list of pairs of lane ids defining to which lanes this signal is producing an effect.
+The pair defines a range of lanes (from_lane_id, to_lane_id).
+ - **Return:** _list(tuple(int))_
+
+---
+
+## carla.LandmarkOrientation
+Class defining the orientation of a landmark in the road.
+
+Instance Variables
+- **Positive**
+Positive direction of the road's geometry definition (negative lanes).
+- **Negative**
+Negative direction of the road's geometry definition (positive lanes).
+- **Both**
+Affects lanes in both directions of the road.
+
+---
+
+## carla.LandmarkType
+Class containing a set of landmarks using the country code OpenDRIVE. See section 6.10 in the OpenDrive 1.5M specification.
+
+Instance Variables
+- **Danger**
+Type 101.
+- **LanesMerging**
+Type 121.
+- **CautionPedestrian**
+Type 133.
+- **CautionBicycle**
+Type 138.
+- **LevelCrossing**
+Type 150.
+- **Stop**
+Type 206.
+- **Yield**
+Type 205.
+- **MandatoryTurnDirection**
+Type 209.
+- **MandatoryLeftRightDirection**
+Type 211.
+- **TwoChoiceTurnDirection**
+Type 214.
+- **Roundabout**
+Type 215.
+- **PassRightLeft**
+Type 222.
+- **AccessForbidden**
+Type 250.
+- **AccessForbiddenMotorvehicles**
+Type 251.
+- **AccessForbiddenTrucks**
+Type 253.
+- **AccessForbiddenBicycle**
+Type 254.
+- **AccessForbiddenWeight**
+Type 263.
+- **AccessForbiddenWidth**
+Type 264.
+- **AccessForbiddenHeight**
+Type 265.
+- **AccessForbiddenWrongDirection**
+Type 267.
+- **ForbiddenUTurn**
+Type 272.
+- **MaximumSpeed**
+Type 274.
+- **ForbiddenOvertakingMotorvehicles**
+Type 276.
+- **ForbiddenOvertakingTrucks**
+Type 277.
+- **AbsoluteNoStop**
+Type 283.
+- **RestrictedStop**
+Type 286.
+- **HasWayNextIntersection**
+Type 301.
+- **PriorityWay**
+Type 306.
+- **PriorityWayEnd**
+Type 307.
+- **CityBegin**
+Type 310.
+- **CityEnd**
+Type 311.
+- **Highway**
+Type 330.
+- **RecomendedSpeed**
+Type 380.
+- **RecomendedSpeedEnd**
+Type 381.
---
## carla.LaneChange
-Class that defines the permission to turn either left, right, both or none (meaning only going straight is allowed). This information is stored for every [carla.Waypoint](#carla.Waypoint) according to the OpenDRIVE file. In this [recipe](../python_cookbook/#lanes-recipe) the user creates a waypoint for a current vehicle position and learns which turns are permitted.
+Class that defines the permission to turn either left, right, both or none (meaning only going straight is allowed). This information is stored for every [carla.Waypoint](#carla.Waypoint) according to the OpenDRIVE file. In this [recipe](../python_cookbook/#lanes-recipe) the user creates a waypoint for a current vehicle position and learns which turns are permitted.
Instance Variables
-- **NONE**
-Traffic rules do not allow turning right or left, only going straight.
-- **Both**
-Traffic rules allow turning either right or left.
-- **Left**
-Traffic rules allow turning left.
-- **Right**
-Traffic rules allow turning right.
+- **NONE**
+Traffic rules do not allow turning right or left, only going straight.
+- **Both**
+Traffic rules allow turning either right or left.
+- **Left**
+Traffic rules allow turning left.
+- **Right**
+Traffic rules allow turning right.
---
## carla.LaneInvasionEvent
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines lanes invasion for sensor.other.lane_invasion. It works only client-side and is dependant on OpenDRIVE to provide reliable information. The sensor creates one of this every time there is a lane invasion, which may be more than once per simulation step. Learn more about this [here](/cameras_and_sensors/#sensorotherlane_invasion).
Instance Variables
@@ -1690,44 +2040,54 @@ Get "self" actor. Actor that invaded another lane.
- **crossed_lane_markings** (_list([carla.LaneMarking](#carla.LaneMarking))_)
List of lane markings that have been crossed.
>>>>>>> Python documentation.
+=======
+Inherited from _[carla.SensorData](#carla.SensorData)_
Lane invasion sensor data.
+
+
Instance Variables
+- **actor** (_[carla.Actor](#carla.Actor)_)
+Get "self" actor. Actor that invaded another lane.
+- **crossed_lane_markings** (_list([carla.LaneMarking](#carla.LaneMarking))_)
+List of lane markings that have been crossed.
+>>>>>>> Fixed docs.
Methods
-- **\__str__**(**self**)
+- **\__str__**(**self**)
---
## carla.LaneMarking
-Class that gathers all the information regarding a lane marking according to [OpenDRIVE 1.4 standard](http://www.opendrive.org/docs/OpenDRIVEFormatSpecRev1.4H.pdf) standard.
+Class that gathers all the information regarding a lane marking according to [OpenDRIVE 1.4 standard](http://www.opendrive.org/docs/OpenDRIVEFormatSpecRev1.4H.pdf) standard.
Instance Variables
-- **color** (_[carla.LaneMarkingColor](#carla.LaneMarkingColor)_)
-Actual color of the marking.
-- **lane_change** (_[carla.LaneChange](#carla.LaneChange)_)
-Permissions for said lane marking to be crossed.
-- **type** (_[carla.LaneMarkingType](#carla.LaneMarkingType)_)
-Lane marking type.
-- **width** (_float_)
-Horizontal lane marking thickness.
+- **color** (_[carla.LaneMarkingColor](#carla.LaneMarkingColor)_)
+Actual color of the marking.
+- **lane_change** (_[carla.LaneChange](#carla.LaneChange)_)
+Permissions for said lane marking to be crossed.
+- **type** (_[carla.LaneMarkingType](#carla.LaneMarkingType)_)
+Lane marking type.
+- **width** (_float_)
+Horizontal lane marking thickness.
---
## carla.LaneMarkingColor
-Class that defines the lane marking colors according to OpenDRIVE 1.4.
+Class that defines the lane marking colors according to OpenDRIVE 1.4.
Instance Variables
-- **Standard**
-White by default.
-- **Blue**
-- **Green**
-- **Red**
-- **White**
-- **Yellow**
-- **Other**
+- **Standard**
+White by default.
+- **Blue**
+- **Green**
+- **Red**
+- **White**
+- **Yellow**
+- **Other**
---
## carla.LaneMarkingType
<<<<<<< HEAD
+<<<<<<< HEAD
Class that defines the lane marking types accepted by OpenDRIVE 1.4. Take a look at this [recipe](../python_cookbook/#lanes-recipe) where the user creates a [carla.Waypoint](#carla.Waypoint) for a vehicle location and retrieves from it the information about adjacent lane markings.
__Note on double types:__ Lane markings are defined under the OpenDRIVE standard that determines whereas a line will be considered "BrokenSolid" or "SolidBroken". For each road there is a center lane marking, defined from left to right regarding the lane's directions. The rest of the lane markings are defined in order from the center lane to the closest outside of the road.
@@ -1763,15 +2123,43 @@ From inside to outside except for center lane which is from left to right.
For double solid line.
- **Other**
>>>>>>> Python documentation.
+=======
+Class that defines the lane marking types accepted by OpenDRIVE 1.4. Take a look at this [recipe](../python_cookbook/#lanes-recipe) where the user creates a [carla.Waypoint](#carla.Waypoint) for a vehicle location and retrieves from it the information about adjacent lane markings.
+
+Instance Variables
+- **NONE**
+- **BottsDots**
+- **Broken**
+- **BrokenBroken**
+From inside to outside except for center lane which is from left to right.
+- **BrokenSolid**
+From inside to outside except for center lane which is from left to right.
+- **Curb**
+- **Grass**
+- **Solid**
+- **SolidBroken**
+From inside to outside except for center lane which is from left to right.
+- **SolidSolid**
+For double solid line.
+- **Other**
+>>>>>>> Fixed docs.
---
## carla.LaneType
<<<<<<< HEAD
+<<<<<<< HEAD
+=======
+>>>>>>> Fixed docs.
Class that defines the possible lane types accepted by OpenDRIVE 1.4. This standards define the road information. For instance in this [recipe](../python_cookbook/#lanes-recipe) the user creates a [carla.Waypoint](#carla.Waypoint) for the current location of a vehicle and uses it to get the current and adjacent lane types.
Instance Variables
- **NONE**
+<<<<<<< HEAD
+=======
+- **Any**
+Every type except for NONE.
+>>>>>>> Fixed docs.
- **Bidirectional**
- **Biking**
- **Border**
@@ -1792,6 +2180,7 @@ Class that defines the possible lane types accepted by OpenDRIVE 1.4. This stand
- **Special3**
- **Stop**
- **Tram**
+<<<<<<< HEAD
- **Any**
Every type except for NONE.
=======
@@ -1822,11 +2211,14 @@ Every type except for NONE.
- **Stop**
- **Tram**
>>>>>>> Python documentation.
+=======
+>>>>>>> Fixed docs.
---
## carla.LidarMeasurement
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines the lidar data retrieved by a sensor.lidar.ray_cast. This essentially simulates a rotating lidar using ray-casting. Learn more about this [here](/cameras_and_sensors/#sensorlidarray_cast).
Instance Variables
@@ -1846,42 +2238,52 @@ Retrieves the number of points sorted by channel that are generated by this meas
Saves the point cloud to disk as a .ply file describing data from 3D scanners. The files generated are ready to be used within [MeshLab](http://www.meshlab.net/), an open source system for processing said files. Just take into account that axis may differ from Unreal Engine and so, need to be reallocated.
=======
Inherited from _[carla.SensorData](#carla.SensorData)_
Lidar sensor measurement data.
+=======
+
Inherited from _[carla.SensorData](#carla.SensorData)_
Lidar sensor measurement data.
+>>>>>>> Fixed docs.
Instance Variables
-- **horizontal_angle** (_float_)
-Horizontal angle that the Lidar has rotated at the time of the measurement (in radians).
-- **channels** (_int_)
-Number of lasers.
-- **raw_data** (_bytes_)
-List of 3D points.
+- **horizontal_angle** (_float_)
+Horizontal angle that the Lidar has rotated at the time of the measurement (in radians).
+- **channels** (_int_)
+Number of lasers.
+- **raw_data** (_bytes_)
+List of 3D points.
Methods
-- **get_point_count**(**self**, **channel**)
-Retrieve the number of points that are generated by this channel.
+- **get_point_count**(**self**, **channel**)
+Retrieve the number of points that are generated by this channel.
- **Parameters:**
- - `channel` (_int_)
+ - `channel` (_int_)
- **Note:** _Points are sorted by channel, so this method allows to identify the channel that generated each point.
+<<<<<<< HEAD
_
- **save_to_disk**(**self**, **path**)
Save point cloud to disk.
>>>>>>> Python documentation.
+=======
+_
+- **save_to_disk**(**self**, **path**)
+Save point cloud to disk.
+>>>>>>> Fixed docs.
- **Parameters:**
- - `path` (_str_)
-- **\__len__**(**self**)
-- **\__iter__**(**self**)
-- **\__getitem__**(**self**, **pos**)
+ - `path` (_str_)
+- **\__len__**(**self**)
+- **\__iter__**(**self**)
+- **\__getitem__**(**self**, **pos**)
- **Parameters:**
- - `pos` (_int_)
-- **\__setitem__**(**self**, **pos**, **location**)
+ - `pos` (_int_)
+- **\__setitem__**(**self**, **pos**, **location**)
- **Parameters:**
- - `pos` (_int_)
- - `location` (_[carla.Location](#carla.Location)_)
-- **\__str__**(**self**)
+ - `pos` (_int_)
+ - `location` (_[carla.Location](#carla.Location)_)
+- **\__str__**(**self**)
---
## carla.Location
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.Vector3D](#carla.Vector3D)_
Represents a spot in the world.
Instance Variables
@@ -1999,18 +2401,48 @@ Returns a list of pairs of lane ids defining to which lanes this signal is produ
The pair defines a range of lanes (from_lane_id, to_lane_id).
- **Return:** _list(tuple(int))_
>>>>>>> Python documentation.
+=======
+Inherited from _[carla.Vector3D](#carla.Vector3D)_
Represents a location in the world (in meters).
+
+
Instance Variables
+- **x** (_float_)
+- **y** (_float_)
+- **z** (_float_)
+
+Methods
+- **\__init__**(**self**, **x**=0.0, **y**=0.0, **z**=0.0)
+ - **Parameters:**
+ - `x` (_float_)
+ - `y` (_float_)
+ - `z` (_float_)
+- **distance**(**self**, **location**)
+Computes the Euclidean distance in meters from this location to another one.
+ - **Parameters:**
+ - `location` (_[carla.Location](#carla.Location)_) – The Location from where to compute the distance.
+ - **Return:** _float_
+- **\__eq__**(**self**, **other**)
+ - **Parameters:**
+ - `other` (_[carla.Location](#carla.Location)_)
+- **\__ne__**(**self**, **other**)
+ - **Parameters:**
+ - `other` (_[carla.Location](#carla.Location)_)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
-## carla.Map _class_
-Class containing the road information and waypoint managing. Data is retrieved from an OpenDRIVE file that describes the road. A query system is defined which works hand in hand with [carla.Waypoint](#carla.Waypoint) to translate geometrical information from the .xodr to natural world points. CARLA is currently working with [OpenDRIVE 1.4 standard](http://www.opendrive.org/docs/OpenDRIVEFormatSpecRev1.4H.pdf).
+## carla.Map
+Class containing the road information and waypoint managing. Data is retrieved from an OpenDRIVE file that describes the road. A query system is defined which works hand in hand with [carla.Waypoint](#carla.Waypoint) to translate geometrical information from the .xodr to natural world points. CARLA is currently working with [OpenDRIVE 1.4 standard](http://www.opendrive.org/docs/OpenDRIVEFormatSpecRev1.4H.pdf).
Instance Variables
-- **name** (_str_)
-The name of the map. It corresponds to the .umap from Unreal Engine that is loaded from a CARLA server, which then references to the .xodr road description.
+- **name** (_str_)
+The name of the map. It corresponds to the .umap from Unreal Engine that is loaded from a CARLA server, which then references to the .xodr road description.
Methods
<<<<<<< HEAD
+<<<<<<< HEAD
+=======
+>>>>>>> Fixed docs.
- **\__init__**(**self**, **name**, **xodr_content**)
Constructor for this class. Though a map is automatically generated when initializing the world, using this method in no-rendering mode facilitates working with an .xodr without any CARLA server running.
- **Parameters:**
@@ -2023,12 +2455,17 @@ Returns a list of waypoints with a certain distance between them for every lane
- `distance` (_float_) – Approximate distance between waypoints.
- **Return:** _list([carla.Waypoint](#carla.Waypoint))_
- **get_spawn_points**(**self**)
+<<<<<<< HEAD
Returns a list of recommendations made by the creators of the map to be used as spawning points for the vehicles. The list includes [carla.Transform](#carla.Transform) objects with certain location and orientation. Said locations are slightly on-air in order to avoid Z-collisions, so vehicles fall for a bit before starting their way.
+=======
+Returns a list of recommendations made by creators of the map to be used spawning points for vehicles. The list includes [carla.Tranform](#carla.Tranform) objects with certain location and orientation. Said locations are slightly on-air and vehicles fall for a bit before starting their way.
+>>>>>>> Fixed docs.
- **Return:** _list([carla.Transform](#carla.Transform))_
- **get_topology**(**self**)
Returns a list of tuples describing a minimal graph of the topology of the OpenDRIVE file. The tuples contain pairs of waypoints located either at the point a road begins or ends. The first one is the origin and the second one represents another road end that can be reached. This graph can be loaded into [NetworkX](https://networkx.github.io/) to work with. Output could look like this: [(w0, w1), (w0, w2), (w1, w3), (w2, w3), (w0, w4)].
- **Return:** _list(tuple([carla.Waypoint](#carla.Waypoint), [carla.Waypoint](#carla.Waypoint)))_
- **get_waypoint**(**self**, **location**, **project_to_road**=True, **lane_type**=[carla.LaneType.Driving](#carla.LaneType.Driving))
+<<<<<<< HEAD
Returns a waypoint that can be located in an exact location or translated to the center of the nearest lane. Said lane type can be defined using flags such as `LaneType.Driving & LaneType.Shoulder`.
The method will return None if the waypoint is not found, which may happen only when trying to retrieve a waypoint for an exact location. That eases checking if a point is inside a certain road, as otherwise, it will return the corresponding waypoint.
- **Parameters:**
@@ -2111,11 +2548,49 @@ Converts a given `location`, a point in the simulation, to a [carla.GeoLocation]
- **Return:** _[carla.GeoLocation](#carla.GeoLocation)_
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+Returns a waypoint that can be located in an exact location or translated to the center of the nearest lane. Said lane type can be defined using flags such as `LaneType.Driving & LaneType.Shoulder`.
+ The method will return None if the waypoint is not found, which may happen only when trying to retrieve a waypoint for an exact location. That eases checking if a point is inside a certain road, as otherwise, it will return the corresponding waypoint.
+ - **Parameters:**
+ - `location` (_[carla.Location](#carla.Location)_) – Location used as reference for the [carla.Waypoint](#carla.Waypoint).
+ - `project_to_road` (_bool_) – If **True**, the waypoint will be at the center of the closest lane. This is the default setting. If **False**, the waypoint will be exactly in `location`. None means said location does not belong to a road.
+ - `lane_type` (_[carla.LaneType](#carla.LaneType)_) – Limits the search for nearest lane to one or various lane types that can be flagged.
+ - **Return:** _[carla.Waypoint](#carla.Waypoint)_
+- **get_waypoint_xodr**(**self**, **road_id**, **lane_id**, **s**)
+Get a waypoint if all the parameters passed are correct, otherwise return None.
+ - **Parameters:**
+ - `road_id` (_int_) – Id of the road from where getting the waypoint.
+ - `lane_id` (_int_) – Id of the lane to get the waypoint.
+ - `s` (_float_) – Specify the length from the road start.
+ - **Return:** _[carla.Waypoint](#carla.Waypoint)_
+- **get_topology**(**self**)
+It provides a minimal graph of the topology of the current OpenDRIVE file. It is constituted by a list of pairs of waypoints, where the first waypoint is the origin and the second one is the destination. It can be loaded into [NetworkX](https://networkx.github.io/). A valid output could be: `[ (w0, w1), (w0, w2), (w1, w3), (w2, w3), (w0, w4) ]`.
+ - **Return:** _list(tuple([carla.Waypoint](#carla.Waypoint), [carla.Waypoint](#carla.Waypoint)))_
+- **generate_waypoints**(**self**, **distance**)
+Returns a list of waypoints positioned on the center of the lanes all over the map with an approximate distance between them.
+ - **Parameters:**
+ - `distance` (_float_) – Approximate distance between the waypoints.
+ - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
+- **transform_to_geolocation**(**self**, **path**)
+Saves the .xodr OpenDRIVE file of the current map to disk.
+ - **Parameters:**
+ - `path` – Path where the file will be saved.
+- **to_opendrive**(**self**)
+Returns the .xodr OpenDRIVe file of the current map as string.
+ - **Return:** _str_
+- **transform_to_geolocation**(**self**, **location**)
+Converts a given `location`, a point in the simulation, to a [carla.GeoLocation](#carla.GeoLocation), which represents world coordinates. The geographical location of the map is defined inside OpenDRIVE within the tag .
+ - **Parameters:**
+ - `location` (_[carla.Location](#carla.Location)_)
+ - **Return:** _[carla.GeoLocation](#carla.GeoLocation)_
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.ObstacleDetectionEvent
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines the obstacle data for sensor.other.obstacle. Learn more about this [here](/cameras_and_sensors/#sensorotherobstacle).
Instance Variables
@@ -2136,14 +2611,26 @@ Get the actor to which we collided.
- **distance** (_float_)
Get obstacle distance.
>>>>>>> Python documentation.
+=======
+Inherited from _[carla.SensorData](#carla.SensorData)_
Obstacle detection sensor data.
+
+
Instance Variables
+- **actor** (_[carla.Actor](#carla.Actor)_)
+Get "self" actor. Actor that measured the collision.
+- **other_actor** (_[carla.Actor](#carla.Actor)_)
+Get the actor to which we collided.
+- **distance** (_float_)
+Get obstacle distance.
+>>>>>>> Fixed docs.
Methods
-- **\__str__**(**self**)
+- **\__str__**(**self**)
---
## carla.RadarDetection
<<<<<<< HEAD
+<<<<<<< HEAD
Data contained inside a [carla.RadarMeasurement](#carla.RadarMeasurement). Each of these represents one of the points in the cloud that a sensor.other.radar registers and contains the distance, angle and velocity in relation to the radar.
Instance Variables
@@ -2168,14 +2655,28 @@ Altitude angle of the detection in radians.
- **depth** (_float_)
Distance in meters from the sensor to the detection position.
>>>>>>> Python documentation.
+=======
+Data contained by a [carla.RadarMeasurement](#carla.RadarMeasurement). Represents an object detection produced by the Radar sensor.
+
+Instance Variables
+- **velocity** (_float_)
+The velocity of the detected object towards the sensor in meters per second.
+- **azimuth** (_float_)
+Azimuth angle of the detection in radians.
+- **altitude** (_float_)
+Altitude angle of the detection in radians.
+- **depth** (_float_)
+Distance in meters from the sensor to the detection position.
+>>>>>>> Fixed docs.
Methods
-- **\__str__**(**self**)
+- **\__str__**(**self**)
---
## carla.RadarMeasurement
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.SensorData](#carla.SensorData)_
Class that defines and gathers the measures registered by a sensor.other.radar, representing a wall of points in front of the sensor with a distance, angle and velocity in relation to it. The data consists of a [carla.RadarDetection](#carla.RadarDetection) array.
Instance Variables
@@ -2190,35 +2691,47 @@ Retrieves the number of entries generated, same as **\__st
- **\__getitem__**(**self**, **pos**)
=======
Inherited from _[carla.SensorData](#carla.SensorData)_
Measurement produced by a Radar. Consists of an array of [carla.RadarDetection](#carla.RadarDetection).
+=======
+
Inherited from _[carla.SensorData](#carla.SensorData)_
Measurement produced by a Radar. Consists of an array of [carla.RadarDetection](#carla.RadarDetection).
+>>>>>>> Fixed docs.
Instance Variables
-- **raw_data** (_bytes_)
-List of [carla.RadarDetection](#carla.RadarDetection).
+- **raw_data** (_bytes_)
+List of [carla.RadarDetection](#carla.RadarDetection).
Methods
+<<<<<<< HEAD
- **get_detection_count**(**self**)
Retrieve the number of [carla.RadarDetection](#carla.RadarDetection) that are generated.
- **\__len__**(**self**)
- **\__iter__**(**self**)
- **\__getitem__**(**self**, **pos**)
>>>>>>> Python documentation.
+=======
+- **get_detection_count**(**self**)
+Retrieve the number of [carla.RadarDetection](#carla.RadarDetection) that are generated.
+- **\__len__**(**self**)
+- **\__iter__**(**self**)
+- **\__getitem__**(**self**, **pos**)
+>>>>>>> Fixed docs.
- **Parameters:**
- - `pos` (_int_)
-- **\__setitem__**(**self**, **pos**, **detection**)
+ - `pos` (_int_)
+- **\__setitem__**(**self**, **pos**, **detection**)
- **Parameters:**
- - `pos` (_int_)
- - `detection` (_[carla.RadarDetection](#carla.RadarDetection)_)
-- **\__str__**(**self**)
+ - `pos` (_int_)
+ - `detection` (_[carla.RadarDetection](#carla.RadarDetection)_)
+- **\__str__**(**self**)
---
## carla.Rotation
Class that represents a 3D rotation and therefore, an orientation in space.
-![UE4_Rotation](https://d26ilriwvtzlb.cloudfront.net/8/83/BRMC_9.jpg) _Unreal Engine's standard (from [UE4 docs](https://wiki.unrealengine.com/Blueprint_Rotating_Movement_Component))_.
+![UE4_Rotation](https://d26ilriwvtzlb.cloudfront.net/8/83/BRMC_9.jpg) _Unreal Engine's standard (from [UE4 docs](https://wiki.unrealengine.com/Blueprint_Rotating_Movement_Component))_.
Instance Variables
<<<<<<< HEAD
+<<<<<<< HEAD
- **pitch** (_float_)
Degrees around the Y-axis.
- **yaw** (_float_)
@@ -2233,10 +2746,19 @@ Rotation about Z-axis.
- **roll** (_float_)
Rotation about X-axis.
>>>>>>> Python documentation.
+=======
+- **pitch** (_float_)
+Rotation about Y-axis.
+- **yaw** (_float_)
+Rotation about Z-axis.
+- **roll** (_float_)
+Rotation about X-axis.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **pitch**=0.0, **yaw**=0.0, **roll**=0.0)
+- **\__init__**(**self**, **pitch**=0.0, **yaw**=0.0, **roll**=0.0)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `pitch` (_float_) – Y rotation in degrees.
- `yaw` (_float_) – Z rotation in degrees.
@@ -2264,18 +2786,33 @@ Parses the axis' orientations to string.
Computes a forward vector using the current rotation.
- **Return:** _[carla.Vector3D](#carla.Vector3D)_
- **\__eq__**(**self**, **other**)
+=======
+ - `pitch` (_float_)
+ - `yaw` (_float_)
+ - `roll` (_float_)
+- **get_forward_vector**(**self**)
+Computes a forward vector using the current rotation.
+ - **Return:** _[carla.Vector3D](#carla.Vector3D)_
+- **\__eq__**(**self**, **other**)
+>>>>>>> Fixed docs.
- **Parameters:**
- - `other` (_[carla.Rotation](#carla.Rotation)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.Rotation](#carla.Rotation)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
+<<<<<<< HEAD
- `other` (_[carla.Rotation](#carla.Rotation)_)
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `other` (_[carla.Rotation](#carla.Rotation)_)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.Sensor
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.Actor](#carla.Actor)_
Sensors compound a specific family of actors quite diverse and unique. They are normally spawned as attachment/sons of a vehicle (take a look at [carla.World](#carla.World) to learn about actor spawning). Sensors are thoroughly designed to retrieve different types of data that they are listening to. The data they receive is shaped as different subclasses inherited from [carla.SensorData](#carla.SensorData) (depending on the sensor).
Most sensors can be divided in two groups: those receiving data on every tick (cameras, point clouds and some specific sensors) and those who only receive under certain circumstances (trigger detectors). CARLA provides a specific set of sensors and their blueprint can be found in [carla.BlueprintLibrary](#carla.BlueprintLibrary). All the information on their preferences and settlement can be found [here](/cameras_and_sensors/), but the list of those available in CARLA so far goes as follow:
@@ -2306,24 +2843,35 @@ Commands the sensor to stop listening for data.
- **\__str__**(**self**)
=======
Inherited from _[carla.Actor](#carla.Actor)_
A sensor actor.
+=======
+
Inherited from _[carla.Actor](#carla.Actor)_
A sensor actor.
+>>>>>>> Fixed docs.
Instance Variables
-- **is_listening** (_boolean_)
-Is true if the sensor is listening for data.
+- **is_listening** (_boolean_)
+Is true if the sensor is listening for data.
Methods
-- **listen**(**self**, **callback**)
+- **listen**(**self**, **callback**)
- **Parameters:**
+<<<<<<< HEAD
- `callback` (_function_) – Register a callback to be executed each time a new measurement is received. The callback must accept a single argument containing the sensor data; the type of this object varies depending on the type of sensor, but they all derive from [carla.SensorData](#carla.SensorData).
- **stop**(**self**)
Stops listening for data.
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `callback` (_function_) – Register a callback to be executed each time a new measurement is received. The callback must accept a single argument containing the sensor data; the type of this object varies depending on the type of sensor, but they all derive from [carla.SensorData](#carla.SensorData).
+- **stop**(**self**)
+Stops listening for data.
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.SensorData
<<<<<<< HEAD
+<<<<<<< HEAD
Base class for all the objects containing data generated by a [carla.Sensor](#carla.Sensor). This objects should be the argument of the function said sensor is listening to, in order to work with them. Each of these sensors needs for a specific type of sensor data. The relation between available sensors and their corresponding data goes like:
- Cameras (RGB, depth and semantic segmentation): [carla.Image](#carla.Image).
- Collision detector: [carla.CollisionEvent](#carla.CollisionEvent).
@@ -2336,19 +2884,23 @@ Base class for all the objects containing data generated by a [carla.Sensor](#ca
=======
Base class for all the objects containing data generated by a sensor.
>>>>>>> Python documentation.
+=======
+Base class for all the objects containing data generated by a sensor.
+>>>>>>> Fixed docs.
Instance Variables
-- **frame** (_int_)
-Frame count when the data was generated.
-- **timestamp** (_float_)
-Simulation-time when the data was generated.
-- **transform** (_[carla.Transform](#carla.Transform)_)
-Sensor's transform when the data was generated.
+- **frame** (_int_)
+Frame count when the data was generated.
+- **timestamp** (_float_)
+Simulation-time when the data was generated.
+- **transform** (_[carla.Transform](#carla.Transform)_)
+Sensor's transform when the data was generated.
---
## carla.Timestamp
<<<<<<< HEAD
+<<<<<<< HEAD
Class that contains time information for simulated data. This information is automatically retrieved as part of the [carla.WorldSnapshot](#carla.WorldSnapshot) the client gets on every frame, but might also be used in many other situations such as a [carla.Sensor](#carla.Sensor) retrieveing data.
Instance Variables
@@ -2373,26 +2925,40 @@ Simulated seconds elapsed since the previous frame.
- **platform_timestamp** (_float_)
Time-stamp of the frame at which this measurement was taken, in seconds as given by the OS.
>>>>>>> Python documentation.
+=======
+Class that contains Timestamp simulated data.
+
+Instance Variables
+- **frame** (_int_)
+The number of frames elapsed since the simulator was launched.
+- **elapsed_seconds** (_float_)
+Simulated seconds elapsed since the beginning of the current episode.
+- **delta_seconds** (_float_)
+Simulated seconds elapsed since the previous frame.
+- **platform_timestamp** (_float_)
+Time-stamp of the frame at which this measurement was taken, in seconds as given by the OS.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **frame**, **elapsed_seconds**, **delta_seconds**, **platform_timestamp**)
+- **\__init__**(**self**, **frame**, **elapsed_seconds**, **delta_seconds**, **platform_timestamp**)
- **Parameters:**
- - `frame` (_int_)
- - `elapsed_seconds` (_float_)
- - `delta_seconds` (_float_)
- - `platform_timestamp` (_float_)
-- **\__eq__**(**self**, **other**)
+ - `frame` (_int_)
+ - `elapsed_seconds` (_float_)
+ - `delta_seconds` (_float_)
+ - `platform_timestamp` (_float_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Timestamp](#carla.Timestamp)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.Timestamp](#carla.Timestamp)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Timestamp](#carla.Timestamp)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.Timestamp](#carla.Timestamp)_)
+- **\__str__**(**self**)
---
## carla.TrafficLight
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.TrafficSign](#carla.TrafficSign)_
A traffic light actor, considered a specific type of traffic sign. As traffic lights will mostly appear at junctions, they belong to a group which contains the different traffic lights in it. Inside the group, traffic lights are differenciated by their pole index.
Within a group the state of traffic lights is changed in a cyclic pattern: one index is chosen and it spends a few seconds in green, yellow and eventually red. The rest of the traffic lights remain frozen in red this whole time, meaning that there is a gap in the last seconds of the cycle where all the traffic lights are red. However, the state of a traffic light can be changed manually. Take a look at this [recipe](../python_cookbook/#traffic-lights-recipe) to learn how to do so.
@@ -2450,76 +3016,85 @@ Sets a given time (in seconds) for the yellow light to be active.
- **\__str__**(**self**)
=======
Inherited from _[carla.TrafficSign](#carla.TrafficSign)_
A traffic light actor. Check out this [`recipe`](../python_cookbook/#traffic-lights-recipe)!
+=======
+
Inherited from _[carla.TrafficSign](#carla.TrafficSign)_
A traffic light actor. Check out this [`recipe`](../python_cookbook/#traffic-lights-recipe)!
+>>>>>>> Fixed docs.
Instance Variables
-- **state** (_[carla.TrafficLightState](#carla.TrafficLightState)_)
-Current traffic light state.
+- **state** (_[carla.TrafficLightState](#carla.TrafficLightState)_)
+Current traffic light state.
Methods
-- **set_state**(**self**, **state**)
-Sets a given state to a traffic light actor.
+- **set_state**(**self**, **state**)
+Sets a given state to a traffic light actor.
- **Parameters:**
- - `state` (_[carla.TrafficLightState](#carla.TrafficLightState)_)
-- **get_state**(**self**)
-Returns the current state of the traffic light.
- - **Return:** _[carla.TrafficLightState](#carla.TrafficLightState)_
+ - `state` (_[carla.TrafficLightState](#carla.TrafficLightState)_)
+- **get_state**(**self**)
+Returns the current state of the traffic light.
+ - **Return:** _[carla.TrafficLightState](#carla.TrafficLightState)_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **set_green_time**(**self**, **green_time**)
+_
+- **set_green_time**(**self**, **green_time**)
- **Parameters:**
- - `green_time` (_float_) – Sets a given time (in seconds) to the green state to be active.
-- **get_green_time**(**self**)
-Returns the current time set for the green light to be active.
- - **Return:** _float_
+ - `green_time` (_float_) – Sets a given time (in seconds) to the green state to be active.
+- **get_green_time**(**self**)
+Returns the current time set for the green light to be active.
+ - **Return:** _float_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **set_yellow_time**(**self**, **yellow_time**)
-Sets a given time (in seconds) to the yellow state to be active.
+_
+- **set_yellow_time**(**self**, **yellow_time**)
+Sets a given time (in seconds) to the yellow state to be active.
- **Parameters:**
- - `yellow_time` (_float_)
-- **get_yellow_time**(**self**)
-Returns the current time set for the yellow light to be active.
- - **Return:** _float_
+ - `yellow_time` (_float_)
+- **get_yellow_time**(**self**)
+Returns the current time set for the yellow light to be active.
+ - **Return:** _float_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **set_red_time**(**self**, **red_time**)
-Sets a given time (in seconds) to the red state to be active.
+_
+- **set_red_time**(**self**, **red_time**)
+Sets a given time (in seconds) to the red state to be active.
- **Parameters:**
- - `red_time` (_float_)
-- **get_red_time**(**self**)
-Returns the current time set for the red light to be active.
- - **Return:** _float_
+ - `red_time` (_float_)
+- **get_red_time**(**self**)
+Returns the current time set for the red light to be active.
+ - **Return:** _float_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **get_elapsed_time**(**self**)
-Returns the current countdown of the state of a traffic light.
- - **Return:** _float_
+_
+- **get_elapsed_time**(**self**)
+Returns the current countdown of the state of a traffic light.
+ - **Return:** _float_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **freeze**(**self**, **freeze**)
-Stops the traffic light at its current state.
+_
+- **freeze**(**self**, **freeze**)
+Stops the traffic light at its current state.
- **Parameters:**
- - `freeze` (_bool_)
-- **is_frozen**(**self**)
-Returns `True` if a traffic light is frozen.
- - **Return:** _bool_
+ - `freeze` (_bool_)
+- **is_frozen**(**self**)
+Returns `True` if a traffic light is frozen.
+ - **Return:** _bool_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **get_pole_index**(**self**)
-Returns the index of the pole in the traffic light group.
- - **Return:** _int_
-- **get_group_traffic_lights**(**self**)
-Returns all traffic lights in the group this one belongs to.
- - **Return:** _list([carla.TrafficLight](#carla.TrafficLight))_
+_
+- **get_pole_index**(**self**)
+Returns the index of the pole in the traffic light group.
+ - **Return:** _int_
+- **get_group_traffic_lights**(**self**)
+Returns all traffic lights in the group this one belongs to.
+ - **Return:** _list([carla.TrafficLight](#carla.TrafficLight))_
- **Note:** _This function calls the simulator.
+<<<<<<< HEAD
_
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+_
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.TrafficLightState
<<<<<<< HEAD
+<<<<<<< HEAD
All possible states for traffic lights. These can either change at a specific time step or be changed manually. Take a look at this [recipe](../python_cookbook/#traffic-lights-recipe) to see an example.
Instance Variables
@@ -2538,11 +3113,22 @@ All possible states for traffic lights. Check out this [`recipe`](../python_cook
- **Off**
- **Unknown**
>>>>>>> Python documentation.
+=======
+All possible states for traffic lights. Check out this [`recipe`](../python_cookbook/#traffic-lights-recipe)!
+
+Instance Variables
+- **Red**
+- **Yellow**
+- **Green**
+- **Off**
+- **Unknown**
+>>>>>>> Fixed docs.
---
## carla.TrafficSign
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.Actor](#carla.Actor)_
Traffic signs appearing in the simulation except for traffic lights. These have their own class inherited from this in [carla.TrafficLight](#carla.TrafficLight). Right now, speed signs, stops and yields are mainly the ones implemented, but many others are borne in mind.
Instance Variables
@@ -2555,11 +3141,19 @@ A [carla.BoundingBox](#carla.BoundingBox) situated near a traffic sign where the
- **trigger_volume**
A [carla.BoundingBox](#carla.BoundingBox) situated near a traffic sign where the [carla.Actor](#carla.Actor) who is inside can know about its state.
>>>>>>> Python documentation.
+=======
+Inherited from _[carla.Actor](#carla.Actor)_
A traffic sign actor.
+
+
Instance Variables
+- **trigger_volume**
+A [carla.BoundingBox](#carla.BoundingBox) situated near a traffic sign where the [carla.Actor](#carla.Actor) who is inside can know about its state.
+>>>>>>> Fixed docs.
---
## carla.Transform
<<<<<<< HEAD
+<<<<<<< HEAD
Class that defines a transformation, a combination of location and rotation, without scaling.
Instance Variables
@@ -2612,32 +3206,48 @@ Translates a 3D point from global to local coordinates using the current transfo
Computes a forward vector using the rotation of the current transformation.
- **Return:** _[carla.Vector3D](#carla.Vector3D)_
- **\__eq__**(**self**, **other**)
+=======
+Class that defines a transformation without scaling.
+
+Instance Variables
+- **location** (_[carla.Location](#carla.Location)_)
+- **rotation** (_[carla.Rotation](#carla.Rotation)_)
+
+Methods
+- **\__init__**(**self**, **location**, **rotation**)
+>>>>>>> Fixed docs.
- **Parameters:**
- - `other` (_[carla.Transform](#carla.Transform)_)
-- **\__ne__**(**self**, **other**)
+ - `location` (_[carla.Location](#carla.Location)_)
+ - `rotation` (_[carla.Rotation](#carla.Rotation)_)
+- **transform**(**self**, **in_point**)
+Transform a 3D point using the current transformation.
- **Parameters:**
- - `distance` (_float_) – The approximate distance between waypoints.
- - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
-- **get_landmarks**(**self**, **distance**, **stop_at_junction**=False)
-Returns a list of landmarks in the road from the current waypoint until the specified distance.
+ - `in_point` (_[carla.Location](#carla.Location)_) – Location in the space to which the transformation will be applied.
+- **get_forward_vector**(**self**)
+Computes a forward vector using the rotation of the current transformation.
+ - **Return:** _[carla.Vector3D](#carla.Vector3D)_
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `distance` (_float_) – The maximum distance to search for landmarks from the current waypoint.
- - `stop_at_junction` (_bool_) – Enables or disables the landmark search through junctions.
- - **Return:** _list([carla.Landmark](#carla.Landmark))_
-- **get_landmarks_of_type**(**self**, **distance**, **type**, **stop_at_junction**=False)
-Returns a list of landmarks in the road of a specified type from the current waypoint until the specified distance.
+ - `other` (_[carla.Transform](#carla.Transform)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
+<<<<<<< HEAD
- `distance` (_float_) – The maximum distance to search for landmarks from the current waypoint.
- `type` (_str_) – The type of landmarks to search.
- `stop_at_junction` (_bool_) – Enables or disables the landmark search through junctions.
- **Return:** _list([carla.Landmark](#carla.Landmark))_
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `other` (_[carla.Transform](#carla.Transform)_)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.Vector2D
<<<<<<< HEAD
+<<<<<<< HEAD
Helper class to perform 2D operations.
Instance Variables
@@ -2652,10 +3262,18 @@ Vector 2D helper class.
- **x** (_float_)
- **y** (_float_)
>>>>>>> Python documentation.
+=======
+Vector 2D helper class.
+
+Instance Variables
+- **x** (_float_)
+- **y** (_float_)
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **x**=0.0, **y**=0.0)
+- **\__init__**(**self**, **x**=0.0, **y**=0.0)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `x` (_float_)
- `y` (_float_)
@@ -2692,30 +3310,41 @@ Returns the axis values for the vector parsed as string.
- `x` (_float_)
- `y` (_float_)
- **\__add__**(**self**, **other**)
+=======
+ - `x` (_float_)
+ - `y` (_float_)
+- **\__add__**(**self**, **other**)
+>>>>>>> Fixed docs.
- **Parameters:**
- - `other` (_[carla.Vector2D](#carla.Vector2D)_)
-- **\__mul__**(**self**, **other**)
+ - `other` (_[carla.Vector2D](#carla.Vector2D)_)
+- **\__mul__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Vector2D](#carla.Vector2D)_)
-- **\__sub__**(**self**, **other**)
+ - `other` (_[carla.Vector2D](#carla.Vector2D)_)
+- **\__sub__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Vector2D](#carla.Vector2D)_)
-- **\__truediv__**(**self**, **other**)
+ - `other` (_[carla.Vector2D](#carla.Vector2D)_)
+- **\__truediv__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Vector2D](#carla.Vector2D)_)
-- **\__eq__**(**self**, **other**)
+ - `other` (_[carla.Vector2D](#carla.Vector2D)_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Vector2D](#carla.Vector2D)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.Vector2D](#carla.Vector2D)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
+<<<<<<< HEAD
- `other` (_[carla.Vector2D](#carla.Vector2D)_)
- **\__self__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `other` (_[carla.Vector2D](#carla.Vector2D)_)
+- **\__self__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.Vector3D
<<<<<<< HEAD
+<<<<<<< HEAD
Helper class to perform 3D operations.
Instance Variables
@@ -2733,15 +3362,27 @@ Vector 3D helper class.
- **y** (_float_)
- **z** (_float_)
>>>>>>> Python documentation.
+=======
+Vector 3D helper class.
+
+Instance Variables
+- **x** (_float_)
+- **y** (_float_)
+- **z** (_float_)
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **x**=0.0, **y**=0.0, **z**=0.0)
+- **\__init__**(**self**, **x**=0.0, **y**=0.0, **z**=0.0)
- **Parameters:**
<<<<<<< HEAD
+<<<<<<< HEAD
+=======
+>>>>>>> Fixed docs.
- `x` (_float_)
- `y` (_float_)
- `z` (_float_)
- **\__add__**(**self**, **other**)
+<<<<<<< HEAD
Defines addition between 3D vectors and applies it to this.
- **Parameters:**
- `other` (_[carla.Vector3D](#carla.Vector3D)_)
@@ -2775,30 +3416,38 @@ Returns the axis values for the vector parsed as string.
- `y` (_float_)
- `z` (_float_)
- **\__add__**(**self**, **other**)
+=======
+>>>>>>> Fixed docs.
- **Parameters:**
- - `other` (_[carla.Vector3D](#carla.Vector3D)_)
-- **\__mul__**(**self**, **other**)
+ - `other` (_[carla.Vector3D](#carla.Vector3D)_)
+- **\__mul__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Vector3D](#carla.Vector3D)_)
-- **\__sub__**(**self**, **other**)
+ - `other` (_[carla.Vector3D](#carla.Vector3D)_)
+- **\__sub__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Vector3D](#carla.Vector3D)_)
-- **\__truediv__**(**self**, **other**)
+ - `other` (_[carla.Vector3D](#carla.Vector3D)_)
+- **\__truediv__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Vector3D](#carla.Vector3D)_)
-- **\__eq__**(**self**, **other**)
+ - `other` (_[carla.Vector3D](#carla.Vector3D)_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Vector3D](#carla.Vector3D)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.Vector3D](#carla.Vector3D)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
+<<<<<<< HEAD
- `other` (_[carla.Vector3D](#carla.Vector3D)_)
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `other` (_[carla.Vector3D](#carla.Vector3D)_)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.Vehicle
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.Actor](#carla.Actor)_
One of the most important group of actors in CARLA. These include any type of vehicle from cars to trucks, motorbikes, vans, bycicles and also official vehicles such as police cars. A wide set of these actors is provided in [carla.BlueprintLibrary](#carla.BlueprintLibrary) to facilitate differente requirements. Vehicles can be either manually controlled or set to an autopilot mode that will be conducted client-side by the traffic manager.
Instance Variables
@@ -2841,47 +3490,51 @@ Turns on/off this vehicle's server-side autopilot. When autopilot mode is on, th
- **Return:** _str_
=======
Inherited from _[carla.Actor](#carla.Actor)_
A vehicle actor.
+=======
+
Inherited from _[carla.Actor](#carla.Actor)_
A vehicle actor.
+>>>>>>> Fixed docs.
Instance Variables
-- **bounding_box** (_[carla.BoundingBox](#carla.BoundingBox)_)
-The vehicle's bounding box.
+- **bounding_box** (_[carla.BoundingBox](#carla.BoundingBox)_)
+The vehicle's bounding box.
Methods
-- **apply_control**(**self**, **control**)
-Apply control to this vehicle. The control will take effect on next tick.
+- **apply_control**(**self**, **control**)
+Apply control to this vehicle. The control will take effect on next tick.
- **Parameters:**
- - `control` (_[carla.VehicleControl](#carla.VehicleControl)_)
-- **get_control**(**self**)
-Returns the control last applied to this vehicle.
- - **Return:** _[carla.VehicleControl](#carla.VehicleControl)_
+ - `control` (_[carla.VehicleControl](#carla.VehicleControl)_)
+- **get_control**(**self**)
+Returns the control last applied to this vehicle.
+ - **Return:** _[carla.VehicleControl](#carla.VehicleControl)_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **apply_physics_control**(**self**, **physics_control**)
-Apply physics control to this vehicle. The control will take effect on the next tick.
+_
+- **apply_physics_control**(**self**, **physics_control**)
+Apply physics control to this vehicle. The control will take effect on the next tick.
- **Parameters:**
- - `physics_control` (_[carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl)_)
-- **get_physics_control**(**self**)
-Returns the physics control last applied to this vehicle.
- - **Return:** _[carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl)_
- - **Warning:** _This function does call the simulator to retrieve the value._
-- **set_autopilot**(**self**, **enabled**=True)
-Switch on/off this vehicle's server-side autopilot.
+ - `physics_control` (_[carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl)_)
+- **get_physics_control**(**self**)
+Returns the physics control last applied to this vehicle.
+ - **Return:** _[carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl)_
+ - **Warning:** _This function does call the simulator to retrieve the value._
+- **set_autopilot**(**self**, **enabled**=True)
+Switch on/off this vehicle's server-side autopilot.
- **Parameters:**
- - `enabled` (_bool_)
-- **get_speed_limit**(**self**)
-Returns the speed limit currently affecting this vehicle. Note that the speed limit is only updated when passing by a speed limit signal, right after spawning a vehicle it might not reflect the actual speed limit of the current road.
- - **Return:** _float_
+ - `enabled` (_bool_)
+- **get_speed_limit**(**self**)
+Returns the speed limit currently affecting this vehicle. Note that the speed limit is only updated when passing by a speed limit signal, right after spawning a vehicle it might not reflect the actual speed limit of the current road.
+ - **Return:** _float_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **get_traffic_light_state**(**self**)
-Returns the state of the traffic light currently affecting this vehicle. If no traffic light is currently affecting the vehicle, return Green.
- - **Return:** _[carla.TrafficLightState](#carla.TrafficLightState)_
+_
+- **get_traffic_light_state**(**self**)
+Returns the state of the traffic light currently affecting this vehicle. If no traffic light is currently affecting the vehicle, return Green.
+ - **Return:** _[carla.TrafficLightState](#carla.TrafficLightState)_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
-_
-- **is_at_traffic_light**(**self**)
-Returns whether a traffic light is affecting this vehicle.
- - **Return:** _bool_
+_
+- **is_at_traffic_light**(**self**)
+Returns whether a traffic light is affecting this vehicle.
+ - **Return:** _bool_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
+<<<<<<< HEAD
_
- **get_traffic_light**(**self**)
Retrieve the traffic light actor currently affecting this vehicle.
@@ -2889,11 +3542,20 @@ Retrieve the traffic light actor currently affecting this vehicle.
- **\__str__**(**self**)
- **Return:** _str_
>>>>>>> Python documentation.
+=======
+_
+- **get_traffic_light**(**self**)
+Retrieve the traffic light actor currently affecting this vehicle.
+ - **Return:** _[carla.TrafficLight](#carla.TrafficLight)_
+- **\__str__**(**self**)
+ - **Return:** _str_
+>>>>>>> Fixed docs.
---
## carla.VehicleControl
<<<<<<< HEAD
+<<<<<<< HEAD
Manages the basic movement of a vehicle using typical driving controls.
Instance Variables
@@ -2937,51 +3599,78 @@ Controls the gear value of the vehicle.
- **\__init__**(**self**, **throttle**=0.0, **steer**=0.0, **brake**=0.0, **hand_brake**=True, **reverse**=True, **manual_gear_shift**=True, **gear**=0)
VehicleControl constructor.
>>>>>>> Python documentation.
+=======
+VehicleControl is used for controlling the basic movement of a vehicle.
+
+Instance Variables
+- **throttle** (_float_)
+A scalar value to control the vehicle throttle [0.0, 1.0].
+- **steer** (_float_)
+A scalar value to control the vehicle steering [-1.0, 1.0].
+- **brake** (_float_)
+A scalar value to control the vehicle brake [0.0, 1.0].
+- **hand_brake** (_bool_)
+If true, hand brake will be used.
+- **reverse** (_bool_)
+If true, the vehicle will move reverse.
+- **manual_gear_shift** (_bool_)
+If true, the vehicle will be controlled by changing gears manually.
+- **gear** (_int_)
+Controls the gear value of the vehicle.
+
+Methods
+- **\__init__**(**self**, **throttle**=0.0, **steer**=0.0, **brake**=0.0, **hand_brake**=True, **reverse**=True, **manual_gear_shift**=True, **gear**=0)
+VehicleControl constructor.
+>>>>>>> Fixed docs.
- **Parameters:**
- - `throttle` (_float_)
- - `steer` (_float_)
- - `brake` (_float_)
- - `hand_brake` (_bool_)
- - `reverse` (_bool_)
- - `manual_gear_shift` (_bool_)
- - `gear` (_int_)
-- **\__eq__**(**self**, **other**)
+ - `throttle` (_float_)
+ - `steer` (_float_)
+ - `brake` (_float_)
+ - `hand_brake` (_bool_)
+ - `reverse` (_bool_)
+ - `manual_gear_shift` (_bool_)
+ - `gear` (_int_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.VehicleControl](#carla.VehicleControl)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.VehicleControl](#carla.VehicleControl)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.VehicleControl](#carla.VehicleControl)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.VehicleControl](#carla.VehicleControl)_)
+- **\__str__**(**self**)
---
## carla.VehicleLightState
-Class that recaps the state of the lights of a vehicle, these can be used as a flags. E.g: `VehicleLightState.HighBeam & VehicleLightState.Brake` will return `True` when both are active. Lights are off by default in any situation and should be managed by the user via script. The blinkers blink automatically. _Warning: Right now, not all vehicles have been prepared to work with this functionality, this will be added to all of them in later updates_.
+Class that recaps the state of the lights of a vehicle, these can be used as a flags. E.g: `VehicleLightState.HighBeam & VehicleLightState.Brake` will return `True` when both are active. Lights are off by default in any situation and should be managed by the user via script. The blinkers blink automatically. _Warning: Right now, not all vehicles have been prepared to work with this functionality, this will be added to all of them in later updates_.
Instance Variables
-- **NONE**
-All lights off.
-- **Position**
-- **LowBeam**
-- **HighBeam**
-- **Brake**
-- **RightBlinker**
-- **LeftBlinker**
-- **Reverse**
-- **Fog**
-- **Interior**
-- **Special1**
-This is reserved for certain vehicles that can have special lights, like a siren.
-- **Special2**
-This is reserved for certain vehicles that can have special lights, like a siren.
-- **Any**
-All lights on.
+- **NONE**
+All lights off.
+- **Position**
+- **LowBeam**
+- **HighBeam**
+- **Brake**
+- **RightBlinker**
+- **LeftBlinker**
+- **Reverse**
+- **Fog**
+- **Interior**
+- **Special1**
+This is reserved for certain vehicles that can have special lights, like a siren.
+- **Special2**
+This is reserved for certain vehicles that can have special lights, like a siren.
+- **Any**
+All lights on.
---
## carla.VehiclePhysicsControl
<<<<<<< HEAD
+<<<<<<< HEAD
Summarizes the parameters that will be used to simulate a [carla.Vehicle](#carla.Vehicle) as a physical object. The specific settings for the wheels though are stipulated using [carla.WheelPhysicsControl](#carla.WheelPhysicsControl).
+=======
+VehiclePhysicsControl is used for controlling the physics parameters of a vehicle.
+>>>>>>> Fixed docs.
Instance Variables
- **torque_curve** (_list([carla.Vector2D](#carla.Vector2D))_)
@@ -2991,6 +3680,7 @@ The maximum RPM of the vehicle's engine.
- **moi** (_float_)
The moment of inertia of the vehicle's engine.
- **damping_rate_full_throttle** (_float_)
+<<<<<<< HEAD
Damping ratio when the throttle is maximum.
- **damping_rate_zero_throttle_clutch_engaged** (_float_)
Damping ratio when the throttle is zero with clutch engaged.
@@ -3008,6 +3698,25 @@ The fixed ratio from transmission to wheels.
List of objects defining the vehicle's gears.
- **mass** (_float_)
The mass of the vehicle in Kg.
+=======
+Damping rate when the throttle is maximum.
+- **damping_rate_zero_throttle_clutch_engaged** (_float_)
+Damping rate when the throttle is zero with clutch engaged.
+- **damping_rate_zero_throttle_clutch_disengaged** (_float_)
+Damping rate when the throttle is zero with clutch disengaged.
+- **use_gear_autobox** (_bool_)
+If true, the vehicle will have an automatic transmission.
+- **gear_switch_time** (_float_)
+Switching time between gears.
+- **clutch_strength** (_float_)
+The clutch strength of the vehicle. Measured in Kgm^2/s.
+- **final_ratio** (_float_)
+The fixed ratio from transmission to wheels.
+- **forward_gears** (_list([carla.GearPhysicsControl](#carla.GearPhysicsControl))_)
+List of GearPhysicsControl objects.
+- **mass** (_float_)
+The mass of the vehicle measured in Kg.
+>>>>>>> Fixed docs.
- **drag_coefficient** (_float_)
Drag coefficient of the vehicle's chassis.
- **center_of_mass** (_[carla.Vector3D](#carla.Vector3D)_)
@@ -3015,6 +3724,7 @@ The center of mass of the vehicle.
- **steering_curve** (_list([carla.Vector2D](#carla.Vector2D))_)
Curve that indicates the maximum steering for a specific forward speed.
- **wheels** (_list([carla.WheelPhysicsControl](#carla.WheelPhysicsControl))_)
+<<<<<<< HEAD
List of wheel physics objects. This list should have 4 elements, where index 0 corresponds to the front left wheel, index 1 corresponds to the front right wheel, index 2 corresponds to the back left wheel and index 3 corresponds to the back right wheel. For 2 wheeled vehicles, set the same values for both front and back wheels.
=======
VehiclePhysicsControl is used for controlling the physics parameters of a vehicle.
@@ -3053,38 +3763,42 @@ Curve that indicates the maximum steering for a specific forward speed.
- **wheels** (_list([carla.WheelPhysicsControl](#carla.WheelPhysicsControl))_)
List of [carla.WheelPhysicsControl](#carla.WheelPhysicsControl) objects. This list should have 4 elements, where index 0 corresponds to the front left wheel, index 1 corresponds to the front right wheel, index 2 corresponds to the back left wheel and index 3 corresponds to the back right wheel. For 2 wheeled vehicles, set the same values for both front and back wheels.
>>>>>>> Python documentation.
+=======
+List of [carla.WheelPhysicsControl](#carla.WheelPhysicsControl) objects. This list should have 4 elements, where index 0 corresponds to the front left wheel, index 1 corresponds to the front right wheel, index 2 corresponds to the back left wheel and index 3 corresponds to the back right wheel. For 2 wheeled vehicles, set the same values for both front and back wheels.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **torque_curve**=[[0.0, 500.0], [5000.0, 500.0]], **max_rpm**=5000.0, **moi**=1.0, **damping_rate_full_throttle**=0.15, **damping_rate_zero_throttle_clutch_engaged**=2.0, **damping_rate_zero_throttle_clutch_disengaged**=0.35, **use_gear_autobox**=True, **gear_switch_time**=0.5, **clutch_strength**=10.0, **final_ratio**=4.0, **forward_gears**=list(), **mass**=1000.0, **drag_coefficient**=0.3, **center_of_mass**=[0.0, 0.0, 0.0], **steering_curve**=[[0.0, 1.0], [10.0, 0.5]], **wheels**=list())
-VehiclePhysicsControl constructor.
+- **\__init__**(**self**, **torque_curve**=[[0.0, 500.0], [5000.0, 500.0]], **max_rpm**=5000.0, **moi**=1.0, **damping_rate_full_throttle**=0.15, **damping_rate_zero_throttle_clutch_engaged**=2.0, **damping_rate_zero_throttle_clutch_disengaged**=0.35, **use_gear_autobox**=True, **gear_switch_time**=0.5, **clutch_strength**=10.0, **final_ratio**=4.0, **forward_gears**=list(), **mass**=1000.0, **drag_coefficient**=0.3, **center_of_mass**=[0.0, 0.0, 0.0], **steering_curve**=[[0.0, 1.0], [10.0, 0.5]], **wheels**=list())
+VehiclePhysicsControl constructor.
- **Parameters:**
- - `torque_curve` (_list([carla.Vector2D](#carla.Vector2D))_)
- - `max_rpm` (_float_)
- - `moi` (_float_)
- - `damping_rate_full_throttle` (_float_)
- - `damping_rate_zero_throttle_clutch_engaged` (_float_)
- - `damping_rate_zero_throttle_clutch_disengaged` (_float_)
- - `use_gear_autobox` (_bool_)
- - `gear_switch_time` (_float_)
- - `clutch_strength` (_float_)
- - `final_ratio` (_float_)
- - `forward_gears` (_list([carla.GearPhysicsControl](#carla.GearPhysicsControl))_)
- - `drag_coefficient` (_float_)
- - `center_of_mass` (_[carla.Vector3D](#carla.Vector3D)_)
- - `steering_curve` (_[carla.Vector2D](#carla.Vector2D)_)
- - `wheels` (_list([carla.WheelPhysicsControl](#carla.WheelPhysicsControl))_)
-- **\__eq__**(**self**, **other**)
+ - `torque_curve` (_list([carla.Vector2D](#carla.Vector2D))_)
+ - `max_rpm` (_float_)
+ - `moi` (_float_)
+ - `damping_rate_full_throttle` (_float_)
+ - `damping_rate_zero_throttle_clutch_engaged` (_float_)
+ - `damping_rate_zero_throttle_clutch_disengaged` (_float_)
+ - `use_gear_autobox` (_bool_)
+ - `gear_switch_time` (_float_)
+ - `clutch_strength` (_float_)
+ - `final_ratio` (_float_)
+ - `forward_gears` (_list([carla.GearPhysicsControl](#carla.GearPhysicsControl))_)
+ - `drag_coefficient` (_float_)
+ - `center_of_mass` (_[carla.Vector3D](#carla.Vector3D)_)
+ - `steering_curve` (_[carla.Vector2D](#carla.Vector2D)_)
+ - `wheels` (_list([carla.WheelPhysicsControl](#carla.WheelPhysicsControl))_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl)_)
+- **\__str__**(**self**)
---
## carla.Walker
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.Actor](#carla.Actor)_
This class inherits from the [carla.Actor](#carla.Actor) and defines pedestrians in the simulation. Walkers are a special type of actor that can be controlled either by an AI ([carla.WalkerAIController](#carla.WalkerAIController)) or manually via script, using a series of [carla.WalkerControl](#carla.WalkerControl) to move these and their skeletons.
Instance Variables
@@ -3107,37 +3821,47 @@ The client returns the control applied to this walker during last tick. The meth
- **Return:** _str_
=======
Inherited from _[carla.Actor](#carla.Actor)_
A walking actor, pedestrian.
+=======
+
Inherited from _[carla.Actor](#carla.Actor)_
A walking actor, pedestrian.
+>>>>>>> Fixed docs.
Instance Variables
-- **bounding_box** (_[carla.BoundingBox](#carla.BoundingBox)_)
-The walker's bounding box.
+- **bounding_box** (_[carla.BoundingBox](#carla.BoundingBox)_)
+The walker's bounding box.
Methods
-- **apply_control**(**self**, **control**)
-Apply control to this walker.
+- **apply_control**(**self**, **control**)
+Apply control to this walker.
- **Parameters:**
- - `control` (_[carla.WalkerControl](#carla.WalkerControl)_)
+ - `control` (_[carla.WalkerControl](#carla.WalkerControl)_)
- **Note:** _The control will take effect on the next tick.
-_
-- **apply_control**(**self**, **control**)
-Apply bone control to this walker.
+_
+- **apply_control**(**self**, **control**)
+Apply bone control to this walker.
- **Parameters:**
- - `control` (_[carla.WalkerBoneControl](#carla.WalkerBoneControl)_)
+ - `control` (_[carla.WalkerBoneControl](#carla.WalkerBoneControl)_)
- **Note:** _The control will take effect on the next tick.
-_
-- **get_control**(**self**)
-Returns the control last applied to this walker.
- - **Return:** _[carla.WalkerControl](#carla.WalkerControl)_
+_
+- **get_control**(**self**)
+Returns the control last applied to this walker.
+ - **Return:** _[carla.WalkerControl](#carla.WalkerControl)_
- **Note:** _This function does not call the simulator, it returns the data received in the last tick.
+<<<<<<< HEAD
_
- **\__str__**(**self**)
- **Return:** _str_
>>>>>>> Python documentation.
+=======
+_
+- **\__str__**(**self**)
+ - **Return:** _str_
+>>>>>>> Fixed docs.
---
## carla.WalkerAIController
<<<<<<< HEAD
+<<<<<<< HEAD
Inherited from _[carla.Actor](#carla.Actor)_
Class that conducts AI control for a walker. The controllers are defined as actors, but they are quite different from the rest. They need to be attached to a parent actor during their creation, which is the walker they will be controlling (take a look at [carla.World](#carla.World) if you are yet to learn on how to spawn actors). They also need for a special blueprint (already defined in [carla.BlueprintLibrary](#carla.BlueprintLibrary) as "controller.ai.walker"). This is an empty blueprint, as the AI controller will be invisible in the simulation but will follow its parent around to dictate every step of the way.
Methods
@@ -3156,27 +3880,36 @@ Sets a speed for the walker in meters per second.
- **\__str__**(**self**)
=======
Inherited from _[carla.Actor](#carla.Actor)_
Class used for controlling the automation of a pedestrian.
+=======
+
Inherited from _[carla.Actor](#carla.Actor)_
Class used for controlling the automation of a pedestrian.
+>>>>>>> Fixed docs.
Methods
-- **start**(**self**)
-Initializes walker controller.
-- **stop**(**self**)
-Stops walker controller.
-- **go_to_location**(**self**, **destination**)
-Sets the destination that the pedestrian will reach.
+- **start**(**self**)
+Initializes walker controller.
+- **stop**(**self**)
+Stops walker controller.
+- **go_to_location**(**self**, **destination**)
+Sets the destination that the pedestrian will reach.
- **Parameters:**
- - `destination` (_[carla.Location](#carla.Location)_)
-- **set_max_speed**(**self**, **speed**=1.4)
-Sets the speed of the pedestrian.
+ - `destination` (_[carla.Location](#carla.Location)_)
+- **set_max_speed**(**self**, **speed**=1.4)
+Sets the speed of the pedestrian.
- **Parameters:**
+<<<<<<< HEAD
- `speed` (_float_) – Speed is in m/s.
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `speed` (_float_) – Speed is in m/s.
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.WalkerBoneControl
<<<<<<< HEAD
+<<<<<<< HEAD
This class grants bone specific manipulation for walker. The skeletons of walkers have been unified for clarity and the transform applied to each bone are always relative to its parent. Take a look [here](walker_bone_control.md) to learn more on how to create a walker and define its movement.
Instance Variables
@@ -3188,22 +3921,30 @@ List of tuples where the first value is the bone's name and the second value sto
Intializes an object containing moves to be applied on tick. These are listed with the name of the bone and the transform that will be applied to it.
=======
Class used for controlling the skeleton of a walker. See [walker bone control](walker_bone_control.md).
+=======
+Class used for controlling the skeleton of a walker. See [walker bone control](walker_bone_control.md).
+>>>>>>> Fixed docs.
Instance Variables
-- **bone_transforms** (_list([name,transform])_)
-List of pairs where the first value is the bone name and the second value is the bone transform.
+- **bone_transforms** (_list([name,transform])_)
+List of pairs where the first value is the bone name and the second value is the bone transform.
Methods
+<<<<<<< HEAD
- **\__init__**(**self**, **list(name,transform)**)
>>>>>>> Python documentation.
+=======
+- **\__init__**(**self**, **list(name,transform)**)
+>>>>>>> Fixed docs.
- **Parameters:**
- - `list(name,transform)` (_tuple_)
-- **\__str__**(**self**)
+ - `list(name,transform)` (_tuple_)
+- **\__str__**(**self**)
---
## carla.WalkerControl
<<<<<<< HEAD
+<<<<<<< HEAD
This class defines specific directions that can be commanded to a [carla.Walker](#carla.Walker) to control it via script. The walker's animations will blend automatically with the parameters defined in this class when applied, though specific skeleton moves can be obtained through class.WalkerBoneControl.
AI control can be settled for walkers, but the control used to do so is [carla.WalkerAIController](#carla.WalkerAIController).
@@ -3230,64 +3971,73 @@ Compares every variable with `other` and returns True if these are all th
Compares every variable with `other` and returns True if any of these differ.
=======
WalkerControl is used for controlling the basic movement of a walker.
+=======
+WalkerControl is used for controlling the basic movement of a walker.
+>>>>>>> Fixed docs.
Instance Variables
-- **direction** (_[carla.Vector3D](#carla.Vector3D)_)
-Vector that controls the direction of the walker.
-- **speed** (_float_)
-A scalar value to control the walker speed.
-- **jump** (_bool_)
-If true, the walker will perform a jump.
+- **direction** (_[carla.Vector3D](#carla.Vector3D)_)
+Vector that controls the direction of the walker.
+- **speed** (_float_)
+A scalar value to control the walker speed.
+- **jump** (_bool_)
+If true, the walker will perform a jump.
Methods
-- **\__init__**(**self**, **direction**=[1.0, 0.0, 0.0], **speed**=0.0, **jump**=False)
-WalkerControl constructor.
+- **\__init__**(**self**, **direction**=[1.0, 0.0, 0.0], **speed**=0.0, **jump**=False)
+WalkerControl constructor.
- **Parameters:**
- - `direction` (_[carla.Vector3D](#carla.Vector3D)_)
- - `speed` (_float_)
- - `jump` (_bool_)
-- **\__eq__**(**self**, **other**)
+ - `direction` (_[carla.Vector3D](#carla.Vector3D)_)
+ - `speed` (_float_)
+ - `jump` (_bool_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
+<<<<<<< HEAD
- `other` (_[carla.WalkerControl](#carla.WalkerControl)_)
- **\__ne__**(**self**, **other**)
>>>>>>> Python documentation.
+=======
+ - `other` (_[carla.WalkerControl](#carla.WalkerControl)_)
+- **\__ne__**(**self**, **other**)
+>>>>>>> Fixed docs.
- **Parameters:**
- - `other` (_[carla.WalkerControl](#carla.WalkerControl)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.WalkerControl](#carla.WalkerControl)_)
+- **\__str__**(**self**)
---
## carla.Waypoint
-Waypoints in CARLA are described as 3D directed points. They store a certain [carla.Transform](#carla.Transform) which locates the waypoint in a road and orientates it according to the lane. They also store the road information belonging to said point regarding its lane and lane markings. All of this information is retrieved as provided by the OpenDRIVE file.
+Waypoints in CARLA are described as 3D directed points. They store a certain [carla.Transform](#carla.Transform) which locates the waypoint in a road and orientates it according to the lane. They also store the road information belonging to said point regarding its lane and lane markings. All of this information is retrieved as provided by the OpenDRIVE file.
Instance Variables
-- **id** (_int_)
-The identificator is generated using a hash combination of the road, section, lane and s values that correspond to said point in the OpenDRIVE geometry. The s precision is set to 2 centimeters, so 2 waypoints closer than 2 centimeters in the same road, section and lane, will have the same identificator.
-- **transform** (_[carla.Transform](#carla.Transform)_)
-Position and orientation of the waypoint according to the current lane information. This data is computed the first time it is accessed. It is not created right away in order to ease computing costs when lots of waypoints are created but their specific transform is not needed.
-- **road_id** (_int_)
-OpenDRIVE road's id.
-- **section_id** (_int_)
-OpenDRIVE section's id, based on the order that they are originally defined.
-- **lane_id** (_int_)
-OpenDRIVE lane's id, this value can be positive or negative which represents the direction of the current lane with respect to the road. For more information refer to OpenDRIVE [documentation](http://www.opendrive.org/docs/OpenDRIVEFormatSpecRev1.4H.pdf#page=20).
-- **s** (_float_)
-OpenDRIVE s value of the current position.
-- **is_junction** (_bool_)
-True if the current Waypoint is on a junction as defined by OpenDRIVE.
-- **lane_width** (_float_)
-Horizontal size of the road at current s.
-- **lane_change** (_[carla.LaneChange](#carla.LaneChange)_)
-Lane change definition of the current Waypoint's location, based on the traffic rules defined in the OpenDRIVE file. It states if a lane change can be done and in which direction.
-- **lane_type** (_[carla.LaneType](#carla.LaneType)_)
-The lane type of the current Waypoint, based on OpenDRIVE 1.4 standard.
-- **right_lane_marking** (_[carla.LaneMarking](#carla.LaneMarking)_)
-The right lane marking information based on the direction of the Waypoint.
-- **left_lane_marking** (_[carla.LaneMarking](#carla.LaneMarking)_)
-The left lane marking information based on the direction of the Waypoint.
+- **id** (_int_)
+The identificator is generated using a hash combination of the road, section, lane and s values that correspond to said point in the OpenDRIVE geometry. The s precision is set to 2 centimeters, so 2 waypoints closer than 2 centimeters in the same road, section and lane, will have the same identificator.
+- **transform** (_[carla.Transform](#carla.Transform)_)
+Position and orientation of the waypoint according to the current lane information. This data is computed the first time it is accessed. It is not created right away in order to ease computing costs when lots of waypoints are created but their specific transform is not needed.
+- **road_id** (_int_)
+OpenDRIVE road's id.
+- **section_id** (_int_)
+OpenDRIVE section's id, based on the order that they are originally defined.
+- **lane_id** (_int_)
+OpenDRIVE lane's id, this value can be positive or negative which represents the direction of the current lane with respect to the road. For more information refer to OpenDRIVE [documentation](http://www.opendrive.org/docs/OpenDRIVEFormatSpecRev1.4H.pdf#page=20).
+- **s** (_float_)
+OpenDRIVE s value of the current position.
+- **is_junction** (_bool_)
+True if the current Waypoint is on a junction as defined by OpenDRIVE.
+- **lane_width** (_float_)
+Horizontal size of the road at current s.
+- **lane_change** (_[carla.LaneChange](#carla.LaneChange)_)
+Lane change definition of the current Waypoint's location, based on the traffic rules defined in the OpenDRIVE file. It states if a lane change can be done and in which direction.
+- **lane_type** (_[carla.LaneType](#carla.LaneType)_)
+The lane type of the current Waypoint, based on OpenDRIVE 1.4 standard.
+- **right_lane_marking** (_[carla.LaneMarking](#carla.LaneMarking)_)
+The right lane marking information based on the direction of the Waypoint.
+- **left_lane_marking** (_[carla.LaneMarking](#carla.LaneMarking)_)
+The left lane marking information based on the direction of the Waypoint.
Methods
<<<<<<< HEAD
+<<<<<<< HEAD
- **get_left_lane**(**self**)
Generates a Waypoint at the center of the left lane based on the direction of the current Waypoint, taking into account if the lane change is allowed in this location.
Will return None if the lane does not exist.
@@ -3301,23 +4051,31 @@ Returns a list of waypoints at a certain approximate `distance` from the current
The list may be empty if the lane is not connected to any other at the specified distance.
=======
- **get_left_lane**(**self**)
+=======
+- **get_left_lane**(**self**)
+>>>>>>> Fixed docs.
Generates a Waypoint at the center of the left lane based on the direction of the current Waypoint, regardless if the lane change is allowed in this location.
-Can return None if the lane does not exist.
- - **Return:** _[carla.Waypoint](#carla.Waypoint)_
-- **get_right_lane**(**self**)
+Can return None if the lane does not exist.
+ - **Return:** _[carla.Waypoint](#carla.Waypoint)_
+- **get_right_lane**(**self**)
Generates a waypoint at the center of the right lane based on the direction of the current waypoint, regardless if the lane change is allowed in this location.
-Can return None if the lane does not exist.
- - **Return:** _[carla.Waypoint](#carla.Waypoint)_
-- **next**(**self**, **distance**)
+Can return None if the lane does not exist.
+ - **Return:** _[carla.Waypoint](#carla.Waypoint)_
+- **next**(**self**, **distance**)
Returns a list of waypoints at a certain approximate `distance` from the current one. It takes into account the road and its possible deviations without performing any lane change and returns one waypoint per option.
+<<<<<<< HEAD
The list may be empty if the road ends before the specified distance, for instance, a lane ending with the only option of incorporating to another road.
>>>>>>> Python documentation.
+=======
+The list may be empty if the road ends before the specified distance, for instance, a lane ending with the only option of incorporating to another road.
+>>>>>>> Fixed docs.
- **Parameters:**
- - `distance` (_float_) – The approximate distance where to get the next waypoints.
- - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
-- **next_until_lane_end**(**self**, **distance**)
-Returns a list of waypoints from this to the end of the lane separated by a certain `distance`.
+ - `distance` (_float_) – The approximate distance where to get the next waypoints.
+ - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
+- **next_until_lane_end**(**self**, **distance**)
+Returns a list of waypoints from this to the end of the lane separated by a certain `distance`.
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `distance` (_float_) – The approximate distance between waypoints.
- **Return:** _list([carla.Waypoint](#carla.Waypoint))_
@@ -3331,20 +4089,41 @@ The list may be empty if the lane is not connected to any other at the specified
This method does not return the waypoint previously visited by an actor, but a list of waypoints at an approximate `distance` but in the opposite direction of the lane. Similarly to **next()**, it takes into account the road and its possible deviations without performing any lane change and returns one waypoint per option.
The list may be empty if the road ends before the specified distance, for instance, a lane ending with the only option of incorporating to another road.
>>>>>>> Python documentation.
+=======
+ - `distance` (_float_) – The approximate distance between waypoints.
+ - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
+- **previous**(**self**, **distance**)
+This method does not return the waypoint previously visited by an actor, but a list of waypoints at an approximate `distance` but in the opposite direction of the lane. Similarly to **next()**, it takes into account the road and its possible deviations without performing any lane change and returns one waypoint per option.
+The list may be empty if the road ends before the specified distance, for instance, a lane ending with the only option of incorporating to another road.
- **Parameters:**
- - `distance` (_float_) – The approximate distance where to get the previous waypoints.
- - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
-- **previous_until_lane_start**(**self**, **distance**)
-Returns a list of waypoints from this to the start of the lane separated by a certain `distance`.
+ - `distance` (_float_) – The approximate distance where to get the previous waypoints.
+ - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
+- **previous_until_lane_start**(**self**, **distance**)
+Returns a list of waypoints from this to the start of the lane separated by a certain `distance`.
- **Parameters:**
- - `distance` (_float_) – The approximate distance between waypoints.
- - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
-- **\__str__**(**self**)
+ - `distance` (_float_) – The approximate distance between waypoints.
+ - **Return:** _list([carla.Waypoint](#carla.Waypoint))_
+- **get_landmarks**(**self**, **distance**, **stop_at_junction**=False)
+Returns a list of landmarks in the road from the current waypoint until the specified distance.
+>>>>>>> Fixed docs.
+ - **Parameters:**
+ - `distance` (_float_) – The maximum distance to search for landmarks from the current waypoint.
+ - `stop_at_junction` (_bool_) – Enables or disables the landmark search through junctions.
+ - **Return:** _list([carla.Landmark](#carla.Landmark))_
+- **get_landmarks_of_type**(**self**, **distance**, **type**, **stop_at_junction**=False)
+Returns a list of landmarks in the road of a specified type from the current waypoint until the specified distance.
+ - **Parameters:**
+ - `distance` (_float_) – The maximum distance to search for landmarks from the current waypoint.
+ - `type` (_str_) – The type of landmarks to search.
+ - `stop_at_junction` (_bool_) – Enables or disables the landmark search through junctions.
+ - **Return:** _list([carla.Landmark](#carla.Landmark))_
+- **\__str__**(**self**)
---
## carla.WeatherParameters
<<<<<<< HEAD
+<<<<<<< HEAD
This class defines objects containing lightning and weather specifications that can later be applied in [carla.World](#carla.World). So far, these conditions only intervene with [sensor.camera.rgb](/bp_library/). They neither affect the actor's physics nor other sensors.
Each of these parameters acts indepently from the rest. Increasing the rainfall will not automatically create puddles nor change the road's humidity. That makes for a better customization but means that realistic conditions need to be scripted. However an example of dynamic weather conditions working realistically can be found [here](https://github.com/carla-simulator/carla/blob/master/PythonAPI/examples/dynamic_weather.py).
@@ -3357,6 +4136,19 @@ Rain intensity values range from 0 to 100, being 0 none at all and 100 a heavy r
Determines the creation of puddles. Values range from 0 to 100, being 0 none at all and 100 a road completely capped with water. Puddles are created with static noise, meaning that they will always appear at the same locations.
- **wind_intensity** (_float_)
Controls the strenght of the wind with values from 0, no wind at all, to 100, a strong wind. The wind does affect rain direction and leaves from trees, so this value is restricted to avoid animation issues.
+=======
+WeatherParameters class is used for requesting and changing the lighting and weather conditions inside the world.
+
+Instance Variables
+- **cloudiness** (_float_)
+Weather cloudiness. It only affects the RGB camera sensor. Values range from 0 to 100.
+- **precipitation** (_float_)
+Precipitation amount for controlling rain intensity. It only affects the RGB camera sensor. Values range from 0 to 100.
+- **precipitation_deposits** (_float_)
+Precipitation deposits for controlling the area of puddles on roads. It only affects the RGB camera sensor. Values range from 0 to 100.
+- **wind_intensity** (_float_)
+Wind intensity, it affects the clouds moving speed, the raindrop direction, and vegetation. This doesn't affect the car physics. Values range from 0 to 100.
+>>>>>>> Fixed docs.
- **fog_density** (_float_)
Fog density. It only affects the RGB camera sensor. Values range from 0 to 100.
- **fog_distance** (_float_)
@@ -3364,6 +4156,7 @@ Fog start distance (in meters). Values range from 0 to infinite.
- **wetness** (_float_)
Wetness intensity. It only affects the RGB camera sensor. Values range from 0 to 100.
- **sun_azimuth_angle** (_float_)
+<<<<<<< HEAD
The azimuth angle of the sun in degrees. Values range from 0 to 360. Zero is an origin point in a sphere determined by Unreal Engine.
- **sun_altitude_angle** (_float_)
Altitude angle of the sun in degrees. Values range from -90 to 90 corresponding to midnight and midday each.
@@ -3409,11 +4202,17 @@ Wetness intensity. It only affects the RGB camera sensor. Values range from 0 to
The azimuth angle of the sun in degrees. Values range from 0 to 360 (degrees).
- **sun_altitude_angle** (_float_)
Altitude angle of the sun in degrees. Values range from -90 to 90 (where 0 degrees is the horizon).
+=======
+The azimuth angle of the sun in degrees. Values range from 0 to 360 (degrees).
+- **sun_altitude_angle** (_float_)
+Altitude angle of the sun in degrees. Values range from -90 to 90 (where 0 degrees is the horizon).
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **cloudiness**=0.0, **precipitation**=0.0, **precipitation_deposits**=0.0, **wind_intensity**=0.0, **sun_azimuth_angle**=0.0, **sun_altitude_angle**=0.0)
-WeatherParameters constructor.
+- **\__init__**(**self**, **cloudiness**=0.0, **precipitation**=0.0, **precipitation_deposits**=0.0, **wind_intensity**=0.0, **sun_azimuth_angle**=0.0, **sun_altitude_angle**=0.0)
+WeatherParameters constructor.
- **Parameters:**
+<<<<<<< HEAD
- `cloudiness` (_float_)
- `precipitation` (_float_)
- `precipitation_deposits` (_float_)
@@ -3428,17 +4227,37 @@ Returns True if `self` and `other` are not equal.
- **Return:** _bool_
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `cloudiness` (_float_)
+ - `precipitation` (_float_)
+ - `precipitation_deposits` (_float_)
+ - `wind_intensity` (_float_)
+ - `sun_azimuth_angle` (_float_)
+ - `sun_altitude_angle` (_float_)
+- **\__eq__**(**self**, **other**)
+Returns True if `self` and `other` are equal.
+ - **Return:** _bool_
+- **\__ne__**(**self**, **other**)
+Returns True if `self` and `other` are not equal.
+ - **Return:** _bool_
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.WheelPhysicsControl
<<<<<<< HEAD
+<<<<<<< HEAD
Class that defines specific physical parameters for wheel objects that will be part of a [carla.VehiclePhysicsControl](#carla.VehiclePhysicsControl) to simulate vehicle it as a material object.
+=======
+WheelPhysicsControl is used for controlling the physics parameters of a vehicle's wheel.
+>>>>>>> Fixed docs.
Instance Variables
- **tire_friction** (_float_)
A scalar value that indicates the friction of the wheel.
- **damping_rate** (_float_)
+<<<<<<< HEAD
Damping rate of the wheel.
- **max_steer_angle** (_float_)
Maximum angle in degrees that the wheel can steer.
@@ -3476,26 +4295,44 @@ World position of the wheel. Note that it is a read-only parameter.
- **\__init__**(**self**, **tire_friction**=2.0, **damping_rate**=0.25, **max_steer_angle**=70.0, **radius**=30.0, **max_brake_torque**=1500.0, **max_handbrake_torque**=3000.0, **position**=(0.0,0.0,0.0))
WheelPhysicsControl constructor.
>>>>>>> Python documentation.
+=======
+The damping rate of the wheel.
+- **max_steer_angle** (_float_)
+The maximum angle in degrees that the wheel can steer.
+- **radius** (_float_)
+The radius of the wheel in centimeters.
+- **max_brake_torque** (_float_)
+The maximum brake torque in Nm.
+- **max_handbrake_torque** (_float_)
+The maximum handbrake torque in Nm.
+- **position** (_[carla.Vector3D](#carla.Vector3D)_)
+World position of the wheel. Note that it is a read-only parameter.
+
+Methods
+- **\__init__**(**self**, **tire_friction**=2.0, **damping_rate**=0.25, **max_steer_angle**=70.0, **radius**=30.0, **max_brake_torque**=1500.0, **max_handbrake_torque**=3000.0, **position**=(0.0,0.0,0.0))
+WheelPhysicsControl constructor.
+>>>>>>> Fixed docs.
- **Parameters:**
- - `tire_friction` (_float_)
- - `damping_rate` (_float_)
- - `max_steer_angle` (_float_)
- - `radius` (_float_)
- - `max_brake_torque` (_float_)
- - `max_handbrake_torque` (_float_)
- - `position` (_[carla.Vector3D](#carla.Vector3D)_)
-- **\__eq__**(**self**, **other**)
+ - `tire_friction` (_float_)
+ - `damping_rate` (_float_)
+ - `max_steer_angle` (_float_)
+ - `radius` (_float_)
+ - `max_brake_torque` (_float_)
+ - `max_handbrake_torque` (_float_)
+ - `position` (_[carla.Vector3D](#carla.Vector3D)_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.WheelPhysicsControl](#carla.WheelPhysicsControl)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.WheelPhysicsControl](#carla.WheelPhysicsControl)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.WheelPhysicsControl](#carla.WheelPhysicsControl)_)
-- **\__str__**(**self**)
+ - `other` (_[carla.WheelPhysicsControl](#carla.WheelPhysicsControl)_)
+- **\__str__**(**self**)
---
## carla.World
<<<<<<< HEAD
+<<<<<<< HEAD
World objects are created by the client to have a place for the simulation to happen. The world contains the map we can see, meaning the asset, not the navigation map. Navigation maps are part of the [carla.Map](#carla.Map) class. It also manages the weather and actors present in it. There can only be one world per simulation, but it can be changed anytime.
Instance Variables
@@ -3583,13 +4420,17 @@ The client tells the server to block calling thread until a ****id** (_int_)
-The id of the episode associated with this world.
-- **debug** (_[carla.DebugHelper](#carla.DebugHelper)_)
+- **id** (_int_)
+The id of the episode associated with this world.
+- **debug** (_[carla.DebugHelper](#carla.DebugHelper)_)
Methods
+<<<<<<< HEAD
- **get_blueprint_library**(**self**)
Return the list of blueprints available in this world. These blueprints can be used to spawn actors into the world.
- **Return:** _[carla.BlueprintLibrary](#carla.BlueprintLibrary)_
@@ -3660,11 +4501,83 @@ Synchronizes with the simulator and returns the id of the newly started frame (o
- **Return:** _int_
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+- **get_blueprint_library**(**self**)
+Return the list of blueprints available in this world. These blueprints can be used to spawn actors into the world.
+ - **Return:** _[carla.BlueprintLibrary](#carla.BlueprintLibrary)_
+- **get_map**(**self**)
+Return the map that describes this world.
+ - **Return:** _[carla.Map](#carla.Map)_
+- **get_spectator**(**self**)
+Return the spectator actor. The spectator controls the view in the simulator window.
+ - **Return:** _[carla.Actor](#carla.Actor)_
+- **get_settings**(**self**)
+ - **Return:** _[carla.WorldSettings](#carla.WorldSettings)_
+- **apply_settings**(**self**, **world_settings**)
+Returns the id of the frame when the settings took effect.
+ - **Parameters:**
+ - `world_settings` (_[carla.WorldSettings](#carla.WorldSettings)_)
+ - **Return:** _int_
+- **get_weather**(**self**)
+Retrieve the weather parameters currently active in the world.
+ - **Return:** _[carla.WeatherParameters](#carla.WeatherParameters)_
+- **set_weather**(**self**, **weather**)
+Change the weather in the simulation.
+ - **Parameters:**
+ - `weather` (_[carla.WeatherParameters](#carla.WeatherParameters)_)
+- **get_snapshot**(**self**)
+Return a snapshot of the world at this moment.
+ - **Return:** _[carla.WorldSnapshot](#carla.WorldSnapshot)_
+- **get_actor**(**self**, **actor_id**)
+Find actor by id, return None if not found.
+ - **Parameters:**
+ - `actor_id` (_int_)
+ - **Return:** _[carla.Actor](#carla.Actor)_
+- **get_random_location_from_navigation**(**self**)
+Retrieve a random location to be used as a destination for walkers in [carla.WalkerAIController.go_to_location](#carla.WalkerAIController.go_to_location). See [`spawn_npc.py`](https://github.com/carla-simulator/carla/blob/e73ad54d182e743b50690ca00f1709b08b16528c/PythonAPI/examples/spawn_npc.py#L179) for an example.
+ - **Return:** _[carla.Location](#carla.Location)_
+- **get_actors**(**self**)
+By default it returns a list with every actor present in the world. _A list of ids can be used as a parameter_.
+ - **Return:** _[carla.ActorList](#carla.ActorList)_
+- **spawn_actor**(**self**, **blueprint**, **transform**, **attach_to**=None, **attachment**=Rigid)
+Spawn an actor into the world based on the blueprint provided at transform. If a parent is provided, the actor is attached to parent.
+ - **Parameters:**
+ - `blueprint` (_[carla.BlueprintLibrary](#carla.BlueprintLibrary)_)
+ - `transform` (_[carla.Transform](#carla.Transform)_) – If attached to parent, transform acts like a relative_transform to the parent actor.
+ - `attach_to` (_[carla.Actor](#carla.Actor)_)
+ - `attachment` (_[carla.AttachmentType](#carla.AttachmentType)_)
+ - **Return:** _[carla.Actor](#carla.Actor)_
+- **try_spawn_actor**(**self**, **blueprint**, **transform**, **attach_to**=None, **attachment**=Rigid)
+Same as SpawnActor but return none on failure instead of throwing an exception.
+ - **Parameters:**
+ - `blueprint` (_[carla.BlueprintLibrary](#carla.BlueprintLibrary)_)
+ - `transform` (_[carla.Transform](#carla.Transform)_) – If attached to parent, transform acts like a relative_transform to the parent actor.
+ - `attach_to` (_[carla.Actor](#carla.Actor)_)
+ - `attachment` (_[carla.AttachmentType](#carla.AttachmentType)_)
+ - **Return:** _[carla.Actor](#carla.Actor)_
+- **wait_for_tick**(**self**, **seconds**=10.0)
+Block calling thread until a world tick is received.
+ - **Parameters:**
+ - `seconds` (_float_)
+ - **Return:** _[carla.WorldSnapshot](#carla.WorldSnapshot)_
+- **on_tick**(**self**, **callback**)
+Returns the ID of the callback so it can be removed with `remove_on_tick`.
+ - **Parameters:**
+ - `callback` (_[carla.WorldSnapshot](#carla.WorldSnapshot)_)
+ - **Return:** _int_
+- **remove_on_tick**(**self**, **callback_id**)
+Removes on tick callbacks.
+- **tick**(**self**)
+Synchronizes with the simulator and returns the id of the newly started frame (only has effect on synchronous mode).
+ - **Return:** _int_
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.WorldSettings
<<<<<<< HEAD
+<<<<<<< HEAD
The simulation has some advanced configuration options that are contained in this class and can be managed using [carla.World](#carla.World) and its methods. These allow the user to choose between client-server synchrony/asynchrony, activation of "no rendering mode" and either if the simulation should run with a fixed or variable time-step. Check [this](../configuring_the_simulation/) out if you want to learn about it.
Instance Variables
@@ -3697,31 +4610,40 @@ Parses the established settings to a string and shows them in command line.
- **Return:** _str_
=======
Class that provides access to modifiable world settings. Check it out in our [section](../configuring_the_simulation/).
+=======
+Class that provides access to modifiable world settings. Check it out in our [section](../configuring_the_simulation/).
+>>>>>>> Fixed docs.
Instance Variables
-- **synchronous_mode** (_bool_)
-- **no_rendering_mode** (_bool_)
-- **fixed_delta_seconds** (_float_)
+- **synchronous_mode** (_bool_)
+- **no_rendering_mode** (_bool_)
+- **fixed_delta_seconds** (_float_)
Methods
-- **\__init__**(**self**, **synchronous_mode**=False, **no_rendering_mode**=False, **fixed_delta_seconds**=0.0)
+- **\__init__**(**self**, **synchronous_mode**=False, **no_rendering_mode**=False, **fixed_delta_seconds**=0.0)
- **Parameters:**
- - `synchronous_mode` (_bool_)
- - `no_rendering_mode` (_bool_)
- - `fixed_delta_seconds` (_float_)
-- **\__eq__**(**self**, **other**)
+ - `synchronous_mode` (_bool_)
+ - `no_rendering_mode` (_bool_)
+ - `fixed_delta_seconds` (_float_)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.Timestamp](#carla.Timestamp)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.Timestamp](#carla.Timestamp)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
+<<<<<<< HEAD
- `other` (_[carla.Timestamp](#carla.Timestamp)_)
- **\__str__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `other` (_[carla.Timestamp](#carla.Timestamp)_)
+- **\__str__**(**self**)
+>>>>>>> Fixed docs.
---
## carla.WorldSnapshot
<<<<<<< HEAD
+<<<<<<< HEAD
This snapshot comprises all the information for every actor on scene at a certain moment of time. It creates and gives acces to a data structure containing a series of [carla.ActorSnapshot](#carla.ActorSnapshot). The client recieves a new snapshot on every tick that cannot be stored.
Instance Variables
@@ -3760,55 +4682,68 @@ Given a certain actor ID, checks if there is a snapshot corresponding it and so,
- **Return:** _bool_
=======
Class that represents the state of every actor in the simulation at a single frame.
+=======
+Class that represents the state of every actor in the simulation at a single frame.
+>>>>>>> Fixed docs.
Instance Variables
-- **id** (_int_)
-The WorldSnapshot's identifier.
-- **frame** (_int_)
-Frame number.
-- **timestamp** (_[carla.Timestamp](#carla.Timestamp)_)
-Timestamp simulated data.
+- **id** (_int_)
+The WorldSnapshot's identifier.
+- **frame** (_int_)
+Frame number.
+- **timestamp** (_[carla.Timestamp](#carla.Timestamp)_)
+Timestamp simulated data.
Methods
-- **has_actor**(**self**, **actor_id**)
-Check if an actor is present in this snapshot.
+- **has_actor**(**self**, **actor_id**)
+Check if an actor is present in this snapshot.
- **Parameters:**
- - `actor_id` (_int_)
-- **find**(**self**, **actor_id**)
-Find an ActorSnapshot by id, return None if the actor is not found.
+ - `actor_id` (_int_)
+- **find**(**self**, **actor_id**)
+Find an ActorSnapshot by id, return None if the actor is not found.
- **Parameters:**
- - `actor_id` (_int_)
-- **\__len__**(**self**)
-Return number of [carla.ActorSnapshot](#carla.ActorSnapshot) present in this [carla.WorldSnapshot](#carla.WorldSnapshot).
- - **Return:** _int_
-- **\__iter__**(**self**)
-- **\__eq__**(**self**, **other**)
+ - `actor_id` (_int_)
+- **\__len__**(**self**)
+Return number of [carla.ActorSnapshot](#carla.ActorSnapshot) present in this [carla.WorldSnapshot](#carla.WorldSnapshot).
+ - **Return:** _int_
+- **\__iter__**(**self**)
+- **\__eq__**(**self**, **other**)
- **Parameters:**
- - `other` (_[carla.WorldSnapshot](#carla.WorldSnapshot)_)
-- **\__ne__**(**self**, **other**)
+ - `other` (_[carla.WorldSnapshot](#carla.WorldSnapshot)_)
+- **\__ne__**(**self**, **other**)
- **Parameters:**
+<<<<<<< HEAD
- `other` (_[carla.WorldSnapshot](#carla.WorldSnapshot)_)
- **\__self__**(**self**)
>>>>>>> Python documentation.
+=======
+ - `other` (_[carla.WorldSnapshot](#carla.WorldSnapshot)_)
+- **\__self__**(**self**)
+>>>>>>> Fixed docs.
---
## command.ApplyAngularVelocity
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **set_angular_velocity()** in [carla.Actor](#carla.Actor). Sets an actor's angular velocity.
=======
Set the actor's angular velocity.
>>>>>>> Python documentation.
+=======
+Set the actor's angular velocity.
+>>>>>>> Fixed docs.
Instance Variables
-- **actor_id** (_int_)
-Actor affected by the command.
-- **angular_velocity** (_[carla.Vector3D](#carla.Vector3D)_)
-The 3D angular velocity that will be applied to the actor.
+- **actor_id** (_int_)
+Actor affected by the command.
+- **angular_velocity** (_[carla.Vector3D](#carla.Vector3D)_)
+The 3D angular velocity that will be applied to the actor.
Methods
-- **\__init__**(**self**, **actor**, **angular_velocity**)
+- **\__init__**(**self**, **actor**, **angular_velocity**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `angular_velocity` (_[carla.Vector3D](#carla.Vector3D)_)
@@ -3816,25 +4751,34 @@ The 3D angular velocity that will be applied to the actor.
- `actor` (_[carla.Actor](#carla.Actor) or int_)
- `angular_velocity` (_[carla.Vector3D](#carla.Vector3D)_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `angular_velocity` (_[carla.Vector3D](#carla.Vector3D)_)
+>>>>>>> Fixed docs.
---
## command.ApplyImpulse
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **add_impulse()** in [carla.Actor](#carla.Actor). Adds impulse to an actor.
=======
Adds impulse to the actor.
>>>>>>> Python documentation.
+=======
+Adds impulse to the actor.
+>>>>>>> Fixed docs.
Instance Variables
-- **actor_id** (_int_)
-Actor affected by the command.
-- **impulse** (_[carla.Vector3D](#carla.Vector3D)_)
-Impulse applied to the actor.
+- **actor_id** (_int_)
+Actor affected by the command.
+- **impulse** (_[carla.Vector3D](#carla.Vector3D)_)
+Impulse applied to the actor.
Methods
-- **\__init__**(**self**, **actor**, **impulse**)
+- **\__init__**(**self**, **actor**, **impulse**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `impulse` (_[carla.Vector3D](#carla.Vector3D)_)
@@ -3842,25 +4786,34 @@ Impulse applied to the actor.
- `actor` (_[carla.Actor](#carla.Actor) or int_)
- `impulse` (_[carla.Vector3D](#carla.Vector3D)_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `impulse` (_[carla.Vector3D](#carla.Vector3D)_)
+>>>>>>> Fixed docs.
---
## command.ApplyTransform
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **set_transform()** in [carla.Actor](#carla.Actor). Sets a new transform to an actor.
=======
Sets a new transform to the actor.
>>>>>>> Python documentation.
+=======
+Sets a new transform to the actor.
+>>>>>>> Fixed docs.
Instance Variables
-- **actor_id** (_int_)
-Actor affected by the command.
-- **transform** (_[carla.Transform](#carla.Transform)_)
-Transformation to be applied.
+- **actor_id** (_int_)
+Actor affected by the command.
+- **transform** (_[carla.Transform](#carla.Transform)_)
+Transformation to be applied.
Methods
-- **\__init__**(**self**, **actor**, **transform**)
+- **\__init__**(**self**, **actor**, **transform**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `transform` (_[carla.Transform](#carla.Transform)_)
@@ -3868,25 +4821,34 @@ Transformation to be applied.
- `actor` (_[carla.Actor](#carla.Actor) or int_)
- `transform` (_[carla.Transform](#carla.Transform)_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `transform` (_[carla.Transform](#carla.Transform)_)
+>>>>>>> Fixed docs.
---
## command.ApplyVehicleControl
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **apply_control()** in [carla.Vehicle](#carla.Vehicle). Applies a certain control to a vehicle.
=======
Apply control to the vehicle.
>>>>>>> Python documentation.
+=======
+Apply control to the vehicle.
+>>>>>>> Fixed docs.
Instance Variables
-- **actor_id** (_int_)
-Vehicle actor affected by the command.
-- **control** (_[carla.VehicleControl](#carla.VehicleControl)_)
-Vehicle control to be applied.
+- **actor_id** (_int_)
+Vehicle actor affected by the command.
+- **control** (_[carla.VehicleControl](#carla.VehicleControl)_)
+Vehicle control to be applied.
Methods
-- **\__init__**(**self**, **actor**, **control**)
+- **\__init__**(**self**, **actor**, **control**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `control` (_[carla.VehicleControl](#carla.VehicleControl)_)
@@ -3894,25 +4856,34 @@ Vehicle control to be applied.
- `actor` (_[carla.Actor](#carla.Actor) or int_)
- `control` (_[carla.VehicleControl](#carla.VehicleControl)_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `control` (_[carla.VehicleControl](#carla.VehicleControl)_)
+>>>>>>> Fixed docs.
---
## command.ApplyVelocity
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **set_velocity()** in [carla.Actor](#carla.Actor). Sets an actor's velocity.
=======
Sets actor's velocity.
>>>>>>> Python documentation.
+=======
+Sets actor's velocity.
+>>>>>>> Fixed docs.
Instance Variables
-- **actor_id** (_int_)
-Actor affected by the command.
-- **velocity** (_[carla.Vector3D](#carla.Vector3D)_)
-The 3D velocity applied to the actor.
+- **actor_id** (_int_)
+Actor affected by the command.
+- **velocity** (_[carla.Vector3D](#carla.Vector3D)_)
+The 3D velocity applied to the actor.
Methods
-- **\__init__**(**self**, **actor**, **velocity**)
+- **\__init__**(**self**, **actor**, **velocity**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `velocity` (_[carla.Vector3D](#carla.Vector3D)_)
@@ -3920,11 +4891,16 @@ The 3D velocity applied to the actor.
- `actor` (_[carla.Actor](#carla.Actor) or int_)
- `velocity` (_[carla.Vector3D](#carla.Vector3D)_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `velocity` (_[carla.Vector3D](#carla.Vector3D)_)
+>>>>>>> Fixed docs.
---
## command.ApplyWalkerControl
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **apply_control()** in [carla.Walker](#carla.Walker). Applies a control to a walker.
Instance Variables
@@ -3941,10 +4917,20 @@ Walker actor affected by the command.
- **control** (_[carla.VehicleControl](#carla.VehicleControl)_)
Walker control to be applied.
>>>>>>> Python documentation.
+=======
+Apply control to the walker.
+
+Instance Variables
+- **actor_id** (_int_)
+Walker actor affected by the command.
+- **control** (_[carla.VehicleControl](#carla.VehicleControl)_)
+Walker control to be applied.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **actor**, **control**)
+- **\__init__**(**self**, **actor**, **control**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `control` (_[carla.WalkerControl](#carla.WalkerControl)_)
@@ -3952,27 +4938,36 @@ Walker control to be applied.
- `actor` (_[carla.Actor](#carla.Actor) or int_)
- `control` (_[carla.WalkerControl](#carla.WalkerControl)_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `control` (_[carla.WalkerControl](#carla.WalkerControl)_)
+>>>>>>> Fixed docs.
---
## command.ApplyWalkerState
<<<<<<< HEAD
+<<<<<<< HEAD
Apply a state to the walker actor. Specially useful to initialize an actor them with a specific location, orientation and speed.
=======
Apply a state to the walker actor.
>>>>>>> Python documentation.
+=======
+Apply a state to the walker actor.
+>>>>>>> Fixed docs.
Instance Variables
-- **actor_id** (_int_)
-Walker actor affected by the command.
-- **transform** (_[carla.Transform](#carla.Transform)_)
-Transform to be applied.
-- **speed** (_float_)
-Speed to be applied.
+- **actor_id** (_int_)
+Walker actor affected by the command.
+- **transform** (_[carla.Transform](#carla.Transform)_)
+Transform to be applied.
+- **speed** (_float_)
+Speed to be applied.
Methods
-- **\__init__**(**self**, **actor**, **transform**, **speed**)
+- **\__init__**(**self**, **actor**, **transform**, **speed**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `transform` (_[carla.Transform](#carla.Transform)_)
@@ -3982,33 +4977,47 @@ Speed to be applied.
- `transform` (_[carla.Transform](#carla.Transform)_)
- `speed` (_float_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `transform` (_[carla.Transform](#carla.Transform)_)
+ - `speed` (_float_)
+>>>>>>> Fixed docs.
---
## command.DestroyActor
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **destroy()** in [carla.Actor](#carla.Actor) that tells the simulator to destroy this actor. It has no effect if the actor was already destroyed. When executed with **apply_batch_synch()** in [carla.Client](#carla.Client) there will be a command.Response that will return a boolean stating whether the actor was successfully destroyed.
=======
Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed. It has no effect if the Actor was already successfully destroyed.
>>>>>>> Python documentation.
+=======
+Tell the simulator to destroy this Actor, and return whether the actor was successfully destroyed. It has no effect if the Actor was already successfully destroyed.
+>>>>>>> Fixed docs.
Instance Variables
-- **actor_id** (_int_)
-Actor affected by the command.
+- **actor_id** (_int_)
+Actor affected by the command.
Methods
-- **\__init__**(**self**, **actor**)
+- **\__init__**(**self**, **actor**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
=======
- `actor` (_[carla.Actor](#carla.Actor) or int_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+>>>>>>> Fixed docs.
---
## command.Response
<<<<<<< HEAD
+<<<<<<< HEAD
States the result of executing a command as either the ID of the actor to whom the command was applied to (when succeeded) or an error string (when failed). actor ID, depending on whether or not the command succeeded. The method **apply_batch_sync()** in [carla.Client](#carla.Client) returns a list of these to summarize the execution of a batch.
Instance Variables
@@ -4023,20 +5032,28 @@ Returns True if the command represents a successful execution and Fals
- **Return:** _bool_
=======
Execution result of a command, contains either an error string or an actor ID, depending on whether or not the command succeeded. See [carla.Client.apply_batch_sync](#carla.Client.apply_batch_sync).
+=======
+Execution result of a command, contains either an error string or an actor ID, depending on whether or not the command succeeded. See [carla.Client.apply_batch_sync](#carla.Client.apply_batch_sync).
+>>>>>>> Fixed docs.
Instance Variables
-- **actor_id** (_int_)
-Actor affected by the command.
-- **error** (_str_)
+- **actor_id** (_int_)
+Actor affected by the command.
+- **error** (_str_)
Methods
+<<<<<<< HEAD
- **has_error**(**self**)
>>>>>>> Python documentation.
+=======
+- **has_error**(**self**)
+>>>>>>> Fixed docs.
---
## command.SetAutopilot
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **set_autopilot()** in [carla.Vehicle](#carla.Vehicle). Turns on/off the vehicle's server-side autopilot.
Instance Variables
@@ -4053,10 +5070,20 @@ Actor that is affected by the command.
- **enabled** (_bool_)
If the autopilot is enabled or not.
>>>>>>> Python documentation.
+=======
+Switch on/off vehicle's server-side autopilot.
+
+Instance Variables
+- **actor_id** (_int_)
+Actor that is affected by the command.
+- **enabled** (_bool_)
+If the autopilot is enabled or not.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **actor**, **enabled**)
+- **\__init__**(**self**, **actor**, **enabled**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `enabled` (_bool_)
@@ -4064,11 +5091,16 @@ If the autopilot is enabled or not.
- `actor` (_[carla.Actor](#carla.Actor) or int_)
- `enabled` (_bool_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `enabled` (_bool_)
+>>>>>>> Fixed docs.
---
## command.SetSimulatePhysics
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **set_simulate_physics()** in [carla.Actor](#carla.Actor). Determines whether an actor will be affected by physics or not.
Instance Variables
@@ -4085,10 +5117,20 @@ Actor affected by the command.
- **enabled** (_bool_)
If physics will affect the actor.
>>>>>>> Python documentation.
+=======
+Whether an actor will be affected by physics or not.
+
+Instance Variables
+- **actor_id** (_int_)
+Actor affected by the command.
+- **enabled** (_bool_)
+If physics will affect the actor.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**, **actor**, **enabled**)
+- **\__init__**(**self**, **actor**, **enabled**)
- **Parameters:**
+<<<<<<< HEAD
<<<<<<< HEAD
- `actor` (_[carla.Actor](#carla.Actor) or int_) – Actor or its ID to whom the command will be applied to.
- `enabled` (_bool_)
@@ -4096,11 +5138,16 @@ If physics will affect the actor.
- `actor` (_[carla.Actor](#carla.Actor) or int_)
- `enabled` (_bool_)
>>>>>>> Python documentation.
+=======
+ - `actor` (_[carla.Actor](#carla.Actor) or int_)
+ - `enabled` (_bool_)
+>>>>>>> Fixed docs.
---
## command.SpawnActor
<<<<<<< HEAD
+<<<<<<< HEAD
Command adaptation of **spawn_actor()** in [carla.World](#carla.World). Spawns an actor into the world based on the blueprint provided and the transform. If a parent is provided, the actor is attached to it.
Instance Variables
@@ -4117,20 +5164,33 @@ Transform to be applied.
- **parent_id** (_int_)
Parent's actor id.
>>>>>>> Python documentation.
+=======
+Spawn an actor into the world based on the blueprint provided and the transform. If a parent is provided, the actor is attached to parent.
+
+Instance Variables
+- **transform** (_[carla.Transform](#carla.Transform)_)
+Transform to be applied.
+- **parent_id** (_int_)
+Parent's actor id.
+>>>>>>> Fixed docs.
Methods
-- **\__init__**(**self**)
-- **\__init__**(**self**, **blueprint**, **transform**)
+- **\__init__**(**self**)
+- **\__init__**(**self**, **blueprint**, **transform**)
- **Parameters:**
- - `blueprint` (_[carla.ActorBlueprint](#carla.ActorBlueprint)_)
- - `transform` (_[carla.Transform](#carla.Transform)_)
-- **\__init__**(**self**, **blueprint**, **transform**, **parent**)
+ - `blueprint` (_[carla.ActorBlueprint](#carla.ActorBlueprint)_)
+ - `transform` (_[carla.Transform](#carla.Transform)_)
+- **\__init__**(**self**, **blueprint**, **transform**, **parent**)
- **Parameters:**
<<<<<<< HEAD
+<<<<<<< HEAD
+=======
+>>>>>>> Fixed docs.
- `blueprint` (_[carla.ActorBlueprint](#carla.ActorBlueprint)_)
- `transform` (_[carla.Transform](#carla.Transform)_)
- `parent` (_[carla.Actor](#carla.Actor) or int_)
- **then**(**self**, **command**)
+<<<<<<< HEAD
Links another command to be executed right after. It allows to ease very common flows such as spawning a set of vehicles by command and then using this method to set them to autopilot automatically.
=======
- `blueprint` (_[carla.ActorBlueprint](#carla.ActorBlueprint)_)
@@ -4139,7 +5199,10 @@ Links another command to be executed right after. It allows to ease very common
- **then**(**self**, **command**)
Link another command to be executed right after.
>>>>>>> Python documentation.
+=======
+Link another command to be executed right after.
+>>>>>>> Fixed docs.
- **Parameters:**
- - `command` (_[carla.Command](#carla.Command)_) – CommandType.
+ - `command` (_[carla.Command](#carla.Command)_) – CommandType.
---
\ No newline at end of file