MCPcopy Create free account

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

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

↓ 75 callersMethodappend
(self, state, action, reward, value, log_prob)
rl/agents/ppo.py:678
↓ 20 callersMethodget_waypoint
The method returns waypoint at given location
rl/environments/carla/navigation/global_route_planner_dao.py:73
↓ 17 callersMethodset_random_seed
Sets the random seed for tensorflow, numpy, python's random, and the environment
rl/agents/agents.py:61
↓ 16 callersMethodlog
(self, **kwargs)
rl/agents/agents.py:163
↓ 12 callersMethodclose
(self)
rl/environments/carla/environment.py:1450
↓ 11 callersMethod_bh_is_vehicle_hazard
Check if a given vehicle is an obstacle in our way. To this end we take into account the road and lane the target vehicle is on and r
rl/environments/carla/navigation/agent.py:134
↓ 9 callersMethodload
Loads the past agent's state
rl/agents/agents.py:195
↓ 9 callersMethodshape
(self)
rl/environments/carla/navigation/road_option.py:21
↓ 9 callersFunctionto_float
Casts the given tensor to tf.float32 datatype
rl/utils.py:477
↓ 8 callersMethod__init__
(self, parent_actor: carla.Actor, transform=carla.Transform(), attachment_type=None, attribut
rl/environments/carla/sensors.py:10
↓ 8 callersMethodcreate
(sensor_type, **kwargs)
rl/environments/carla/sensors.py:43
↓ 8 callersMethodlog
(self, **kwargs)
rl/utils.py:603
↓ 7 callersMethod__init__
(self, env: CARLABaseEnvironment, task: Tasks, preset='test', weather=None, avg_speed=10.0)
rl/environments/carla/environment.py:1364
↓ 7 callersMethodget_weights
(self)
rl/networks/networks.py:32
↓ 7 callersMethodserialize
Writes to file (npz - numpy compressed format) all the transitions (state, reward, action) collected so far.
rl/agents/ppo.py:735
↓ 7 callersMethodset_weights
(self, weights)
rl/networks/networks.py:29
↓ 7 callersMethodstep
(self, actions)
rl/environments/carla/environment.py:1417
↓ 6 callersMethodconvert_image
(self, image: carla.Image, dtype=np.uint8, color_converter=None)
rl/environments/carla/sensors.py:132
↓ 6 callersFunctioncreate_once
()
core/architectures.py:45
↓ 6 callersMethoddistance_to_next_waypoint
(self)
rl/environments/carla/navigation/route.py:82
↓ 6 callersMethodinit
(self)
core/learning.py:114
↓ 6 callersMethodrender
Renders sensors' output
rl/environments/carla/environment.py:398
↓ 6 callersMethodset_destination
This method creates a list of waypoints from agent's position to destination location based on the route returned by the global route
rl/environments/carla/navigation/behavior_agent.py:107
↓ 5 callersFunctionactivation
Activation: BatchNormalization + ReLU6
rl/networks/architectures.py:23
↓ 5 callersFunctionactivation_fn
()
core/architectures.py:44
↓ 5 callersFunctionconv2d
(**kwargs)
core/architectures.py:59
↓ 5 callersFunctiondefine_agent
(class_=CARLAgent, batch_size=128, consider_obs_every=4, load=False, **kwargs)
core/learning.py:53
↓ 5 callersFunctiondefine_env
(image_shape=(90, 120, 3), render=True, town: Union[None, str] = 'Town01', window_size=(1080, 270),
core/learning.py:58
↓ 5 callersMethodget_position
(position: str = None)
rl/environments/carla/sensors.py:321
↓ 5 callersFunctionget_speed
Compute speed of a vehicle in Kmh :param vehicle: the vehicle for which speed is calculated :return: speed as a float in Kmh
rl/environments/carla/tools/misc.py:35
↓ 5 callersMethodreset
(self)
rl/agents/ppo.py:618
↓ 5 callersMethodrun2
(self, epochs: int, copy_weights=True, epoch_offset=0)
core/learning.py:144
↓ 5 callersMethodset_town
Loads then given town
rl/environments/carla/environment.py:257
↓ 5 callersMethodwrite_summaries
(self)
rl/agents/agents.py:166
↓ 4 callersMethod__init__
(self, initial_value: float, decay_steps: int, decay_rate: float, min_value=1e-4)
rl/parameters/parameters.py:83
↓ 4 callersMethod_localize
This function finds the road segment closest to given location location : carla.Location to be localized in the graph
rl/environments/carla/navigation/route_planner.py:151
↓ 4 callersMethod_localize
This function finds the road segment closest to given location location : carla.Location to be localized in the graph
rl/environments/carla/navigation/global_route_planner.py:148
↓ 4 callersMethoddestroy
(self)
rl/environments/carla/sensors.py:109
↓ 4 callersMethoddynamics_predict_train
(self, inputs: dict)
core/networks.py:211
↓ 4 callersMethodget_resolution
Accessor for self._sampling_resolution
rl/environments/carla/navigation/global_route_planner_dao.py:77
↓ 4 callersMethodreset
(self)
core/carla_agent.py:48
↓ 4 callersMethodreset
(self)
rl/agents/agents.py:192
↓ 4 callersMethodrgb_camera
(transform: carla.Transform = None, position: str = None, attachment_type='SpringArm', colo
rl/environments/carla/sensors.py:386
↓ 4 callersMethodsegmentation_camera
(transform: carla.Transform = None, position: str = None, attachment_type='SpringArm',
rl/environments/carla/sensors.py:396
↓ 4 callersFunctionstack
(layers: List[Layer], axis=1)
core/networks.py:33
↓ 4 callersFunctiontf_chance
Use to get a single random number between 0 and 1
rl/augmentations/augmentations.py:261
↓ 4 callersMethodtick
(self, timeout)
rl/environments/carla/tools/synchronous_mode.py:49
↓ 4 callersMethodtrigger_event
Cause the call of every callback registered for event [event]
rl/environments/carla/environment.py:380
↓ 4 callersFunctionvector_norm
Returns the norm/magnitude (a scalar) of the given 3D vector.
rl/environments/carla/tools/utils.py:48
↓ 3 callersMethod_apply_space_spec
(self, spec: Union[tuple, dict], size: int, name: str)
rl/environments/carla/environment.py:808
↓ 3 callersMethod_find_closest_in_list
(current_waypoint, waypoint_list)
rl/environments/carla/navigation/route_planner.py:370
↓ 3 callersMethod_find_closest_in_list
(self, current_waypoint, waypoint_list)
rl/environments/carla/navigation/global_route_planner.py:333
↓ 3 callersMethodactions_to_control
(env, actions)
rl/environments/carla/environment.py:653
↓ 3 callersFunctionbatch_norm
()
core/architectures.py:52
↓ 3 callersMethodcamera
(kind: str, transform: carla.Transform = None, position: str = None, attachment_type=None, colo
rl/environments/carla/sensors.py:376
↓ 3 callersFunctionclamp
Clips the given [value] in the given interval [min_value, max_value]
rl/environments/carla/env_utils.py:471
↓ 3 callersMethodcollision_detector
(transform: carla.Transform = None, position: str = None, attachment_type='Rigid', **kwargs)
rl/environments/carla/sensors.py:410
↓ 3 callersMethodcontrol_to_actions
(self, control: carla.VehicleControl)
rl/environments/carla/environment.py:417
↓ 3 callersMethoddelete
(self)
rl/agents/ppo.py:660
↓ 3 callersMethoddetector
(kind: str, transform: carla.Transform = None, position: str = None, attachment_type=None, **
rl/environments/carla/sensors.py:401
↓ 3 callersMethoddistance_to_destination
Returns the distance from the given location the route's destination (last waypoint)
rl/environments/carla/navigation/route.py:69
↓ 3 callersMethodemergency_stop
Send an emergency stop command to the vehicle :return: control for braking
rl/environments/carla/navigation/agent.py:224
↓ 3 callersFunctionfile_names
(dir_path: str, sort=True)
rl/utils.py:502
↓ 3 callersMethodimu
(transform: carla.Transform = None, position: str = None, attachment_type='Rigid', **kwargs)
rl/environments/carla/sensors.py:441
↓ 3 callersMethodon_episode
(self)
rl/parameters/parameters.py:34
↓ 3 callersMethodother
(kind: str, transform: carla.Transform = None, position: str = None, attachment_type=None, **kwargs)
rl/environments/carla/sensors.py:422
↓ 3 callersMethodreset
(self)
rl/environments/carla/environment.py:1397
↓ 3 callersMethodrun_step
Execute one step of navigation. :param debug: boolean for debugging :return control: carla.VehicleControl
rl/environments/carla/navigation/behavior_agent.py:363
↓ 3 callersMethodsave
Saves the agent's state
rl/agents/agents.py:200
↓ 3 callersMethodset_weather
Sets the given weather. If [weather] is a list, a random preset from the list is chosen and set
rl/environments/carla/environment.py:248
↓ 3 callersFunctionshufflenet_stage
(layers: List[Layer], num_channels: int, num_blocks: int)
core/architectures.py:147
↓ 3 callersFunctionshufflenet_stage
(layer: Layer, num_channels: int, num_blocks: int)
rl/networks/architectures.py:67
↓ 3 callersMethodstart
Start listening for events
rl/environments/carla/sensors.py:76
↓ 3 callersMethodstop
Stop listening for events
rl/environments/carla/sensors.py:83
↓ 3 callersFunctiontf_normalize
Scales the given image in range [0.0, 1.0]
rl/augmentations/augmentations.py:249
↓ 3 callersMethodto_one_hot
Returns a one-hot encoded route-option as np.array
rl/environments/carla/navigation/road_option.py:24
↓ 3 callersMethodupdate_old_policy
(self, weights=None)
rl/networks/networks.py:264
↓ 3 callersMethodvalue_predict
(self, inputs)
rl/networks/networks.py:155
↓ 2 callersMethod__init__
:param aug_intensity: how much intense the augmentation should be. :param clip_norm: at which value the gradient's norm should be cli
core/carla_agent.py:70
↓ 2 callersMethod_add_queue
Registers an even on its own queue identified by name
rl/environments/carla/tools/synchronous_mode.py:64
↓ 2 callersMethod_get_input_layers
Transforms arbitrary complex state-spaces (and, optionally, action-spaces) as input layers
rl/networks/networks.py:44
↓ 2 callersMethod_get_observation
(self, sensors_data: dict)
core/carla_env.py:301
↓ 2 callersMethod_init_past_obs
Returns a list of empty observations
core/carla_env.py:323
↓ 2 callersMethod_path_search
This function finds the shortest path connecting origin and destination using A* search with distance heuristic. origin
rl/environments/carla/navigation/route_planner.py:230
↓ 2 callersMethod_path_search
This function finds the shortest path connecting origin and destination using A* search with distance heuristic. origin
rl/environments/carla/navigation/global_route_planner.py:215
↓ 2 callersMethod_turn_decision
This method returns the turn decision (RoadOption) for pair of edges around current index of route list
rl/environments/carla/navigation/route_planner.py:274
↓ 2 callersMethod_turn_decision
This method returns the turn decision (RoadOption) for pair of edges around current index of route list
rl/environments/carla/navigation/global_route_planner.py:255
↓ 2 callersMethodafter_world_step
Callback: called after world.tick().
rl/environments/carla/environment.py:426
↓ 2 callersMethodapply_dynamics_gradients
(self, gradients)
core/carla_agent.py:386
↓ 2 callersMethodapply_policy_gradients
(self, gradients)
rl/agents/ppo.py:238
↓ 2 callersMethodapply_value_gradients
(self, gradients)
rl/agents/ppo.py:264
↓ 2 callersMethodcleanup
(self)
core/learning.py:186
↓ 2 callersMethodcollect
(self, episodes: int, timesteps: int, agent_debug=False, episode_reward_threshold=0.0, close=True)
rl/environments/carla/environment.py:710
↓ 2 callersMethodcompute_advantages
Computes the advantages using generalized-advantage estimation
rl/agents/ppo.py:714
↓ 2 callersMethodcompute_returns
Computes the returns, also called rewards-to-go
rl/agents/ppo.py:699
↓ 2 callersFunctioncontrol_branch
(inputs: dict, units: int, num_layers: int, activation=utils.swish6)
core/networks.py:59
↓ 2 callersMethodconvert
Converts a carla.RadarMeasurement into a numpy array [[velocity, altitude, azimuth, depth]]
rl/environments/carla/sensors.py:243
↓ 2 callersMethoddata_for_dynamics
(self, inputs)
core/networks.py:195
↓ 2 callersMethoddepth_camera
(transform: carla.Transform = None, position: str = None, attachment_type='SpringArm', co
rl/environments/carla/sensors.py:391
↓ 2 callersFunctiondepthwise_conv2d
(**kwargs)
core/architectures.py:66
next →1–100 of 646, ranked by callers