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
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: 'y'
|
2019-06-07 18:58:00 +08:00
|
|
|
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
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: 'y'
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: z
|
2019-06-07 18:58:00 +08:00
|
|
|
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: >
|
2019-06-07 18:58:00 +08:00
|
|
|
Represents a location in the world
|
2019-05-03 19:13:41 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: x
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: 'y'
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: z
|
2019-06-07 18:58:00 +08:00
|
|
|
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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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: >
|
2019-06-07 18:58:00 +08:00
|
|
|
Computes the Euclidean distance between the current location to another one
|
2019-05-03 19:13:41 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __eq__
|
|
|
|
params:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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: >
|
2019-06-07 18:58:00 +08:00
|
|
|
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
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: yaw
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: roll
|
2019-06-07 18:58:00 +08:00
|
|
|
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:
|
2019-06-07 18:58:00 +08:00
|
|
|
return: carla.Vector3D
|
2019-05-03 19:13:41 +08:00
|
|
|
doc: >
|
2019-06-07 18:58:00 +08:00
|
|
|
Computes a forward vector using the current rotation
|
2019-05-03 19:13:41 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __eq__
|
|
|
|
params:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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: >
|
2019-06-07 18:58:00 +08:00
|
|
|
Defines a transformation without scaling.
|
2019-05-03 19:13:41 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: location
|
2019-06-07 18:58:00 +08:00
|
|
|
type: carla.Location
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: rotation
|
2019-06-07 18:58:00 +08:00
|
|
|
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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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: >
|
2019-06-07 18:58:00 +08:00
|
|
|
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: >
|
2019-06-07 18:58:00 +08:00
|
|
|
Computes a forward vector using the rotation of the current transformation
|
2019-05-03 19:13:41 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __eq__
|
|
|
|
params:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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: >
|
2019-06-07 18:58:00 +08:00
|
|
|
Bounding box helper class.
|
2019-05-03 19:13:41 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: location
|
2019-06-07 18:58:00 +08:00
|
|
|
type: carla.Location
|
2019-05-03 19:13:41 +08:00
|
|
|
doc: >
|
2019-06-07 18:58:00 +08:00
|
|
|
The center of the bounding box in the world
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: extent
|
2019-06-07 18:58:00 +08:00
|
|
|
type: carla.Vector3D
|
2019-05-03 19:13:41 +08:00
|
|
|
doc: >
|
2019-06-07 18:58:00 +08:00
|
|
|
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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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: >
|
2019-06-07 18:58:00 +08:00
|
|
|
Contains geolocation simulated data
|
2019-05-03 19:13:41 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: latitude
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: longitude
|
2019-06-07 18:58:00 +08:00
|
|
|
type: float
|
2019-05-03 19:13:41 +08:00
|
|
|
- var_name: altitude
|
2019-06-07 18:58:00 +08:00
|
|
|
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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- 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:
|
2019-06-07 18:58:00 +08:00
|
|
|
- param_name: other
|
2019-07-01 23:46:27 +08:00
|
|
|
type: carla.Geolocation
|
2019-06-07 18:58:00 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __str__
|
|
|
|
params:
|
2019-05-03 19:13:41 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
...
|