MCPcopy Create free account

hub / github.com/Luca96/carla-driving-rl-agent / functions

Functions646 in github.com/Luca96/carla-driving-rl-agent

↓ 1 callersFunctioncrop_resize_flip
Crops the image, then resize it back to the original shape, finally applies horizontal flipping.
rl/augmentations/simclr.py:23
↓ 1 callersMethoddebug
(self, actions)
rl/environments/carla/environment.py:402
↓ 1 callersMethoddebug_text
(self, actions)
rl/environments/carla/environment.py:406
↓ 1 callersMethoddefine_sensors
Define which sensors should be equipped to the vehicle
rl/environments/carla/environment.py:364
↓ 1 callersMethoddestination_reached
Tells whether or not the agent has reached the goal (destination) location
rl/environments/carla/environment.py:1413
↓ 1 callersMethoddestroy_actors
Removes the previously spawned actors (vehicles and pedestrians/walkers)
rl/environments/carla/environment.py:303
↓ 1 callersFunctiondistance_vehicle
(waypoint, vehicle_transform)
rl/environments/carla/tools/misc.py:90
↓ 1 callersFunctiondot_product
(a: carla.Vector3D, b: carla.Vector3D)
rl/environments/carla/tools/utils.py:58
↓ 1 callersMethoddraw_route
(self, debug: carla.DebugHelper, life_time=1 / 30.0)
rl/environments/carla/navigation/route.py:64
↓ 1 callersFunctiondraw_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 callersFunctiondynamics_layers
Defined the shared-network architecture, returns its last layer
core/networks.py:37
↓ 1 callersMethoddynamics_model
Implicit Dynamics Model, - Inputs: state/observation, action, value
core/networks.py:223
↓ 1 callersMethodend_episode
Used during learning `learn(...)` to terminate an episode
rl/agents/ppo.py:574
↓ 1 callersMethodend_trajectory
Ends a sequence of transitions {(s, a, r, d, i)_t}
rl/environments/carla/environment.py:784
↓ 1 callersFunctionfilter_steering
(s, a, r, t=0.1)
core/learning.py:257
↓ 1 callersFunctionfilter_throttle
(s, a, r)
core/learning.py:235
↓ 1 callersFunctiongaussian_blur
Gaussian blur augmentation as defined in SimCLR paper
rl/augmentations/simclr.py:67
↓ 1 callersMethodget_action
(self, state)
rl/environments/carla/environment.py:601
↓ 1 callersMethodget_distribution_layer
(layer: Layer, num_actions)
core/networks.py:129
↓ 1 callersMethodget_distribution_layer
(self, distribution: str, layer: Layer)
rl/networks/networks.py:72
↓ 1 callersMethodget_info
(self)
rl/environments/carla/environment.py:538
↓ 1 callersMethodget_next_waypoints
(self, amount: int)
rl/environments/carla/navigation/route.py:88
↓ 1 callersMethodget_policy_batches
Computes batches of data for updating the policy network
rl/agents/ppo.py:291
↓ 1 callersMethodget_value_batches
Computes batches of data for updating the value network
rl/agents/ppo.py:285
↓ 1 callersFunctionglobal_avg_pool2d
()
core/architectures.py:80
↓ 1 callersFunctionglobal_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 callersMethodinit_buffer
(self, num_timesteps: int)
rl/environments/carla/environment.py:758
↓ 1 callersFunctionis_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 callersFunctionlinear_combination
(inputs, units=32, normalization='batch', name=None)
core/networks.py:24
↓ 1 callersMethodload_config
(self)
rl/agents/agents.py:181
↓ 1 callersMethodload_weights
(self)
rl/agents/agents.py:205
↓ 1 callersFunctionmake_stage
(weather)
core/learning.py:506
↓ 1 callersFunctionmask_reward
(r, mask)
core/learning.py:254
↓ 1 callersFunctionmax_pool2d
(**kwargs)
core/architectures.py:73
↓ 1 callersMethodnormalize
(self, values, eps=NP_EPS)
rl/utils.py:709
↓ 1 callersMethodon_episode_end
(self)
rl/agents/ppo.py:622
↓ 1 callersMethodon_episode_start
(self)
rl/agents/agents.py:211
↓ 1 callersMethodon_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 callersMethodone_hot_traffic_light_state
(self)
core/carla_env.py:393
↓ 1 callersMethodpedestrian_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 callersMethodplan
Calculates the sequence of waypoints (a route) from origin to destination.
rl/environments/carla/navigation/route.py:26
↓ 1 callersMethodplot
Colormaps: https://matplotlib.org/tutorials/colors/colormaps.html
rl/utils.py:661
↓ 1 callersMethodpolicy_batch_tensors
Defines which data to use in `get_policy_batches()`
rl/agents/ppo.py:281
↓ 1 callersMethodpolicy_branch
(self, inputs: Dict[str, Input], num_actions, **kwargs)
core/networks.py:115
↓ 1 callersMethodpolicy_objective
(self, batch)
core/carla_agent.py:394
↓ 1 callersMethodpolicy_objective
PPO-Clip Objective
rl/agents/ppo.py:309
↓ 1 callersMethodpolicy_predict
(self, inputs: dict)
core/carla_agent.py:391
↓ 1 callersFunctionpositive
Return the given number if positive, else 0 :param num: value to check
rl/environments/carla/tools/misc.py:111
↓ 1 callersMethodpredict
(self, state, *args, **kwargs)
rl/agents/ppo.py:187
↓ 1 callersMethodpreprocess
(self)
rl/agents/agents.py:156
↓ 1 callersMethodrandom_waypoint
(self)
rl/environments/carla/navigation/route.py:95
↓ 1 callersMethodrecord
(self, **kwargs)
core/learning.py:168
↓ 1 callersMethodrecord
(self, episode: int)
rl/agents/ppo.py:587
↓ 1 callersMethodrepresentation_learning
(self)
core/learning.py:177
↓ 1 callersMethodreset
(self)
rl/environments/carla/environment.py:584
↓ 1 callersMethodreset
(self)
rl/environments/carla/environment.py:690
↓ 1 callersMethodreset_world
(self)
rl/environments/carla/environment.py:487
↓ 1 callersFunctionresize
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 callersMethodreward
Reward function
core/carla_env.py:182
↓ 1 callersMethodreward
Agent's reward function
rl/environments/carla/environment.py:244
↓ 1 callersMethodreward
(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 callersMethodrun_step
Execute one step of navigation. :param debug: boolean flag for debugging :return: control
rl/environments/carla/navigation/agent.py:56
↓ 1 callersMethodsave_config
(self)
rl/agents/agents.py:187
↓ 1 callersMethodsave_weights
(self)
rl/agents/agents.py:208
↓ 1 callersMethodserialize
Writes to file (npz - numpy compressed format) all the transitions collected so far
rl/environments/carla/environment.py:798
↓ 1 callersMethodset_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 callersMethodset_record_path
(self, path)
core/carla_env.py:233
↓ 1 callersMethodset_speed
Request new target speed. :param speed: new target speed in km/h
rl/environments/carla/navigation/local_planner_behavior.py:116
↓ 1 callersMethodsetup
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 callersMethodsetup
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 callersMethodshould_log_key
(self, key: str)
rl/utils.py:625
↓ 1 callersFunctionshuffle_trace
(s: dict, a, r)
core/learning.py:242
↓ 1 callersFunctionshufflenet_v2_unit
(layers: List[Layer], num_channels: int, stride: int)
core/architectures.py:120
↓ 1 callersFunctionshufflenet_v2_unit
(layer: Layer, num_channels: int, stride: int)
rl/networks/architectures.py:40
↓ 1 callersFunctionstage_s5
Stage-5: town with dense traffic (100 vehicles and 200 pedestrians) + random light weather + data-aug
core/learning.py:453
↓ 1 callersMethodstore_transition
Collects one transition (s, a, r, d, i)
rl/environments/carla/environment.py:777
↓ 1 callersMethodstructure
(self, inputs: Dict[str, Input], num_actions: int, **kwargs)
core/networks.py:112
↓ 1 callersMethodsummary
Networks summary
rl/agents/agents.py:172
↓ 1 callersMethodterminal_condition
Tells whether the episode is terminated or not.
rl/environments/carla/environment.py:343
↓ 1 callersFunctiontf_brightness
(image, delta=0.75, seed=None)
rl/augmentations/augmentations.py:111
↓ 1 callersFunctiontf_concat
(shortcuts: List[Layer], layers: List[Layer])
core/architectures.py:98
↓ 1 callersFunctiontf_contrast
(image, lower=0.4, upper=1.6, seed=None)
rl/augmentations/augmentations.py:107
↓ 1 callersFunctiontf_crop
(image, size: Size, resize=False, seed=None)
rl/augmentations/augmentations.py:21
↓ 1 callersFunctiontf_flip
(image, horizontal=True, vertical=False, seed=None)
rl/augmentations/augmentations.py:30
↓ 1 callersFunctiontf_gaussian_blur
(image, size=5, std=0.25, seed=None)
rl/augmentations/augmentations.py:185
↓ 1 callersFunctiontf_hue
(image, delta=0.5, seed=None)
rl/augmentations/augmentations.py:115
↓ 1 callersFunctiontf_normalize
Normalizes some tensor x to 0-mean 1-stddev
rl/utils.py:338
↓ 1 callersFunctiontf_normalize_batch
(images)
rl/augmentations/augmentations.py:257
↓ 1 callersFunctiontf_resize
(image, size: Size)
rl/augmentations/augmentations.py:17
↓ 1 callersFunctiontf_saturation
(image, lower=0.5, upper=1.5, seed=None)
rl/augmentations/augmentations.py:103
↓ 1 callersFunctiontf_split
(layers: List[Layer])
core/architectures.py:87
↓ 1 callersMethodto_continuous
Maps a discrete array of bins into their corresponding continuous values
rl/environments/carla/environment.py:1200
↓ 1 callersMethodtraffic_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 callersFunctionunit_vector
Returns the unit vector from location1 to location2.
rl/environments/carla/tools/utils.py:38
↓ 1 callersMethodunregister_event
Unregisters a given [callback] to a specific [event]
rl/environments/carla/environment.py:386
↓ 1 callersMethodupdate
(self)
rl/agents/agents.py:83
↓ 1 callersMethodupdate
(self)
rl/agents/ppo.py:190
↓ 1 callersMethodupdate_config
Stores the given variables in the configuration dict for later saving
rl/agents/agents.py:176
↓ 1 callersMethodupdate_index
(self, append=False)
rl/agents/ppo.py:729
↓ 1 callersMethodupdate_information
This method updates the information regarding the ego vehicle based on the surrounding world.
rl/environments/carla/navigation/behavior_agent.py:81
← previousnext →201–300 of 646, ranked by callers