2019-05-03 18:18:02 +08:00
|
|
|
---
|
|
|
|
- module_name: carla
|
|
|
|
doc: >
|
|
|
|
# - CLASSES ------------------------------
|
|
|
|
classes:
|
|
|
|
- class_name: ActorAttributeType
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Class that defines the type of attribute of a carla.ActorAttribute.
|
2019-05-03 18:18:02 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: Bool
|
|
|
|
doc: >
|
|
|
|
- var_name: Int
|
|
|
|
doc: >
|
|
|
|
- var_name: Float
|
|
|
|
doc: >
|
|
|
|
- var_name: String
|
|
|
|
doc: >
|
|
|
|
- var_name: RGBColor
|
|
|
|
doc: >
|
|
|
|
|
|
|
|
- class_name: Color
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-05 20:53:24 +08:00
|
|
|
Class that defines a 32-bit BGRA color.
|
2019-05-03 18:18:02 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: r
|
2019-07-26 17:25:49 +08:00
|
|
|
type: int
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Red color (0-255)
|
2019-05-03 18:18:02 +08:00
|
|
|
- var_name: g
|
2019-07-26 17:25:49 +08:00
|
|
|
type: int
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Green color (0-255)
|
2019-05-03 18:18:02 +08:00
|
|
|
- var_name: b
|
2019-07-26 17:25:49 +08:00
|
|
|
type: int
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Blue color (0-255)
|
2019-05-03 18:18:02 +08:00
|
|
|
- var_name: a
|
2019-07-26 17:25:49 +08:00
|
|
|
type: int
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Alpha channel (0-255)
|
2019-05-03 18:18:02 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
2019-07-01 23:46:27 +08:00
|
|
|
- def_name: __init__
|
|
|
|
params:
|
|
|
|
- param_name: r
|
|
|
|
type: int
|
|
|
|
default: 0
|
|
|
|
doc: >
|
|
|
|
- param_name: g
|
|
|
|
type: int
|
|
|
|
default: 0
|
|
|
|
doc: >
|
|
|
|
- param_name: b
|
|
|
|
type: int
|
|
|
|
default: 0
|
|
|
|
doc: >
|
|
|
|
- param_name: a
|
|
|
|
type: int
|
|
|
|
default: 255
|
|
|
|
doc: >
|
|
|
|
doc: >
|
|
|
|
Client constructor
|
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
- def_name: __eq__
|
|
|
|
params:
|
|
|
|
- param_name: other
|
2019-08-03 02:15:14 +08:00
|
|
|
type: carla.Color
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __ne__
|
|
|
|
params:
|
|
|
|
- param_name: other
|
2019-08-03 02:15:14 +08:00
|
|
|
type: carla.Color
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-07-01 23:46:27 +08:00
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
|
|
|
|
- class_name: ActorAttribute
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-05 20:22:22 +08:00
|
|
|
Class that defines an attribute of a carla.ActorBlueprint.
|
2019-05-03 18:18:02 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: id
|
2019-07-01 23:46:27 +08:00
|
|
|
type: str
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-09-06 17:07:21 +08:00
|
|
|
The attribute's identifier
|
2019-05-03 18:18:02 +08:00
|
|
|
- var_name: type
|
2019-07-01 23:46:27 +08:00
|
|
|
type: carla.ActorAttributeType
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
The attribute parameter type
|
2019-05-03 18:18:02 +08:00
|
|
|
- var_name: recommended_values
|
2019-07-01 23:46:27 +08:00
|
|
|
type: list(str)
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
List of recommended values that the attribute may have.
|
2019-05-03 18:18:02 +08:00
|
|
|
- var_name: is_modifiable
|
2019-07-01 23:46:27 +08:00
|
|
|
type: bool
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
True if the attribute is modifiable.
|
2019-05-03 18:18:02 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: as_bool
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: as_int
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: as_float
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: as_str
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: as_color
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __eq__
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: other
|
2019-08-01 21:42:19 +08:00
|
|
|
type: bool / int / float / str / carla.Color / carla.ActorAttribute
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __ne__
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: other
|
2019-08-01 21:42:19 +08:00
|
|
|
type: bool / int / float / str / carla.Color / carla.ActorAttribute
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __nonzero__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __bool__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __int__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __float__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-07-01 23:46:27 +08:00
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
|
|
|
|
- class_name: ActorBlueprint
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-05 20:22:22 +08:00
|
|
|
Class that contains all the necessary information for spawning an Actor.
|
2019-05-03 18:18:02 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: id
|
2019-07-01 23:46:27 +08:00
|
|
|
type: str
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
Actor blueprint identifier, e.g. `walker.pedestrian.0001`.
|
2019-05-03 18:18:02 +08:00
|
|
|
- var_name: tags
|
2019-07-01 23:46:27 +08:00
|
|
|
type: list(str)
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
List of tags of an actor blueprint e.g. `['0001', 'pedestrian', 'walker']`
|
2019-05-03 18:18:02 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: has_tag
|
2019-07-03 00:32:23 +08:00
|
|
|
return: bool
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: tag
|
|
|
|
type: str
|
2019-08-15 01:44:55 +08:00
|
|
|
doc: >
|
|
|
|
e.g. 'walker'
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
Returns `true` if an actor blueprint has the tag.
|
2019-05-03 18:18:02 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: match_tags
|
2019-07-03 00:32:23 +08:00
|
|
|
return: bool
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: wildcard_pattern
|
|
|
|
type: str
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-07-09 22:03:58 +08:00
|
|
|
Test if any of the flags or id matches wildcard_pattern.
|
2019-07-01 23:46:27 +08:00
|
|
|
note: >
|
2019-08-03 02:15:14 +08:00
|
|
|
The wildcard_pattern follows Unix shell-style wildcards.
|
2019-05-03 18:18:02 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: has_attribute
|
2019-07-03 00:32:23 +08:00
|
|
|
return: bool
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: id
|
|
|
|
type: str
|
2019-08-15 01:44:55 +08:00
|
|
|
doc: >
|
|
|
|
e.g 'gender'
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
Returns `true` if the blueprint contains the specified attribute
|
2019-05-03 18:18:02 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_attribute
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.ActorAttribute
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: id
|
|
|
|
type: str
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
Returns the current actor attribute through its id
|
2019-07-01 23:46:27 +08:00
|
|
|
Return: carla.ActorAttribute
|
2019-05-03 18:18:02 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: set_attribute
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: id
|
|
|
|
type: str
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- param_name: value
|
|
|
|
type: str
|
|
|
|
doc: >
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
Sets an existing attribute to the actor's blueprint
|
|
|
|
note: >
|
|
|
|
Attribute can only be set or changed if it is modifiable
|
2019-05-03 18:18:02 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __len__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __iter__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-07-01 23:46:27 +08:00
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
|
|
|
|
- class_name: BlueprintLibrary
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-08-01 21:42:19 +08:00
|
|
|
Class that provides access to [blueprints](../bp_library/).
|
2019-05-03 18:18:02 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: find
|
2019-08-15 01:44:55 +08:00
|
|
|
params:
|
|
|
|
- param_name: id
|
|
|
|
type: str
|
|
|
|
return: carla.ActorBlueprint
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-15 01:44:55 +08:00
|
|
|
Returns a carla.ActorBlueprint through its id
|
2019-05-03 18:18:02 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: filter
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: wildcard_pattern
|
|
|
|
type: str
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Filters a list of ActorBlueprint with id or tags matching wildcard_pattern.
|
2019-07-09 22:03:58 +08:00
|
|
|
The pattern is matched against each blueprint's id and tags.
|
|
|
|
note: >
|
2019-08-03 02:15:14 +08:00
|
|
|
The wildcard_pattern follows Unix shell-style wildcards (fnmatch).
|
2019-07-09 22:03:58 +08:00
|
|
|
return: carla.BlueprintLibrary
|
2019-05-03 18:18:02 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __getitem__
|
2019-07-03 00:32:23 +08:00
|
|
|
params:
|
|
|
|
- param_name: pos
|
2019-08-03 02:15:14 +08:00
|
|
|
type: int
|
2019-07-09 22:03:58 +08:00
|
|
|
return: carla.ActorBlueprint
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __len__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __iter__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-07-01 23:46:27 +08:00
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
...
|