2019-05-03 18:18:02 +08:00
|
|
|
---
|
|
|
|
- module_name: carla
|
|
|
|
doc: >
|
2019-05-03 20:56:18 +08:00
|
|
|
# - CLASSES ------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
classes:
|
2019-05-03 20:56:18 +08:00
|
|
|
- class_name: SensorData
|
2019-05-03 18:18:02 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-03 22:18:21 +08:00
|
|
|
Base class for all the objects containing data generated by a sensor.
|
2019-05-03 18:18:02 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
2019-07-02 19:10:28 +08:00
|
|
|
- var_name: frame
|
2019-07-04 17:12:14 +08:00
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Frame count when the data was generated.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: timestamp
|
2019-07-04 17:12:14 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Simulation-time when the data was generated.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: transform
|
2019-07-04 17:12:14 +08:00
|
|
|
type: carla.Transform
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Sensor's transform when the data was generated.
|
2019-07-03 00:32:23 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
|
|
|
|
- class_name: ColorConverter
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-05 20:22:22 +08:00
|
|
|
Class that defines the color converter options.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: Raw
|
|
|
|
doc: >
|
|
|
|
- var_name: Depth
|
|
|
|
doc: >
|
|
|
|
- var_name: LogarithmicDepth
|
|
|
|
doc: >
|
|
|
|
- var_name: CityScapesPalette
|
|
|
|
doc: >
|
|
|
|
|
|
|
|
- class_name: Image
|
2019-06-05 21:05:57 +08:00
|
|
|
parent: carla.SensorData
|
2019-05-03 20:56:18 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-05 20:22:22 +08:00
|
|
|
Class that defines an image of 32-bit BGRA colors.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: width
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-03 22:17:51 +08:00
|
|
|
Image width in pixels.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: height
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-03 22:17:51 +08:00
|
|
|
Image height in pixels
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: fov
|
2019-07-03 22:18:21 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-03 22:17:51 +08:00
|
|
|
Horizontal field of view of the image in degrees.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: raw_data
|
2019-07-03 22:18:21 +08:00
|
|
|
type: bytes
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: convert
|
2019-07-02 19:10:28 +08:00
|
|
|
params:
|
|
|
|
- param_name: color_converter
|
|
|
|
type: carla.ColorConverter
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Convert the image with the applied conversion.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: save_to_disk
|
2019-07-02 19:10:28 +08:00
|
|
|
params:
|
|
|
|
- param_name: path
|
|
|
|
type: str
|
2019-08-03 02:15:14 +08:00
|
|
|
doc: >
|
|
|
|
Path where it will be saved
|
2019-07-02 19:10:28 +08:00
|
|
|
- param_name: color_converter
|
|
|
|
type: carla.ColorConverter
|
|
|
|
default: Raw
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Save the image to disk.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __len__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __iter__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __getitem__
|
2019-07-02 19:10:28 +08:00
|
|
|
params:
|
|
|
|
- param_name: pos
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __setitem__
|
2019-07-02 19:10:28 +08:00
|
|
|
params:
|
|
|
|
- param_name: pos
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-07-02 19:10:28 +08:00
|
|
|
- param_name: color
|
|
|
|
type: carla.Color
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __str__
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
- class_name: LidarMeasurement
|
2019-06-05 21:05:57 +08:00
|
|
|
parent: carla.SensorData
|
2019-05-03 20:56:18 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Lidar sensor measurement data.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: horizontal_angle
|
2019-07-03 22:18:21 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Horizontal angle that the Lidar has rotated
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: channels
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Number of lasers
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: raw_data
|
2019-07-03 22:18:21 +08:00
|
|
|
type: bytes
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
List of 3D points
|
2019-05-03 18:18:02 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
2019-05-03 20:56:18 +08:00
|
|
|
- def_name: get_point_count
|
2019-07-02 19:10:28 +08:00
|
|
|
params:
|
|
|
|
- param_name: channel
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-05-03 18:18:02 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- def_name: save_to_disk
|
2019-07-02 19:10:28 +08:00
|
|
|
params:
|
|
|
|
- param_name: path
|
|
|
|
type: str
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __len__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __iter__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __getitem__
|
2019-07-02 19:10:28 +08:00
|
|
|
params:
|
|
|
|
- param_name: pos
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __setitem__
|
2019-07-02 19:10:28 +08:00
|
|
|
params:
|
|
|
|
- param_name: pos
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-07-02 19:10:28 +08:00
|
|
|
- param_name: location
|
|
|
|
type: carla.Location
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __str__
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
- class_name: CollisionEvent
|
2019-06-05 21:05:57 +08:00
|
|
|
parent: carla.SensorData
|
2019-05-03 20:56:18 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-05 20:22:22 +08:00
|
|
|
Class that defines a registered collision.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: actor
|
2019-07-02 19:10:28 +08:00
|
|
|
type: carla.Actor
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Get "self" actor. Actor that measured the collision.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: other_actor
|
2019-07-02 19:10:28 +08:00
|
|
|
type: carla.Actor
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Get the actor to which we collided.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: normal_impulse
|
2019-07-02 19:10:28 +08:00
|
|
|
type: carla.Vector3D
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Normal impulse result of the collision.
|
2019-05-03 20:56:18 +08:00
|
|
|
|
|
|
|
- class_name: ObstacleDetectionEvent
|
2019-06-05 21:05:57 +08:00
|
|
|
parent: carla.SensorData
|
2019-05-03 20:56:18 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Obstacle detection sensor data
|
2019-05-03 20:56:18 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: actor
|
2019-07-02 19:10:28 +08:00
|
|
|
type: carla.Actor
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Get "self" actor. Actor that measured the collision.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: other_actor
|
2019-07-02 19:10:28 +08:00
|
|
|
type: carla.Actor
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Get the actor to which we collided.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: distance
|
2019-07-02 19:10:28 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Get obstacle distance.
|
2019-07-03 00:32:23 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
|
|
|
|
- class_name: LaneInvasionEvent
|
2019-06-05 21:05:57 +08:00
|
|
|
parent: carla.SensorData
|
2019-05-03 20:56:18 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Lane invasion sensor data.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: actor
|
2019-07-02 19:10:28 +08:00
|
|
|
type: carla.Actor
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
Get "self" actor. Actor that invaded another lane.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: crossed_lane_markings
|
2019-07-02 19:10:28 +08:00
|
|
|
type: list(carla.LaneMarking)
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
List of lane markings that have been crossed.
|
2019-07-03 00:32:23 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
2019-07-02 19:10:28 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
|
|
|
|
- class_name: GnssEvent
|
2019-06-05 21:05:57 +08:00
|
|
|
parent: carla.SensorData
|
2019-05-03 20:56:18 +08:00
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Gnss sensor data
|
2019-05-03 20:56:18 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: latitude
|
2019-07-02 19:10:28 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
North/South value of a point on the map.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: longitude
|
2019-07-02 19:10:28 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
West/East value of a point on the map.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: altitude
|
2019-07-02 19:10:28 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-08-03 02:15:14 +08:00
|
|
|
Height regarding ground level.
|
2019-07-03 00:32:23 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
...
|