2019-05-03 18:18:02 +08:00
|
|
|
---
|
|
|
|
- module_name: carla
|
|
|
|
doc: >
|
2019-05-03 20:56:18 +08:00
|
|
|
# - CLASSES ------------------------------
|
|
|
|
classes:
|
|
|
|
- class_name: Timestamp
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
2019-07-01 23:46:27 +08:00
|
|
|
- var_name: frame
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-05 20:53:24 +08:00
|
|
|
The number of frames elapsed since the simulator was launched.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: elapsed_seconds
|
2019-07-01 23:46:27 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Simulated seconds elapsed since the beginning of the current episode.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: delta_seconds
|
2019-07-01 23:46:27 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-05 20:53:24 +08:00
|
|
|
Simulated seconds elapsed since the previous frame.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: platform_timestamp
|
2019-07-01 23:46:27 +08:00
|
|
|
type: float
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Time-stamp of the frame at which this measurement was taken, in seconds
|
|
|
|
as given by the OS.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
2019-07-01 23:46:27 +08:00
|
|
|
- def_name: __init__
|
|
|
|
params:
|
|
|
|
- param_name: frame
|
2019-07-03 22:18:21 +08:00
|
|
|
type: int
|
2019-07-01 23:46:27 +08:00
|
|
|
- param_name: elapsed_seconds
|
|
|
|
type: float
|
|
|
|
- param_name: delta_seconds
|
|
|
|
type: float
|
|
|
|
- param_name: platform_timestamp
|
|
|
|
type: float
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- def_name: __eq__
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: other
|
|
|
|
type: carla.Timestamp
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __ne__
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: other
|
|
|
|
type: carla.Timestamp
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __str__
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
- class_name: ActorList
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-05 20:22:22 +08:00
|
|
|
Class that provides access to actors.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: find
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: actor_id
|
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: filter
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: wildcard_pattern
|
|
|
|
type: str
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __getitem__
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: pos
|
2019-05-03 20:56:18 +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 20:56:18 +08:00
|
|
|
|
|
|
|
- class_name: WorldSettings
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: synchronous_mode
|
2019-07-04 21:50:10 +08:00
|
|
|
type: bool
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
- var_name: no_rendering_mode
|
2019-07-04 21:50:10 +08:00
|
|
|
type: bool
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-09 20:50:10 +08:00
|
|
|
- var_name: fixed_delta_seconds
|
|
|
|
type: float
|
|
|
|
doc: >
|
2019-05-03 20:56:18 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
2019-07-01 23:46:27 +08:00
|
|
|
- def_name: __init__
|
|
|
|
params:
|
|
|
|
- param_name: synchronous_mode
|
|
|
|
type: bool
|
|
|
|
default: false
|
|
|
|
doc: >
|
|
|
|
- param_name: no_rendering_mode
|
|
|
|
type: bool
|
|
|
|
default: false
|
|
|
|
doc: >
|
2019-07-09 20:50:10 +08:00
|
|
|
- param_name: fixed_delta_seconds
|
|
|
|
type: float
|
|
|
|
default: 0.0
|
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- def_name: __eq__
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: other
|
|
|
|
type: carla.Timestamp
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __ne__
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: other
|
|
|
|
type: carla.Timestamp
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-07-03 00:32:23 +08:00
|
|
|
- def_name: __str__
|
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
2019-07-01 23:46:27 +08:00
|
|
|
|
|
|
|
- class_name: AttachmentType
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-05 20:22:22 +08:00
|
|
|
Class that defines the attachment options.
|
2019-07-01 23:46:27 +08:00
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: Rigid
|
|
|
|
doc: >
|
|
|
|
- var_name: SpringArm
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
- class_name: World
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
|
|
|
# - PROPERTIES -------------------------
|
|
|
|
instance_variables:
|
|
|
|
- var_name: id
|
2019-07-02 21:02:39 +08:00
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
The id of the episode associated with this world.
|
2019-05-03 20:56:18 +08:00
|
|
|
- var_name: debug
|
2019-07-02 21:02:39 +08:00
|
|
|
type: carla.DebugHelper
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: get_blueprint_library
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.BlueprintLibrary
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-05 20:22:22 +08:00
|
|
|
Return the list of blueprints available in this world. These blueprints
|
2019-07-05 20:53:24 +08:00
|
|
|
can be used to spawn actors into the world.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_map
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.Map
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Return the map that describes this world.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_spectator
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.Actor
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Return the spectator actor. The spectator controls the view in the
|
|
|
|
simulator window.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_settings
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.WorldSettings
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: apply_settings
|
2019-07-06 00:55:26 +08:00
|
|
|
return: int
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: world_settings
|
|
|
|
type: carla.WorldSettings
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-06 00:55:26 +08:00
|
|
|
Returns the id of the frame when the settings took effect.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_weather
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.WeatherParameters
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Retrieve the weather parameters currently active in the world.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: set_weather
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: weather
|
|
|
|
type: carla.WeatherParameters
|
|
|
|
doc: >
|
|
|
|
Change the weather in the simulation.
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_snapshot
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.WorldSnapshot
|
2019-07-01 23:46:27 +08:00
|
|
|
doc: >
|
|
|
|
Return a snapshot of the world at this moment.
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_actor
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.Actor
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: actor_id
|
|
|
|
type: int
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Find actor by id, return nullptr if not found.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_actors
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.ActorList
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Return a list with all the actors currently present in the world.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: get_actors
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.ActorList
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: actor_ids
|
|
|
|
type: list(int)
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Return a list with the actors requested by ActorId.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: spawn_actor
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.Actor
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: blueprint
|
|
|
|
type: carla.BlueprintLibrary
|
|
|
|
doc: >
|
|
|
|
- param_name: transform
|
|
|
|
type: carla.Transform
|
|
|
|
doc: >
|
|
|
|
If attached to parent, transform acts like a relative_transform to the parent actor.
|
|
|
|
- param_name: attach_to
|
|
|
|
type: carla.Actor
|
|
|
|
default: None
|
|
|
|
doc: >
|
|
|
|
- param_name: attachment
|
|
|
|
type: carla.AttachmentType
|
|
|
|
default: Rigid
|
|
|
|
doc: >
|
|
|
|
doc: >
|
|
|
|
Spawn an actor into the world based on the blueprint provided at
|
|
|
|
transform. If a parent is provided, the actor is attached to
|
|
|
|
parent.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: try_spawn_actor
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.Actor
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: blueprint
|
|
|
|
type: carla.BlueprintLibrary
|
|
|
|
doc: >
|
|
|
|
- param_name: transform
|
|
|
|
type: carla.Transform
|
|
|
|
doc: >
|
|
|
|
If attached to parent, transform acts like a relative_transform to the parent actor.
|
|
|
|
- param_name: attach_to
|
|
|
|
type: carla.Actor
|
|
|
|
default: None
|
|
|
|
doc: >
|
|
|
|
- param_name: attachment
|
|
|
|
type: carla.AttachmentType
|
|
|
|
default: Rigid
|
|
|
|
doc: >
|
|
|
|
doc: >
|
|
|
|
Same as SpawnActor but return nullptr on failure instead of throwing an
|
|
|
|
exception.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: wait_for_tick
|
2019-07-03 00:32:23 +08:00
|
|
|
return: carla.WorldSnapshot
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: seconds
|
|
|
|
type: float
|
|
|
|
default: 10.0
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Block calling thread until a world tick is received.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
|
|
|
- def_name: on_tick
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: callback
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
2019-07-01 23:46:27 +08:00
|
|
|
Register a callback to be called every time a world tick is received.
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
2019-07-09 20:45:27 +08:00
|
|
|
- def_name: remove_on_tick
|
|
|
|
params:
|
|
|
|
- param_name: callback_id
|
|
|
|
doc: >
|
|
|
|
Removes on tick callbacks.
|
|
|
|
# --------------------------------------
|
2019-05-03 20:56:18 +08:00
|
|
|
- def_name: tick
|
2019-07-06 00:55:26 +08:00
|
|
|
return: int
|
2019-07-01 23:46:27 +08:00
|
|
|
doc: >
|
2019-07-06 00:55:26 +08:00
|
|
|
Synchronizes with the simulator and returns the id of the newly started frame (only has effect on
|
2019-07-01 23:46:27 +08:00
|
|
|
synchronous mode).
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: __str__
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
- class_name: DebugHelper
|
|
|
|
# - DESCRIPTION ------------------------
|
|
|
|
doc: >
|
2019-07-03 22:18:21 +08:00
|
|
|
Class that provides drawing debug shapes.
|
2019-05-03 20:56:18 +08:00
|
|
|
# - METHODS ----------------------------
|
|
|
|
methods:
|
|
|
|
- def_name: draw_point
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: location
|
|
|
|
type: carla.Location
|
|
|
|
- param_name: size
|
|
|
|
type: float
|
|
|
|
default: 0.1f
|
|
|
|
- param_name: color
|
|
|
|
type: carla.Color
|
|
|
|
default: (255,0,0)
|
|
|
|
- param_name: life_time
|
|
|
|
type: float
|
|
|
|
default: -1.0f
|
|
|
|
- param_name: persistent_lines
|
|
|
|
type: bool
|
|
|
|
default: True
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: draw_line
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: begin
|
|
|
|
type: carla.Location
|
|
|
|
- param_name: end
|
|
|
|
type: carla.Location
|
|
|
|
- param_name: thickness
|
|
|
|
type: float
|
|
|
|
default: 0.1f
|
|
|
|
- param_name: color
|
|
|
|
type: carla.Color
|
|
|
|
default: (255,0,0)
|
|
|
|
- param_name: life_time
|
|
|
|
type: float
|
|
|
|
default: -1.0f
|
|
|
|
- param_name: persistent_lines
|
|
|
|
type: bool
|
|
|
|
default: True
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: draw_arrow
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: begin
|
|
|
|
type: carla.Location
|
|
|
|
- param_name: end
|
|
|
|
type: carla.Location
|
|
|
|
- param_name: thickness
|
|
|
|
type: float
|
|
|
|
default: 0.1f
|
|
|
|
- param_name: arrow_size
|
|
|
|
type: float
|
|
|
|
default: 0.1f
|
|
|
|
- param_name: color
|
|
|
|
type: carla.Color
|
|
|
|
default: (255,0,0)
|
|
|
|
- param_name: life_time
|
|
|
|
type: float
|
|
|
|
default: -1.0f
|
|
|
|
- param_name: persistent_lines
|
|
|
|
type: bool
|
|
|
|
default: True
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: draw_box
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: box
|
|
|
|
type: carla.BoundingBox
|
|
|
|
- param_name: rotation
|
|
|
|
type: carla.Rotation
|
|
|
|
- param_name: thickness
|
|
|
|
type: float
|
|
|
|
default: 0.1f
|
|
|
|
- param_name: color
|
|
|
|
type: carla.Color
|
|
|
|
default: (255,0,0)
|
|
|
|
- param_name: life_time
|
|
|
|
type: float
|
|
|
|
default: -1.0f
|
|
|
|
- param_name: persistent_lines
|
|
|
|
type: bool
|
|
|
|
default: True
|
2019-05-03 20:56:18 +08:00
|
|
|
doc: >
|
|
|
|
# --------------------------------------
|
|
|
|
- def_name: draw_string
|
2019-07-01 23:46:27 +08:00
|
|
|
params:
|
|
|
|
- param_name: location
|
|
|
|
type: carla.Location
|
|
|
|
- param_name: text
|
|
|
|
type: str
|
|
|
|
- param_name: draw_shadow
|
|
|
|
type: bool
|
|
|
|
default: False
|
|
|
|
- param_name: color
|
|
|
|
type: carla.Color
|
|
|
|
default: (255,0,0)
|
|
|
|
- param_name: life_time
|
|
|
|
type: float
|
|
|
|
default: -1.0f
|
|
|
|
- param_name: persistent_lines
|
|
|
|
type: bool
|
|
|
|
default: true
|
2019-05-03 20:56:18 +08:00
|
|
|
# --------------------------------------
|
2019-05-03 18:18:02 +08:00
|
|
|
...
|