carla/PythonAPI/docs/blueprint.yml

291 lines
6.9 KiB
YAML
Raw Normal View History

2019-05-03 18:18:02 +08:00
---
- module_name: carla
doc: >
# - CLASSES ------------------------------
classes:
- class_name: ActorAttributeType
# - DESCRIPTION ------------------------
doc: >
# - 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: >
# - PROPERTIES -------------------------
instance_variables:
- var_name: r
doc: >
- var_name: g
doc: >
- var_name: b
doc: >
- var_name: a
doc: >
# - 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
doc: >
# --------------------------------------
- def_name: __ne__
params:
- param_name: other
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: >
# - 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: >
- var_name: type
2019-07-01 23:46:27 +08:00
type: carla.ActorAttributeType
2019-05-03 18:18:02 +08:00
doc: >
- var_name: recommended_values
2019-07-01 23:46:27 +08:00
type: list(str)
2019-05-03 18:18:02 +08:00
doc: >
- var_name: is_modifiable
2019-07-01 23:46:27 +08:00
type: bool
2019-05-03 18:18:02 +08:00
doc: >
# - 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
type: bool
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __eq__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: int
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __eq__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: float
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __eq__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: str
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __eq__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: carla.Color
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __eq__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: 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
type: bool
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __ne__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: int
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __ne__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: float
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __ne__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: str
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __ne__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: carla.Color
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: __ne__
2019-07-01 23:46:27 +08:00
params:
- param_name: other
type: 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: >
# - 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: >
- var_name: tags
2019-07-01 23:46:27 +08:00
type: list(str)
2019-05-03 18:18:02 +08:00
doc: >
# - METHODS ----------------------------
methods:
- def_name: has_tag
2019-07-01 23:46:27 +08:00
return_type: bool
params:
- param_name: tag
type: str
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: match_tags
2019-07-01 23:46:27 +08:00
return_type: bool
params:
- param_name: wildcard_pattern
type: str
2019-05-03 18:18:02 +08:00
doc: >
2019-07-01 23:46:27 +08:00
Test if any of the flags matches wildcard_pattern.
note: >
Wildcard_pattern follows Unix shell-style wildcards.
2019-05-03 18:18:02 +08:00
# --------------------------------------
- def_name: has_attribute
2019-07-01 23:46:27 +08:00
return_type: bool
params:
- param_name: id
type: str
2019-05-03 18:18:02 +08:00
doc: >
# --------------------------------------
- def_name: get_attribute
2019-07-01 23:46:27 +08:00
return_type: carla.ActorAttribute
params:
- param_name: id
type: str
2019-05-03 18:18:02 +08:00
doc: >
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: >
# --------------------------------------
- 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: >
# - METHODS ----------------------------
methods:
- def_name: find
doc: >
# --------------------------------------
- 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-05-03 18:18:02 +08:00
# --------------------------------------
- def_name: __getitem__
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
...