2019-05-03 18:18:02 +08:00
---
- module_name : carla
2019-05-03 19:13:41 +08:00
classes :
- class_name : Vector2D
# - DESCRIPTION ------------------------
doc : >
2020-05-22 18:17:38 +08:00
Helper class to perform 2D operations.
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables :
- var_name : x
2019-06-07 18:58:00 +08:00
type : float
2020-02-24 20:58:54 +08:00
doc : >
2020-05-22 18:17:38 +08:00
X-axis value.
2019-05-03 19:13:41 +08:00
- var_name : 'y'
2019-06-07 18:58:00 +08:00
type : float
2020-02-24 20:58:54 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Y -axis value.
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods :
2019-07-01 23:46:27 +08:00
- def_name : __init__
params :
2020-01-23 19:09:38 +08:00
- param_name : x
2019-07-01 23:46:27 +08:00
type : float
default : 0.0
2020-01-23 19:09:38 +08:00
- param_name : y
2019-07-01 23:46:27 +08:00
type : float
default : 0.0
# --------------------------------------
2021-08-06 18:24:14 +08:00
- def_name : length
return : float
params :
doc : >
Computes the length of the vector.
# --------------------------------------
- def_name : squared_length
return : float
params :
doc : >
Computes the squared length of the vector.
# --------------------------------------
- def_name : make_unit_vector
return : carla.Vector3D
params :
doc : >
Returns a vector with the same direction and unitary length.
# --------------------------------------
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
# --------------------------------------
2020-02-24 20:58:54 +08:00
- def_name : __sub__
2019-06-05 21:05:57 +08:00
params :
- param_name : other
2019-07-01 23:46:27 +08:00
type : carla.Vector2D
2019-06-05 21:05:57 +08:00
# --------------------------------------
2020-02-24 20:58:54 +08:00
- def_name : __mul__
2019-06-05 21:05:57 +08:00
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__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
params :
2019-06-05 21:05:57 +08:00
- param_name : other
2019-07-01 23:46:27 +08:00
type : carla.Vector2D
2020-02-24 20:58:54 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Returns __True__ if values for every axis are equal.
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name : __ne__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
params :
2020-02-24 20:58:54 +08:00
- param_name : bool
2019-07-01 23:46:27 +08:00
type : carla.Vector2D
2020-02-24 20:58:54 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Returns __True__ if the value for any axis is different.
2019-07-01 23:46:27 +08:00
# --------------------------------------
2020-02-24 20:58:54 +08:00
- def_name : __str__
return : str
2019-07-01 23:46:27 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Returns the axis values for the vector parsed as string.
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 : >
2020-05-22 18:17:38 +08:00
Helper class to perform 3D operations.
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables :
- var_name : x
2019-06-07 18:58:00 +08:00
type : float
2020-02-24 20:58:54 +08:00
doc : >
X-axis value.
2019-05-03 19:13:41 +08:00
- var_name : 'y'
2019-06-07 18:58:00 +08:00
type : float
2020-02-24 20:58:54 +08:00
doc : >
Y -axis value.
2019-05-03 19:13:41 +08:00
- var_name : z
2019-06-07 18:58:00 +08:00
type : float
2020-02-24 20:58:54 +08:00
doc : >
Z-axis value.
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
# --------------------------------------
2021-08-06 18:24:14 +08:00
- def_name : length
return : float
params :
doc : >
Computes the length of the vector.
# --------------------------------------
- def_name : squared_length
return : float
params :
doc : >
Computes the squared length of the vector.
# --------------------------------------
- def_name : make_unit_vector
return : carla.Vector3D
params :
doc : >
Returns a vector with the same direction and unitary length.
# --------------------------------------
- def_name : cross
return : carla.Vector3D
params :
- param_name : vector
type : carla.Vector3D
doc : >
Computes the cross product between two vectors.
# --------------------------------------
- def_name : dot
return : float
params :
- param_name : vector
type : carla.Vector3D
doc : >
Computes the dot product between two vectors.
# --------------------------------------
- def_name : distance
return : float
params :
- param_name : vector
type : carla.Vector3D
doc : >
Computes the distance between two vectors.
# --------------------------------------
- def_name : distance_squared
return : float
params :
- param_name : vector
type : carla.Vector3D
doc : >
Computes the squared distance between two vectors.
# --------------------------------------
- def_name : dot_2d
return : float
params :
- param_name : vector
type : carla.Vector3D
doc : >
Computes the 2-dimensional dot product between two vectors.
# --------------------------------------
- def_name : distance_2d
return : float
params :
- param_name : vector
type : carla.Vector3D
doc : >
Computes the 2-dimensional distance between two vectors.
# --------------------------------------
- def_name : distance_squared_2d
return : float
params :
- param_name : vector
type : carla.Vector3D
doc : >
Computes the 2-dimensional squared distance between two vectors.
# --------------------------------------
2023-04-14 14:43:38 +08:00
- def_name : get_vector_angle
return : float
params :
- param_name : vector
type : carla.Vector3D
doc : >
Computes the angle between a pair of 3D vectors in radians.
# --------------------------------------
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
# --------------------------------------
2020-02-24 20:58:54 +08:00
- def_name : __sub__
2019-06-05 21:05:57 +08:00
params :
- param_name : other
2019-07-01 23:46:27 +08:00
type : carla.Vector3D
2019-06-05 21:05:57 +08:00
# --------------------------------------
2020-02-24 20:58:54 +08:00
- def_name : __mul__
2019-06-05 21:05:57 +08:00
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
2020-02-24 20:58:54 +08:00
return : bool
doc : >
2020-03-30 17:18:13 +08:00
Returns __True__ if values for every axis are equal.
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
2020-02-24 20:58:54 +08:00
return : bool
doc : >
2020-05-22 18:17:38 +08:00
Returns __True__ if the value for any axis is different.
2019-07-01 23:46:27 +08:00
# --------------------------------------
- def_name : __str__
2020-02-24 20:58:54 +08:00
return : str
2019-07-01 23:46:27 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Returns the axis values for the vector parsed as string.
2019-05-03 19:13:41 +08:00
# --------------------------------------
2021-07-29 22:21:02 +08:00
- def_name : __abs__
return : carla.Vector3D
doc : >
Returns a Vector3D with the absolute value of the components x, y and z.
# --------------------------------------
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 : >
2020-02-24 20:58:54 +08:00
Represents a spot 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
2020-09-14 22:58:48 +08:00
var_units : meters
2020-02-24 20:58:54 +08:00
doc : >
2020-09-14 22:58:48 +08:00
Distance from origin to spot on X axis.
2019-05-03 19:13:41 +08:00
- var_name : 'y'
2019-06-07 18:58:00 +08:00
type : float
2020-09-14 22:58:48 +08:00
var_units : meters
2020-02-24 20:58:54 +08:00
doc : >
2020-09-14 22:58:48 +08:00
Distance from origin to spot on Y axis.
2019-05-03 19:13:41 +08:00
- var_name : z
2019-06-07 18:58:00 +08:00
type : float
2020-09-14 22:58:48 +08:00
var_units : meters
2020-02-24 20:58:54 +08:00
doc : >
2020-09-14 22:58:48 +08:00
Distance from origin to spot on Z axis.
2019-05-03 19:13:41 +08:00
# - METHODS ----------------------------
methods :
2019-07-01 23:46:27 +08:00
- def_name : __init__
params :
2020-01-23 19:09:38 +08:00
- param_name : x
2019-07-01 23:46:27 +08:00
type : float
default : 0.0
- param_name : 'y'
type : float
default : 0.0
2020-01-23 19:09:38 +08:00
- param_name : z
2019-07-01 23:46:27 +08:00
type : float
default : 0.0
2019-05-03 19:13:41 +08:00
# --------------------------------------
2020-03-30 17:18:13 +08:00
- def_name : distance
params :
- param_name : location
type : carla.Location
doc : >
The other point to compute the distance with.
return : float
2020-09-14 22:58:48 +08:00
return_units : meters
2020-03-30 17:18:13 +08:00
doc : >
2020-09-14 22:58:48 +08:00
Returns Euclidean distance from this location to another one.
2020-03-30 17:18:13 +08:00
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name : __eq__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
params :
2019-06-07 18:58:00 +08:00
- param_name : other
2019-07-01 23:46:27 +08:00
type : carla.Location
2020-02-24 20:58:54 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Returns __True__ if both locations are the same point in space.
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name : __ne__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
params :
2019-06-07 18:58:00 +08:00
- param_name : other
2019-07-01 23:46:27 +08:00
type : carla.Location
2020-02-24 20:58:54 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Returns __True__ if both locations are different points in space.
2019-07-01 23:46:27 +08:00
# --------------------------------------
- def_name : __str__
2020-02-24 20:58:54 +08:00
return : str
2019-07-01 23:46:27 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Parses the axis' values to string.
2020-02-24 20:58:54 +08:00
# --------------------------------------
2021-07-29 22:21:02 +08:00
- def_name : __abs__
return : carla.Location
doc : >
Returns a Location with the absolute value of the components x, y and z.
# --------------------------------------
2019-05-03 19:13:41 +08:00
- class_name : Rotation
# - DESCRIPTION ------------------------
doc : >
2020-09-17 04:28:30 +08:00
Class that represents a 3D rotation and therefore, an orientation in space. CARLA uses the Unreal Engine coordinates system. This is a Z-up left-handed system. <br>
2021-08-06 18:24:14 +08:00
2020-09-17 04:28:30 +08:00
<br>The constructor method follows a specific order of declaration : `(pitch, yaw, roll)`, which corresponds to `(Y-rotation,Z-rotation,X-rotation)`. <br>
<br>![UE4_Rotation](https://d26ilriwvtzlb.cloudfront.net/8/83/BRMC_9.jpg)
2020-09-14 23:48:20 +08:00
*Unreal Engine's coordinates system*
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables :
- var_name : pitch
2019-06-07 18:58:00 +08:00
type : float
2020-09-14 22:58:48 +08:00
var_units : degrees
2019-08-03 02:15:14 +08:00
doc : >
2020-09-14 22:58:48 +08:00
Y -axis rotation angle.
2019-05-03 19:13:41 +08:00
- var_name : yaw
2019-06-07 18:58:00 +08:00
type : float
2020-09-14 22:58:48 +08:00
var_units : degrees
2019-08-03 02:15:14 +08:00
doc : >
2020-09-14 22:58:48 +08:00
Z-axis rotation angle.
2019-05-03 19:13:41 +08:00
- var_name : roll
2019-06-07 18:58:00 +08:00
type : float
2020-09-14 22:58:48 +08:00
var_units : degrees
2019-08-03 02:15:14 +08:00
doc : >
2020-09-14 22:58:48 +08:00
X-axis rotation angle.
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
2020-09-14 22:58:48 +08:00
param_units : degrees
2020-02-24 20:58:54 +08:00
doc : >
2020-09-14 22:58:48 +08:00
Y -axis rotation angle.
2019-07-01 23:46:27 +08:00
- param_name : yaw
type : float
default : 0.0
2020-09-14 22:58:48 +08:00
param_units : degrees
2020-02-24 20:58:54 +08:00
doc : >
2020-09-14 22:58:48 +08:00
Z-axis rotation angle.
2019-07-01 23:46:27 +08:00
- param_name : roll
type : float
default : 0.0
2020-09-14 22:58:48 +08:00
param_units : degrees
2020-02-24 20:58:54 +08:00
doc : >
2020-09-14 22:58:48 +08:00
X-axis rotation angle.
2021-08-06 18:24:14 +08:00
warning : The declaration order is different in CARLA <code>(pitch,yaw,roll)</code>, and in the Unreal Engine Editor <code>(roll,pitch,yaw)</code>. When working in a build from source, don't mix up the axes' rotations.
2019-07-01 23:46:27 +08:00
# --------------------------------------
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 : >
2020-09-14 22:58:48 +08:00
Computes the vector pointing forward according to the rotation of the object.
2020-05-22 18:17:38 +08:00
# --------------------------------------
- def_name : get_right_vector
params :
return : carla.Vector3D
doc : >
2020-09-14 22:58:48 +08:00
Computes the vector pointing to the right according to the rotation of the object.
2020-05-22 18:17:38 +08:00
# --------------------------------------
- def_name : get_up_vector
params :
return : carla.Vector3D
doc : >
2020-09-14 22:58:48 +08:00
Computes the vector pointing upwards according to the rotation of the object.
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name : __eq__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
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 : >
2020-09-14 22:58:48 +08:00
Returns __True__ if both rotations represent the same orientation for every axis.
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.Rotation
2020-02-24 20:58:54 +08:00
return : bool
2019-07-01 23:46:27 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Returns __True__ if both rotations represent the same orientation for every axis.
# --------------------------------------
2019-07-01 23:46:27 +08:00
- def_name : __str__
2019-05-03 19:13:41 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Parses the axis' orientations to string.
2019-05-03 19:13:41 +08:00
# --------------------------------------
- class_name : Transform
# - DESCRIPTION ------------------------
doc : >
2020-05-22 18:17:38 +08:00
Class that defines a transformation, a combination of location and rotation, 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
2020-02-24 20:58:54 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Describes a point in the coordinate system.
2019-05-03 19:13:41 +08:00
- var_name : rotation
2019-06-07 18:58:00 +08:00
type : carla.Rotation
2020-09-14 23:48:20 +08:00
var_units : degrees (pitch, yaw, roll)
2020-02-24 20:58:54 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Describes a rotation for an object according to Unreal Engine's axis system.
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
2020-09-14 23:48:20 +08:00
param_units : degrees (pitch, yaw, roll)
2019-05-03 19:13:41 +08:00
# --------------------------------------
2020-03-30 17:18:13 +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.
doc : >
2020-07-15 23:20:52 +08:00
Translates a 3D point from local to global coordinates using the current transformation as frame of reference.
2020-03-30 17:18:13 +08:00
# --------------------------------------
2023-04-14 14:43:38 +08:00
- def_name : transform_vector
params :
- param_name : in_vector
type : carla.Vector3D
doc : >
Vector to which the transformation will be applied.
doc : >
Rotates a vector using the current transformation as frame of reference, without applying translation. Use this to transform, for example, a velocity.
# --------------------------------------
2020-03-30 17:18:13 +08:00
- def_name : get_forward_vector
return : carla.Vector3D
doc : >
2020-09-14 22:58:48 +08:00
Computes a forward vector using the rotation of the object.
2020-03-30 17:18:13 +08:00
# --------------------------------------
2020-05-22 18:17:38 +08:00
- def_name : get_right_vector
return : carla.Vector3D
doc : >
2023-04-14 14:43:38 +08:00
Computes a right vector using the rotation of the object.
2020-05-22 18:17:38 +08:00
# --------------------------------------
- def_name : get_up_vector
return : carla.Vector3D
doc : >
2020-09-14 22:58:48 +08:00
Computes an up vector using the rotation of the object.
2020-05-22 18:17:38 +08:00
# --------------------------------------
2020-07-03 17:53:45 +08:00
- def_name : get_matrix
return : list(list(float))
doc : >
Computes the 4-matrix representation of the transformation.
# --------------------------------------
- def_name : get_inverse_matrix
return : list(list(float))
doc : >
Computes the 4-matrix representation of the inverse transformation.
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name : __eq__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
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 : >
2020-03-30 17:18:13 +08:00
Returns __True__ if both location and rotation are equal for this and `other`.
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name : __ne__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
params :
2019-06-07 18:58:00 +08:00
- param_name : other
2019-07-01 23:46:27 +08:00
type : carla.Transform
doc : >
2020-03-30 17:18:13 +08:00
Returns __True__ if any location and rotation are not equal for this and `other`.
2019-07-01 23:46:27 +08:00
# --------------------------------------
- def_name : __str__
2020-02-24 20:58:54 +08:00
return : str
doc : >
2020-05-22 18:17:38 +08:00
Parses both location and rotation to string.
2020-02-24 20:58:54 +08:00
# --------------------------------------
2019-05-03 19:13:41 +08:00
- class_name : BoundingBox
# - DESCRIPTION ------------------------
doc : >
2020-10-15 22:48:48 +08:00
Bounding boxes contain the geometry of an actor or an element in the scene. They can be used by carla.DebugHelper or a carla.Client to draw their shapes for debugging. Check out the snipet in carla.DebugHelper.draw_box where a snapshot of the world is used to draw bounding boxes for traffic lights.
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables :
- var_name : extent
2019-06-07 18:58:00 +08:00
type : carla.Vector3D
2020-09-14 22:58:48 +08:00
var_units : meters
2019-05-03 19:13:41 +08:00
doc : >
2020-05-22 18:17:38 +08:00
Vector from the center of the box to one vertex. The value in each axis equals half the size of the box for that axis.
`extent.x * 2` would return the size of the box in the X-axis.
2020-03-30 17:18:13 +08:00
- var_name : location
type : carla.Location
2020-09-14 22:58:48 +08:00
var_units : meters
2020-03-30 17:18:13 +08:00
doc : >
2020-09-16 23:33:51 +08:00
The center of the bounding box.
- var_name : rotation
type : carla.Rotation
doc : >
The orientation of the bounding box.
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
2020-09-14 22:58:48 +08:00
var_units : meters
2020-02-24 20:58:54 +08:00
doc : >
2021-08-06 18:24:14 +08:00
Center of the box, relative to its parent.
2019-07-01 23:46:27 +08:00
- param_name : extent
type : carla.Vector3D
2020-09-14 22:58:48 +08:00
param_units : meters
2020-02-24 20:58:54 +08:00
doc : >
Vector containing half the size of the box for every axis.
2019-07-01 23:46:27 +08:00
# --------------------------------------
2020-01-23 19:09:38 +08:00
- def_name : contains
return : bool
params :
- param_name : world_point
type : carla.Location
2020-09-14 22:58:48 +08:00
param_units : meters
2020-01-23 19:09:38 +08:00
doc : >
2020-01-31 23:48:40 +08:00
The point in world space to be checked.
2020-01-23 19:09:38 +08:00
- param_name : transform
type : carla.Transform
doc : >
2020-01-31 23:48:40 +08:00
Contains location and rotation needed to convert this object's local space to world space.
2020-01-23 19:09:38 +08:00
doc : >
2020-01-31 23:48:40 +08:00
Returns **True** if a point passed in world space is inside this bounding box.
2020-01-23 19:09:38 +08:00
# --------------------------------------
- def_name : get_local_vertices
2020-01-31 23:48:40 +08:00
return : list(carla.Location)
2020-01-23 19:09:38 +08:00
doc : >
2020-01-31 23:48:40 +08:00
Returns a list containing the locations of this object's vertices in local space.
2020-01-23 19:09:38 +08:00
# --------------------------------------
- def_name : get_world_vertices
2020-01-31 23:48:40 +08:00
return : list(carla.Location)
2020-01-23 19:09:38 +08:00
params :
- param_name : transform
type : carla.Transform
doc : >
2020-01-31 23:48:40 +08:00
Contains location and rotation needed to convert this object's local space to world space.
2020-01-23 19:09:38 +08:00
doc : >
2020-01-31 23:48:40 +08:00
Returns a list containing the locations of this object's vertices in world space.
2020-01-23 19:09:38 +08:00
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name : __eq__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
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 : >
2020-02-24 20:58:54 +08:00
Returns true if both location and extent are equal for this and `other`.
2019-05-03 19:13:41 +08:00
# --------------------------------------
- def_name : __ne__
2020-02-24 20:58:54 +08:00
return : bool
2019-05-03 19:13:41 +08:00
params :
2019-06-07 18:58:00 +08:00
- param_name : other
2019-07-01 23:46:27 +08:00
type : carla.BoundingBox
doc : >
2020-02-24 20:58:54 +08:00
Returns true if either location or extent are different for this and `other`.
2019-07-01 23:46:27 +08:00
# --------------------------------------
- def_name : __str__
2020-02-24 20:58:54 +08:00
return : str
2019-05-03 19:13:41 +08:00
doc : >
2020-02-24 20:58:54 +08:00
Parses the location and extent of the bounding box to string.
2019-05-03 19:13:41 +08:00
# --------------------------------------
- class_name : GeoLocation
# - DESCRIPTION ------------------------
doc : >
2020-05-22 18:17:38 +08:00
Class that contains geographical coordinates simulated data. The carla.Map can convert simulation locations by using the <b><georeference></b> tag in the OpenDRIVE file.
2019-05-03 19:13:41 +08:00
# - PROPERTIES -------------------------
instance_variables :
- var_name : latitude
2019-06-07 18:58:00 +08:00
type : float
2020-09-14 22:58:48 +08:00
var_units : degrees
2019-08-03 02:15:14 +08:00
doc : >
North/South value of a point on the map.
2019-05-03 19:13:41 +08:00
- var_name : longitude
2019-06-07 18:58:00 +08:00
type : float
2020-09-14 22:58:48 +08:00
var_units : degrees
2019-08-03 02:15:14 +08:00
doc : >
West/East value of a point on the map.
2019-05-03 19:13:41 +08:00
- var_name : altitude
2019-06-07 18:58:00 +08:00
type : float
2020-09-14 22:58:48 +08:00
var_units : meters
2019-08-03 02:15:14 +08:00
doc : >
Height regarding ground level.
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
2020-09-14 22:58:48 +08:00
param_units : degrees
2019-07-01 23:46:27 +08:00
- param_name : longitude
type : float
default : 0.0
2020-09-14 22:58:48 +08:00
param_units : degrees
2019-07-01 23:46:27 +08:00
- param_name : altitude
type : float
default : 0.0
2020-09-14 22:58:48 +08:00
param_units : meters
2019-07-01 23:46:27 +08:00
# --------------------------------------
2019-05-03 19:13:41 +08:00
- def_name : __eq__
params :
2019-06-07 18:58:00 +08:00
- param_name : other
2019-09-03 00:23:33 +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-09-03 00:23:33 +08:00
type : carla.GeoLocation
2019-06-07 18:58:00 +08:00
# --------------------------------------
- def_name : __str__
2019-05-03 19:13:41 +08:00
# --------------------------------------
2019-05-03 18:18:02 +08:00
...