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
↓ 1 callers
Function
crop_resize_flip
Crops the image, then resize it back to the original shape, finally applies horizontal flipping.
rl/augmentations/simclr.py:23
↓ 1 callers
Method
debug
(self, actions)
rl/environments/carla/environment.py:402
↓ 1 callers
Method
debug_text
(self, actions)
rl/environments/carla/environment.py:406
↓ 1 callers
Method
define_sensors
Define which sensors should be equipped to the vehicle
rl/environments/carla/environment.py:364
↓ 1 callers
Method
destination_reached
Tells whether or not the agent has reached the goal (destination) location
rl/environments/carla/environment.py:1413
↓ 1 callers
Method
destroy_actors
Removes the previously spawned actors (vehicles and pedestrians/walkers)
rl/environments/carla/environment.py:303
↓ 1 callers
Function
distance_vehicle
(waypoint, vehicle_transform)
rl/environments/carla/tools/misc.py:90
↓ 1 callers
Function
dot_product
(a: carla.Vector3D, b: carla.Vector3D)
rl/environments/carla/tools/utils.py:58
↓ 1 callers
Method
draw_route
(self, debug: carla.DebugHelper, life_time=1 / 30.0)
rl/environments/carla/navigation/route.py:64
↓ 1 callers
Function
draw_waypoints
Draw a list of waypoints at a certain height given in z. :param world: carla.worlds object :param waypoints: list or iterable container
rl/environments/carla/tools/misc.py:18
↓ 1 callers
Function
dynamics_layers
Defined the shared-network architecture, returns its last layer
core/networks.py:37
↓ 1 callers
Method
dynamics_model
Implicit Dynamics Model, - Inputs: state/observation, action, value
core/networks.py:223
↓ 1 callers
Method
end_episode
Used during learning `learn(...)` to terminate an episode
rl/agents/ppo.py:574
↓ 1 callers
Method
end_trajectory
Ends a sequence of transitions {(s, a, r, d, i)_t}
rl/environments/carla/environment.py:784
↓ 1 callers
Function
filter_steering
(s, a, r, t=0.1)
core/learning.py:257
↓ 1 callers
Function
filter_throttle
(s, a, r)
core/learning.py:235
↓ 1 callers
Function
gaussian_blur
Gaussian blur augmentation as defined in SimCLR paper
rl/augmentations/simclr.py:67
↓ 1 callers
Method
get_action
(self, state)
rl/environments/carla/environment.py:601
↓ 1 callers
Method
get_distribution_layer
(layer: Layer, num_actions)
core/networks.py:129
↓ 1 callers
Method
get_distribution_layer
(self, distribution: str, layer: Layer)
rl/networks/networks.py:72
↓ 1 callers
Method
get_info
(self)
rl/environments/carla/environment.py:538
↓ 1 callers
Method
get_next_waypoints
(self, amount: int)
rl/environments/carla/navigation/route.py:88
↓ 1 callers
Method
get_policy_batches
Computes batches of data for updating the policy network
rl/agents/ppo.py:291
↓ 1 callers
Method
get_value_batches
Computes batches of data for updating the value network
rl/agents/ppo.py:285
↓ 1 callers
Function
global_avg_pool2d
()
core/architectures.py:80
↓ 1 callers
Function
global_to_local
Translates a 3D point from global to local coordinates using the current transformation as reference
rl/environments/carla/env_utils.py:343
↓ 1 callers
Method
init_buffer
(self, num_timesteps: int)
rl/environments/carla/environment.py:758
↓ 1 callers
Function
is_within_distance
Check if a target object is within a certain distance from a reference object. A vehicle in front would be something around 0 deg, while one
rl/environments/carla/tools/misc.py:119
↓ 1 callers
Function
linear_combination
(inputs, units=32, normalization='batch', name=None)
core/networks.py:24
↓ 1 callers
Method
load_config
(self)
rl/agents/agents.py:181
↓ 1 callers
Method
load_weights
(self)
rl/agents/agents.py:205
↓ 1 callers
Function
make_stage
(weather)
core/learning.py:506
↓ 1 callers
Function
mask_reward
(r, mask)
core/learning.py:254
↓ 1 callers
Function
max_pool2d
(**kwargs)
core/architectures.py:73
↓ 1 callers
Method
normalize
(self, values, eps=NP_EPS)
rl/utils.py:709
↓ 1 callers
Method
on_episode_end
(self)
rl/agents/ppo.py:622
↓ 1 callers
Method
on_episode_start
(self)
rl/agents/agents.py:211
↓ 1 callers
Method
on_sensors_data
Callback. Triggers when a world's 'tick' occurs, meaning that data from sensors are been collected because a simulation step of the CARLA's wo
rl/environments/carla/environment.py:434
↓ 1 callers
Method
one_hot_traffic_light_state
(self)
core/carla_env.py:393
↓ 1 callers
Method
pedestrian_avoid_manager
This module is in charge of warning in case of a collision with any pedestrian. :param location: current location of the
rl/environments/carla/navigation/behavior_agent.py:303
↓ 1 callers
Method
plan
Calculates the sequence of waypoints (a route) from origin to destination.
rl/environments/carla/navigation/route.py:26
↓ 1 callers
Method
plot
Colormaps: https://matplotlib.org/tutorials/colors/colormaps.html
rl/utils.py:661
↓ 1 callers
Method
policy_batch_tensors
Defines which data to use in `get_policy_batches()`
rl/agents/ppo.py:281
↓ 1 callers
Method
policy_branch
(self, inputs: Dict[str, Input], num_actions, **kwargs)
core/networks.py:115
↓ 1 callers
Method
policy_objective
(self, batch)
core/carla_agent.py:394
↓ 1 callers
Method
policy_objective
PPO-Clip Objective
rl/agents/ppo.py:309
↓ 1 callers
Method
policy_predict
(self, inputs: dict)
core/carla_agent.py:391
↓ 1 callers
Function
positive
Return the given number if positive, else 0 :param num: value to check
rl/environments/carla/tools/misc.py:111
↓ 1 callers
Method
predict
(self, state, *args, **kwargs)
rl/agents/ppo.py:187
↓ 1 callers
Method
preprocess
(self)
rl/agents/agents.py:156
↓ 1 callers
Method
random_waypoint
(self)
rl/environments/carla/navigation/route.py:95
↓ 1 callers
Method
record
(self, **kwargs)
core/learning.py:168
↓ 1 callers
Method
record
(self, episode: int)
rl/agents/ppo.py:587
↓ 1 callers
Method
representation_learning
(self)
core/learning.py:177
↓ 1 callers
Method
reset
(self)
rl/environments/carla/environment.py:584
↓ 1 callers
Method
reset
(self)
rl/environments/carla/environment.py:690
↓ 1 callers
Method
reset_world
(self)
rl/environments/carla/environment.py:487
↓ 1 callers
Function
resize
Resize the given image. :param image: a numpy array with shape (height, width, channels). :param size: (width, height) to resize the i
rl/environments/carla/env_utils.py:387
↓ 1 callers
Method
reward
Reward function
core/carla_env.py:182
↓ 1 callers
Method
reward
Agent's reward function
rl/environments/carla/environment.py:244
↓ 1 callers
Method
reward
(self, actions, time_cost=-1, d=2.0, w=3.0, s=2.0, v_max=150.0, d_max=100.0, **kwargs)
rl/environments/carla/environment.py:905
↓ 1 callers
Method
run_step
Execute one step of navigation. :param debug: boolean flag for debugging :return: control
rl/environments/carla/navigation/agent.py:56
↓ 1 callers
Method
save_config
(self)
rl/agents/agents.py:187
↓ 1 callers
Method
save_weights
(self)
rl/agents/agents.py:208
↓ 1 callers
Method
serialize
Writes to file (npz - numpy compressed format) all the transitions collected so far
rl/environments/carla/environment.py:798
↓ 1 callers
Method
set_global_plan
Sets new global plan. :param current_plan: list of waypoints in the actual plan
rl/environments/carla/navigation/local_planner_behavior.py:125
↓ 1 callers
Method
set_record_path
(self, path)
core/carla_env.py:233
↓ 1 callers
Method
set_speed
Request new target speed. :param speed: new target speed in km/h
rl/environments/carla/navigation/local_planner_behavior.py:116
↓ 1 callers
Method
setup
Performs initial server data lookup for detailed topology and builds graph representation of the worlds map.
rl/environments/carla/navigation/route_planner.py:24
↓ 1 callers
Method
setup
Performs initial server data lookup for detailed topology and builds graph representation of the world map.
rl/environments/carla/navigation/global_route_planner.py:40
↓ 1 callers
Method
should_log_key
(self, key: str)
rl/utils.py:625
↓ 1 callers
Function
shuffle_trace
(s: dict, a, r)
core/learning.py:242
↓ 1 callers
Function
shufflenet_v2_unit
(layers: List[Layer], num_channels: int, stride: int)
core/architectures.py:120
↓ 1 callers
Function
shufflenet_v2_unit
(layer: Layer, num_channels: int, stride: int)
rl/networks/architectures.py:40
↓ 1 callers
Function
stage_s5
Stage-5: town with dense traffic (100 vehicles and 200 pedestrians) + random light weather + data-aug
core/learning.py:453
↓ 1 callers
Method
store_transition
Collects one transition (s, a, r, d, i)
rl/environments/carla/environment.py:777
↓ 1 callers
Method
structure
(self, inputs: Dict[str, Input], num_actions: int, **kwargs)
core/networks.py:112
↓ 1 callers
Method
summary
Networks summary
rl/agents/agents.py:172
↓ 1 callers
Method
terminal_condition
Tells whether the episode is terminated or not.
rl/environments/carla/environment.py:343
↓ 1 callers
Function
tf_brightness
(image, delta=0.75, seed=None)
rl/augmentations/augmentations.py:111
↓ 1 callers
Function
tf_concat
(shortcuts: List[Layer], layers: List[Layer])
core/architectures.py:98
↓ 1 callers
Function
tf_contrast
(image, lower=0.4, upper=1.6, seed=None)
rl/augmentations/augmentations.py:107
↓ 1 callers
Function
tf_crop
(image, size: Size, resize=False, seed=None)
rl/augmentations/augmentations.py:21
↓ 1 callers
Function
tf_flip
(image, horizontal=True, vertical=False, seed=None)
rl/augmentations/augmentations.py:30
↓ 1 callers
Function
tf_gaussian_blur
(image, size=5, std=0.25, seed=None)
rl/augmentations/augmentations.py:185
↓ 1 callers
Function
tf_hue
(image, delta=0.5, seed=None)
rl/augmentations/augmentations.py:115
↓ 1 callers
Function
tf_normalize
Normalizes some tensor x to 0-mean 1-stddev
rl/utils.py:338
↓ 1 callers
Function
tf_normalize_batch
(images)
rl/augmentations/augmentations.py:257
↓ 1 callers
Function
tf_resize
(image, size: Size)
rl/augmentations/augmentations.py:17
↓ 1 callers
Function
tf_saturation
(image, lower=0.5, upper=1.5, seed=None)
rl/augmentations/augmentations.py:103
↓ 1 callers
Function
tf_split
(layers: List[Layer])
core/architectures.py:87
↓ 1 callers
Method
to_continuous
Maps a discrete array of bins into their corresponding continuous values
rl/environments/carla/environment.py:1200
↓ 1 callers
Method
traffic_light_manager
This method is in charge of behaviors for red lights and stops. WARNING: What follows is a proxy to avoid having a car brake after r
rl/environments/carla/navigation/behavior_agent.py:166
↓ 1 callers
Function
unit_vector
Returns the unit vector from location1 to location2.
rl/environments/carla/tools/utils.py:38
↓ 1 callers
Method
unregister_event
Unregisters a given [callback] to a specific [event]
rl/environments/carla/environment.py:386
↓ 1 callers
Method
update
(self)
rl/agents/agents.py:83
↓ 1 callers
Method
update
(self)
rl/agents/ppo.py:190
↓ 1 callers
Method
update_config
Stores the given variables in the configuration dict for later saving
rl/agents/agents.py:176
↓ 1 callers
Method
update_index
(self, append=False)
rl/agents/ppo.py:729
↓ 1 callers
Method
update_information
This method updates the information regarding the ego vehicle based on the surrounding world.
rl/environments/carla/navigation/behavior_agent.py:81
← previous
next →
201–300 of 646, ranked by callers