carla/PythonAPI/docs/geom.yml

369 lines
9.6 KiB
YAML
Raw Normal View History

2019-05-03 18:18:02 +08:00
---
- module_name: carla
doc: >
2019-05-03 19:13:41 +08:00
classes:
- class_name: Vector2D
# - DESCRIPTION ------------------------
doc: >
2019-06-05 21:05:57 +08:00
Vector 2D helper class
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables:
- var_name: x
type: float
2019-05-03 19:13:41 +08:00
- var_name: 'y'
type: float
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods:
2019-07-01 23:46:27 +08:00
- def_name: __init__
params:
- param_name: x
type: float
default: 0.0
- param_name: y
type: float
default: 0.0
doc: >
# --------------------------------------
2019-06-05 21:05:57 +08:00
- def_name: __add__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector2D
2019-06-05 21:05:57 +08:00
# --------------------------------------
- def_name: __mul__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector2D
2019-06-05 21:05:57 +08:00
# --------------------------------------
- def_name: __sub__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector2D
2019-06-05 21:05:57 +08:00
# --------------------------------------
- def_name: __truediv__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector2D
2019-06-05 21:05:57 +08:00
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name: __eq__
params:
2019-06-05 21:05:57 +08:00
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector2D
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name: __ne__
params:
2019-06-05 21:05:57 +08:00
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector2D
# --------------------------------------
- def_name: __self__
doc: >
2019-05-03 19:13:41 +08:00
# --------------------------------------
2019-06-05 21:05:57 +08:00
2019-05-03 19:13:41 +08:00
- class_name: Vector3D
# - DESCRIPTION ------------------------
doc: >
2019-06-05 21:05:57 +08:00
Vector 3D helper class
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables:
- var_name: x
type: float
2019-05-03 19:13:41 +08:00
- var_name: 'y'
type: float
2019-05-03 19:13:41 +08:00
- var_name: z
type: float
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods:
2019-07-01 23:46:27 +08:00
- def_name: __init__
params:
- param_name: x
type: float
default: 0.0
- param_name: 'y'
type: float
default: 0.0
- param_name: z
type: float
default: 0.0
# --------------------------------------
- def_name: __init__
params:
- param_name: rhs
type: carla.Location
# --------------------------------------
2019-06-05 21:05:57 +08:00
- def_name: __add__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector3D
2019-06-05 21:05:57 +08:00
# --------------------------------------
- def_name: __mul__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector3D
2019-06-05 21:05:57 +08:00
# --------------------------------------
- def_name: __sub__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector3D
2019-06-05 21:05:57 +08:00
# --------------------------------------
- def_name: __truediv__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector3D
2019-06-05 21:05:57 +08:00
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name: __eq__
params:
2019-06-05 21:05:57 +08:00
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector3D
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name: __ne__
params:
2019-06-05 21:05:57 +08:00
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Vector3D
# --------------------------------------
- def_name: __str__
doc: >
2019-05-03 19:13:41 +08:00
# --------------------------------------
- class_name: Location
2019-06-05 21:05:57 +08:00
parent: carla.Vector3D
# - DESCRIPTION ------------------------
2019-05-03 19:13:41 +08:00
doc: >
Represents a location in the world
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables:
- var_name: x
type: float
2019-05-03 19:13:41 +08:00
- var_name: 'y'
type: float
2019-05-03 19:13:41 +08:00
- var_name: z
type: float
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods:
2019-07-01 23:46:27 +08:00
- def_name: __init__
params:
- param_name: x
type: float
default: 0.0
- param_name: 'y'
type: float
default: 0.0
- param_name: z
type: float
default: 0.0
doc: >
# --------------------------------------
- def_name: __init__
params:
- param_name: rhs
type: carla.Vector3D
doc: >
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name: distance
params:
- param_name: location
type: carla.Location
doc: >
The Location from where to compute the distance
return: float
2019-05-03 19:13:41 +08:00
doc: >
Computes the Euclidean distance between the current location to another one
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name: __eq__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Location
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name: __ne__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Location
# --------------------------------------
- def_name: __str__
doc: >
2019-05-03 19:13:41 +08:00
# --------------------------------------
- class_name: Rotation
# - DESCRIPTION ------------------------
doc: >
Class that represents a 3D rotation.
![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))_
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables:
- var_name: pitch
type: float
2019-05-03 19:13:41 +08:00
- var_name: yaw
type: float
2019-05-03 19:13:41 +08:00
- var_name: roll
type: float
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods:
2019-07-01 23:46:27 +08:00
- def_name: __init__
params:
- param_name: pitch
type: float
default: 0.0
- param_name: yaw
type: float
default: 0.0
- param_name: roll
type: float
default: 0.0
doc: >
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name: get_forward_vector
params:
return: carla.Vector3D
2019-05-03 19:13:41 +08:00
doc: >
Computes a forward vector using the current rotation
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name: __eq__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Rotation
2019-05-03 19:13:41 +08:00
doc: >
# --------------------------------------
- def_name: __ne__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Rotation
doc: >
# --------------------------------------
- def_name: __str__
2019-05-03 19:13:41 +08:00
doc: >
# --------------------------------------
- class_name: Transform
# - DESCRIPTION ------------------------
doc: >
Defines a transformation without scaling.
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables:
- var_name: location
type: carla.Location
2019-05-03 19:13:41 +08:00
- var_name: rotation
type: carla.Rotation
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods:
2019-07-01 23:46:27 +08:00
- def_name: __init__
params:
- param_name: location
type: carla.Location
- param_name: rotation
type: carla.Rotation
doc: >
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name: transform
params:
- param_name: in_point
type: carla.Location
doc: >
Location in the space to which the transformation will be applied
2019-05-03 19:13:41 +08:00
doc: >
Transform a 3D point using the current transformation
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name: get_forward_vector
2019-07-01 23:46:27 +08:00
return_type: carla.Vector3D
2019-05-03 19:13:41 +08:00
doc: >
Computes a forward vector using the rotation of the current transformation
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name: __eq__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Transform
2019-05-03 19:13:41 +08:00
doc: >
# --------------------------------------
- def_name: __ne__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Transform
doc: >
# --------------------------------------
- def_name: __str__
2019-05-03 19:13:41 +08:00
doc: >
# --------------------------------------
- class_name: BoundingBox
# - DESCRIPTION ------------------------
doc: >
Bounding box helper class.
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables:
- var_name: location
type: carla.Location
2019-05-03 19:13:41 +08:00
doc: >
The center of the bounding box in the world
2019-05-03 19:13:41 +08:00
- var_name: extent
type: carla.Vector3D
2019-05-03 19:13:41 +08:00
doc: >
Contains the vector from the center of the bounding box to one of the vertex of the box.
So, if you want to know the _X bounding box size_, you can just do `extent.x * 2`
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods:
2019-07-01 23:46:27 +08:00
- def_name: __init__
params:
- param_name: location
type: carla.Location
- param_name: extent
type: carla.Vector3D
doc: >
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name: __eq__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.BoundingBox
2019-05-03 19:13:41 +08:00
doc: >
# --------------------------------------
- def_name: __ne__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.BoundingBox
doc: >
# --------------------------------------
- def_name: __str__
2019-05-03 19:13:41 +08:00
doc: >
# --------------------------------------
- class_name: GeoLocation
# - DESCRIPTION ------------------------
doc: >
Contains geolocation simulated data
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables:
- var_name: latitude
type: float
2019-05-03 19:13:41 +08:00
- var_name: longitude
type: float
2019-05-03 19:13:41 +08:00
- var_name: altitude
type: float
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods:
2019-07-01 23:46:27 +08:00
- def_name: __init__
params:
- param_name: latitude
type: float
default: 0.0
- param_name: longitude
type: float
default: 0.0
- param_name: altitude
type: float
default: 0.0
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name: __eq__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Geolocation
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name: __ne__
params:
- param_name: other
2019-07-01 23:46:27 +08:00
type: carla.Geolocation
# --------------------------------------
- def_name: __str__
params:
2019-05-03 19:13:41 +08:00
# --------------------------------------
2019-05-03 18:18:02 +08:00
...