MCPcopy Create free account

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

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

Methodname
(self)
rl/environments/carla/sensors.py:208
Methodname
(self)
rl/environments/carla/sensors.py:217
Methodname
(self)
rl/environments/carla/sensors.py:230
Methodname
(self)
rl/environments/carla/sensors.py:239
Methodname
(self)
rl/environments/carla/sensors.py:257
Methodname
(self)
rl/environments/carla/sensors.py:279
Functionnp_normalize
(x, epsilon=np.finfo(np.float32).eps)
rl/utils.py:53
Functionnum_dims
Returns the dimensionality (number of dimensions/axis) of the given tensor
rl/utils.py:301
Methodobservation_space
(self)
core/carla_env.py:129
Methodobservation_space
(self)
rl/environments/carla/environment.py:211
Methodobservation_space
(self)
rl/environments/carla/environment.py:893
Methodobstacle_detector
(transform: carla.Transform = None, position: str = None, attachment_type='Rigid', **kwargs)
rl/environments/carla/sensors.py:418
Methodon_collision
(self, event: carla.CollisionEvent, **kwargs)
core/carla_env.py:254
Methodon_collision
(self, event: carla.CollisionEvent, **kwargs)
rl/environments/carla/environment.py:368
Methodon_collision
(self, actor)
rl/environments/carla/environment.py:700
Methodon_collision
(self, event: carla.CollisionEvent, penalty=1000.0)
rl/environments/carla/environment.py:975
Methodon_collision
(self, actor)
rl/environments/carla/environment.py:1404
Methodon_episode_end
(self)
rl/agents/agents.py:214
Methodon_event
(self, event)
rl/environments/carla/sensors.py:260
Methodon_event
(self, event)
rl/environments/carla/sensors.py:282
Methodon_out_of_lane
(self, **kwargs)
rl/environments/carla/environment.py:1410
Methodon_sensors_data
(self, data: dict)
core/carla_env.py:271
Methodon_sensors_data
(self, data: dict)
rl/environments/carla/environment.py:1038
Methodon_sensors_data
(self, data: dict)
rl/environments/carla/environment.py:1248
Methodone_hot_lane_change
(lane: carla.LaneChange)
core/carla_env.py:420
Methodone_hot_lane_marking_type
(lane: carla.LaneMarkingType)
core/carla_env.py:453
Methodone_hot_lane_type
(lane: carla.LaneType)
core/carla_env.py:436
Methodone_hot_similarity
(self, threshold=0.3)
core/carla_env.py:467
Methodone_hot_speed
(speed: float)
core/carla_env.py:404
Methodone_hot_waypoint_distance
(distance: float, very_close=1.5, close=3.0)
core/carla_env.py:484
Functionpipeline
Applies the following SimCLR-like augmentations: - crop_resize_flip -> color_distortion -> gaussian_blur
rl/augmentations/simclr.py:12
Methodplay
Let's you control the vehicle with a keyboard.
rl/environments/carla/environment.py:588
Functionplot_images
Plots a list of images, arranging them in a rectangular fashion
rl/utils.py:158
Functionplot_lr_schedule
(lr_schedule: Union[DynamicParameter, LearningRateSchedule], iterations: int, initial_step=0,
rl/utils.py:173
Methodpolicy_batch_tensors
Defines a batch of data for the policy network
core/carla_agent.py:323
Methodpolicy_predict
(self, inputs)
rl/networks/networks.py:151
Functionpolyak_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
Methodpredict
(self, *args, **kwargs)
rl/networks/networks.py:17
Methodpredict
(self, inputs: Union[tf.Tensor, List[tf.Tensor], Dict[str, tf.Tensor]])
rl/networks/networks.py:133
Methodpredict
(self, state, *args, **kwargs)
rl/agents/agents.py:77
Methodpredict_last_value
(self, state, is_terminal: bool, **kwargs)
core/networks.py:214
Methodprepare
(states: list)
core/carla_agent.py:532
Methodpreprocess_fn
(_)
rl/agents/agents.py:158
Functionprint_info
(gym_env)
rl/utils.py:189
Functionprofile
(fn)
rl/environments/carla/tools/utils.py:135
Functionpygame_save
(display, path: str, name: str = None)
rl/environments/carla/env_utils.py:83
Methodradar
(transform: carla.Transform = None, position: str = None, attachment_type='Rigid', **kwargs)
rl/environments/carla/sensors.py:437
Functionrandom_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
Functionrandom_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
Functionrecord
Utils for saving images of the agent
main.py:18
Methodrecord
(self, name: str, timesteps: int, trials: int, seed=None, sample_seed=True, close=False)
core/carla_agent.py:147
Methodrecord
(self, *args, **kwargs)
rl/agents/agents.py:80
Methodrender
(self, *args, **kwargs)
core/carla_env.py:227
Methodrender
(self, mode='human')
core/carla_agent.py:51
Methodrender
(self, mode='human')
rl/environments/carla/environment.py:991
Methodrender
(self, mode='human')
rl/environments/carla/environment.py:1243
Functionreplace_nans
In-place replacement of non-numerical values, i.e. NaNs and +/- infinity
rl/environments/carla/env_utils.py:433
Methodreroute
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
Methodreset
(self)
core/networks.py:277
Methodreset
(self)
core/carla_env.py:204
Methodreset
(self)
rl/environments/carla/environment.py:226
Methodreset
(self)
rl/environments/carla/environment.py:932
Methodreset
(self)
rl/networks/networks.py:23
Methodreset_vehicle
Reset the ego-vehicle
rl/environments/carla/navigation/local_planner_behavior.py:63
Methodreset_world
(self)
core/carla_env.py:214
Methodreward_range
(self)
rl/environments/carla/environment.py:223
Methodreward_range
(self)
rl/environments/carla/environment.py:902
Functionrewards_to_go
(rewards, discount: float, decompose=False)
rl/utils.py:75
Methodrotate_point
rotate a given point by a given angle
rl/environments/carla/navigation/agent.py:115
Methodrun
(self, epochs: int, collect: Union[bool, int] = True, representation=True)
core/learning.py:119
Methodrun_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
Methodrun_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
Methodrun_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
Methodrun_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
Functionsample_destinations
(amount=1, seed=None)
core/learning.py:36
Methodsave_config
(self)
rl/agents/ppo.py:601
Methodsave_to_disk
Saves the carla.Image to disk using its color_converter.
rl/environments/carla/sensors.py:142
Methodsave_weights
(self)
core/networks.py:297
Methodsave_weights
(self)
rl/networks/networks.py:260
Methodsave_weights
(self)
rl/agents/ppo.py:593
Functionscale
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
Functionselect_branch
Branch-selection mechanism
core/networks.py:70
Methodserialize
(self)
rl/parameters/parameters.py:31
Methodserialize
(self)
rl/parameters/parameters.py:70
Methodset
(self, mean: float, variance: float, std: float, count: int)
rl/utils.py:712
Methodset
(sensor_spec: dict, **kwargs)
rl/environments/carla/sensors.py:344
Methodset_color_converter
(camera_spec: dict, color_converter: str = None)
rl/environments/carla/sensors.py:371
Methodset_parent_actor
(self, actor: carla.Actor)
rl/environments/carla/sensors.py:32
Functionshufflenet_v2
(inputs: Input, time_horizon: int, g=1.0, leak=0.0, last_channels=1024)
core/architectures.py:30
Functionshufflenet_v2
ShuffleNet-V2, based on: https://github.com/tensorpack/tensorpack/blob/master/examples/ImageNetModels/shufflenet.py
rl/networks/architectures.py:8
Functionsign
Returns the sign (+1, -1) of the given number.
rl/environments/carla/env_utils.py:463
Functionsoftplus
(value=1.0)
rl/utils.py:411
Functionspace_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
Functionspace_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
Functionspawn_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
Functionspawn_pedestrians
Spawns pedestrians, based on spawn_npc.py
rl/environments/carla/env_utils.py:233
Functionspawn_vehicles
Spawns vehicles, based on spawn_npc.py
rl/environments/carla/env_utils.py:195
Functionspeed
Returns the speed of the given actor in km/h.
rl/environments/carla/tools/utils.py:53
Functionstage_s1
Stage-1: origins (n=10) fixed by seed. Town-3, reverse gear disabled No dynamic objects.
core/learning.py:311
Functionstage_s2
Stage-2: 50 random origins + 50 pedestrians
core/learning.py:342
← previousnext →501–600 of 646, ranked by callers