Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Luca96/carla-driving-rl-agent
/ functions
Functions
646 in github.com/Luca96/carla-driving-rl-agent
⨍
Functions
646
◇
Types & classes
64
Method
name
(self)
rl/environments/carla/sensors.py:208
Method
name
(self)
rl/environments/carla/sensors.py:217
Method
name
(self)
rl/environments/carla/sensors.py:230
Method
name
(self)
rl/environments/carla/sensors.py:239
Method
name
(self)
rl/environments/carla/sensors.py:257
Method
name
(self)
rl/environments/carla/sensors.py:279
Function
np_normalize
(x, epsilon=np.finfo(np.float32).eps)
rl/utils.py:53
Function
num_dims
Returns the dimensionality (number of dimensions/axis) of the given tensor
rl/utils.py:301
Method
observation_space
(self)
core/carla_env.py:129
Method
observation_space
(self)
rl/environments/carla/environment.py:211
Method
observation_space
(self)
rl/environments/carla/environment.py:893
Method
obstacle_detector
(transform: carla.Transform = None, position: str = None, attachment_type='Rigid', **kwargs)
rl/environments/carla/sensors.py:418
Method
on_collision
(self, event: carla.CollisionEvent, **kwargs)
core/carla_env.py:254
Method
on_collision
(self, event: carla.CollisionEvent, **kwargs)
rl/environments/carla/environment.py:368
Method
on_collision
(self, actor)
rl/environments/carla/environment.py:700
Method
on_collision
(self, event: carla.CollisionEvent, penalty=1000.0)
rl/environments/carla/environment.py:975
Method
on_collision
(self, actor)
rl/environments/carla/environment.py:1404
Method
on_episode_end
(self)
rl/agents/agents.py:214
Method
on_event
(self, event)
rl/environments/carla/sensors.py:260
Method
on_event
(self, event)
rl/environments/carla/sensors.py:282
Method
on_out_of_lane
(self, **kwargs)
rl/environments/carla/environment.py:1410
Method
on_sensors_data
(self, data: dict)
core/carla_env.py:271
Method
on_sensors_data
(self, data: dict)
rl/environments/carla/environment.py:1038
Method
on_sensors_data
(self, data: dict)
rl/environments/carla/environment.py:1248
Method
one_hot_lane_change
(lane: carla.LaneChange)
core/carla_env.py:420
Method
one_hot_lane_marking_type
(lane: carla.LaneMarkingType)
core/carla_env.py:453
Method
one_hot_lane_type
(lane: carla.LaneType)
core/carla_env.py:436
Method
one_hot_similarity
(self, threshold=0.3)
core/carla_env.py:467
Method
one_hot_speed
(speed: float)
core/carla_env.py:404
Method
one_hot_waypoint_distance
(distance: float, very_close=1.5, close=3.0)
core/carla_env.py:484
Function
pipeline
Applies the following SimCLR-like augmentations: - crop_resize_flip -> color_distortion -> gaussian_blur
rl/augmentations/simclr.py:12
Method
play
Let's you control the vehicle with a keyboard.
rl/environments/carla/environment.py:588
Function
plot_images
Plots a list of images, arranging them in a rectangular fashion
rl/utils.py:158
Function
plot_lr_schedule
(lr_schedule: Union[DynamicParameter, LearningRateSchedule], iterations: int, initial_step=0,
rl/utils.py:173
Method
policy_batch_tensors
Defines a batch of data for the policy network
core/carla_agent.py:323
Method
policy_predict
(self, inputs)
rl/networks/networks.py:151
Function
polyak_averaging
Source: Deep Learning Book (section 8.7.3) - the original implementation is: `w = alpha * w_old + (1.0 - alpha) * w_new`, here we us
rl/utils.py:105
Method
predict
(self, *args, **kwargs)
rl/networks/networks.py:17
Method
predict
(self, inputs: Union[tf.Tensor, List[tf.Tensor], Dict[str, tf.Tensor]])
rl/networks/networks.py:133
Method
predict
(self, state, *args, **kwargs)
rl/agents/agents.py:77
Method
predict_last_value
(self, state, is_terminal: bool, **kwargs)
core/networks.py:214
Method
prepare
(states: list)
core/carla_agent.py:532
Method
preprocess_fn
(_)
rl/agents/agents.py:158
Function
print_info
(gym_env)
rl/utils.py:189
Function
profile
(fn)
rl/environments/carla/tools/utils.py:135
Function
pygame_save
(display, path: str, name: str = None)
rl/environments/carla/env_utils.py:83
Method
radar
(transform: carla.Transform = None, position: str = None, attachment_type='Rigid', **kwargs)
rl/environments/carla/sensors.py:437
Function
random_blueprint
Retrieves a random blueprint. :param world: a carla.World instance. :param actor_filter: a string used to filter (select) blueprints.
rl/environments/carla/env_utils.py:104
Function
random_spawn_point
Returns a random spawning location. :param world_map: a carla.Map instance obtained by calling world.get_map() :param different_from:
rl/environments/carla/env_utils.py:159
Function
record
Utils for saving images of the agent
main.py:18
Method
record
(self, name: str, timesteps: int, trials: int, seed=None, sample_seed=True, close=False)
core/carla_agent.py:147
Method
record
(self, *args, **kwargs)
rl/agents/agents.py:80
Method
render
(self, *args, **kwargs)
core/carla_env.py:227
Method
render
(self, mode='human')
core/carla_agent.py:51
Method
render
(self, mode='human')
rl/environments/carla/environment.py:991
Method
render
(self, mode='human')
rl/environments/carla/environment.py:1243
Function
replace_nans
In-place replacement of non-numerical values, i.e. NaNs and +/- infinity
rl/environments/carla/env_utils.py:433
Method
reroute
This method implements re-routing for vehicles approaching its destination. It finds a new target and computes another path to reach
rl/environments/carla/navigation/behavior_agent.py:126
Method
reset
(self)
core/networks.py:277
Method
reset
(self)
core/carla_env.py:204
Method
reset
(self)
rl/environments/carla/environment.py:226
Method
reset
(self)
rl/environments/carla/environment.py:932
Method
reset
(self)
rl/networks/networks.py:23
Method
reset_vehicle
Reset the ego-vehicle
rl/environments/carla/navigation/local_planner_behavior.py:63
Method
reset_world
(self)
core/carla_env.py:214
Method
reward_range
(self)
rl/environments/carla/environment.py:223
Method
reward_range
(self)
rl/environments/carla/environment.py:902
Function
rewards_to_go
(rewards, discount: float, decompose=False)
rl/utils.py:75
Method
rotate_point
rotate a given point by a given angle
rl/environments/carla/navigation/agent.py:115
Method
run
(self, epochs: int, collect: Union[bool, int] = True, representation=True)
core/learning.py:119
Method
run_step
Execute one step of local planning which involves running the longitudinal and lateral PID controllers to follow the waypoint
rl/environments/carla/navigation/local_planner_behavior.py:153
Method
run_step
Execute one step of control invoking both lateral and longitudinal PID controllers to reach a target waypoint at a given targ
rl/environments/carla/navigation/controller.py:49
Method
run_step
Execute one step of longitudinal control to reach a given target speed. :param target_speed: target speed in Km/h :p
rl/environments/carla/navigation/controller.py:112
Method
run_step
Execute one step of lateral control to steer the vehicle towards a certain waypoin. :param waypoint: target waypoint
rl/environments/carla/navigation/controller.py:171
Function
sample_destinations
(amount=1, seed=None)
core/learning.py:36
Method
save_config
(self)
rl/agents/ppo.py:601
Method
save_to_disk
Saves the carla.Image to disk using its color_converter.
rl/environments/carla/sensors.py:142
Method
save_weights
(self)
core/networks.py:297
Method
save_weights
(self)
rl/networks/networks.py:260
Method
save_weights
(self)
rl/agents/ppo.py:593
Function
scale
Scales (interpolates) the given number to a given interval. :param num: a number :param from_interval: the interval the number is assu
rl/environments/carla/env_utils.py:397
Function
select_branch
Branch-selection mechanism
core/networks.py:70
Method
serialize
(self)
rl/parameters/parameters.py:31
Method
serialize
(self)
rl/parameters/parameters.py:70
Method
set
(self, mean: float, variance: float, std: float, count: int)
rl/utils.py:712
Method
set
(sensor_spec: dict, **kwargs)
rl/environments/carla/sensors.py:344
Method
set_color_converter
(camera_spec: dict, color_converter: str = None)
rl/environments/carla/sensors.py:371
Method
set_parent_actor
(self, actor: carla.Actor)
rl/environments/carla/sensors.py:32
Function
shufflenet_v2
(inputs: Input, time_horizon: int, g=1.0, leak=0.0, last_channels=1024)
core/architectures.py:30
Function
shufflenet_v2
ShuffleNet-V2, based on: https://github.com/tensorpack/tensorpack/blob/master/examples/ImageNetModels/shufflenet.py
rl/networks/architectures.py:8
Function
sign
Returns the sign (+1, -1) of the given number.
rl/environments/carla/env_utils.py:463
Function
softplus
(value=1.0)
rl/utils.py:411
Function
space_to_flat_spec
From a gym.Space object returns a flat dictionary str -> tuple. Naming convention: - If space is Box or Discrete, it returns 'dict(nam
rl/utils.py:212
Function
space_to_spec
From a gym.Space object returns its shape-specification, i.e. - tuple: if space is Box or Discrete - dict[str, tuple or dict]: if sp
rl/utils.py:250
Function
spawn_actor
Tries to spawn an actor in a CARLA simulator. :param world: a carla.World instance. :param blueprint: specifies which actor has to be
rl/environments/carla/env_utils.py:177
Function
spawn_pedestrians
Spawns pedestrians, based on spawn_npc.py
rl/environments/carla/env_utils.py:233
Function
spawn_vehicles
Spawns vehicles, based on spawn_npc.py
rl/environments/carla/env_utils.py:195
Function
speed
Returns the speed of the given actor in km/h.
rl/environments/carla/tools/utils.py:53
Function
stage_s1
Stage-1: origins (n=10) fixed by seed. Town-3, reverse gear disabled No dynamic objects.
core/learning.py:311
Function
stage_s2
Stage-2: 50 random origins + 50 pedestrians
core/learning.py:342
← previous
next →
501–600 of 646, ranked by callers