MCPcopy Create free account

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

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

↓ 2 callersFunctiondiscount_cumsum
Source: https://github.com/openai/spinningup/blob/master/spinup/algos/tf1/ppo/core.py#L45
rl/utils.py:57
↓ 2 callersFunctiondraw_transform
(debug, trans, col=Colors.red, lt=-1)
rl/environments/carla/tools/utils.py:217
↓ 2 callersFunctiondraw_waypoint_union
(debug, w0, w1, color=Colors.red, lt=5)
rl/environments/carla/tools/utils.py:209
↓ 2 callersMethoddynamics_predict
(self, inputs: dict)
core/networks.py:207
↓ 2 callersMethodelapsed_time
Returns the total elapsed time in seconds, computed from the last reset() call.
rl/environments/carla/environment.py:541
↓ 2 callersMethodend_trajectory
Terminates the current trajectory by adding the value of the terminal state
rl/agents/ppo.py:692
↓ 2 callersMethodevaluate
(self, **kwargs)
core/learning.py:163
↓ 2 callersMethodget_incoming_waypoint_and_direction
Returns direction and waypoint at a distance ahead defined by the user. :param steps: number of steps to get the incoming waypoi
rl/environments/carla/navigation/local_planner_behavior.py:135
↓ 2 callersMethodget_memory
(self)
core/carla_agent.py:519
↓ 2 callersMethodget_memory
Instantiate the agent's memory; easy to subclass
rl/agents/ppo.py:570
↓ 2 callersMethodget_observation
(self, sensors_data: dict)
rl/environments/carla/environment.py:535
↓ 2 callersMethodget_policy_gradients
(self, batch)
rl/agents/ppo.py:228
↓ 2 callersMethodget_topology
Accessor for topology. This function retrieves topology from the server as a list of road segments as pairs of waypoint objec
rl/environments/carla/navigation/global_route_planner_dao.py:27
↓ 2 callersMethodget_value_gradients
(self, batch)
rl/agents/ppo.py:254
↓ 2 callersMethodimitation_learning
(self)
core/learning.py:180
↓ 2 callersFunctionis_within_distance_ahead
Check if a target object is within a certain distance in front of a reference object. :param target_transform: location of the target object
rl/environments/carla/tools/misc.py:45
↓ 2 callersMethodlearn
(self, *args, **kwargs)
rl/agents/agents.py:86
↓ 2 callersMethodload_weights
(self)
rl/networks/networks.py:35
↓ 2 callersMethodon_event
(self, event)
rl/environments/carla/sensors.py:105
↓ 2 callersMethodpolicy_layers
Defines the architecture of the policy-network
rl/networks/networks.py:181
↓ 2 callersMethodpolicy_network
(self, **kwargs)
rl/networks/networks.py:214
↓ 2 callersMethodpredict
(self, inputs: TensorType)
core/networks.py:181
↓ 2 callersMethodpredict_last_value
(self, state, timestep: float, is_terminal: bool)
rl/networks/networks.py:158
↓ 2 callersMethodpreprocess
Augmentation function used during the reinforcement learning phase
core/carla_agent.py:523
↓ 2 callersMethodregister_event
Registers a given [callback] to a specific [event]
rl/environments/carla/environment.py:371
↓ 2 callersMethodreinforcement_learning
(self)
core/learning.py:183
↓ 2 callersMethodreset_info
(self)
core/carla_env.py:223
↓ 2 callersFunctionsample_origins
(amount=1, seed=None)
core/learning.py:19
↓ 2 callersMethodsave_weights
(self)
rl/networks/networks.py:38
↓ 2 callersMethodskip
Skips the given amount of frames
rl/environments/carla/environment.py:409
↓ 2 callersMethodspawn_actors
Instantiate vehicles and pedestrians in the current world
rl/environments/carla/environment.py:281
↓ 2 callersMethodstep
(self, action)
core/carla_agent.py:45
↓ 2 callersMethodsummary
(self)
rl/networks/networks.py:41
↓ 2 callersFunctiontf_grayscale
(rgb_image)
rl/augmentations/augmentations.py:119
↓ 2 callersFunctiontf_repeat_channels
(image, n=3)
rl/augmentations/augmentations.py:267
↓ 2 callersMethodto_continuous
Maps a discrete array of bins into their corresponding continuous values
rl/environments/carla/environment.py:1290
↓ 2 callersMethodto_discrete
Maps a continuous array of values into their corresponding bins (i.e. inverse of `interpolate`)
rl/environments/carla/environment.py:1208
↓ 2 callersMethodto_discrete
Maps a continuous array of values into their corresponding bins (i.e. inverse of `interpolate`)
rl/environments/carla/environment.py:1299
↓ 2 callersMethodtrace_route
This method returns list of (carla.Waypoint, RoadOption) from origin (carla.Location) to destination (carla.Location)
rl/environments/carla/navigation/route_planner.py:384
↓ 2 callersMethodvalue_predict
(self, inputs)
core/networks.py:178
↓ 1 callersMethod__enter__
Enables synchronous mode. Usage: with carla_env as env: # code...
rl/environments/carla/environment.py:441
↓ 1 callersMethod__exit__
Disables synchronous mode
rl/environments/carla/environment.py:451
↓ 1 callersMethod__init__
:param agent: a CARLAgent instance. :param control_policy: dict that specifies the policy-branch of the network. :param contr
core/networks.py:150
↓ 1 callersMethod__init__
(self, agent)
rl/networks/networks.py:14
↓ 1 callersMethod__init__
(self, env: Union[gym.Env, str], batch_size: int, seed=None, weights_dir='weights', name='agent',
rl/agents/agents.py:17
↓ 1 callersMethod_build_graph
This function builds a networkx graph representation of topology. The topology is read from self._topology. graph node prope
rl/environments/carla/navigation/route_planner.py:34
↓ 1 callersMethod_build_graph
This function builds a networkx graph representation of topology. The topology is read from self._topology. graph node proper
rl/environments/carla/navigation/global_route_planner.py:50
↓ 1 callersMethod_clip_actions
Clips actions to prevent numerical instability when computing (log-)probabilities. - Use for Beta distribution only.
core/networks.py:140
↓ 1 callersMethod_compute_route_size
Compute the size (in meters) of the entire planned route
rl/environments/carla/navigation/route.py:98
↓ 1 callersMethod_control_as_vector
(self)
rl/environments/carla/environment.py:1102
↓ 1 callersMethod_create_sensors
(self)
rl/environments/carla/environment.py:549
↓ 1 callersMethod_find_loose_ends
This method finds road segments that have an unconnected end and adds them to the internal graph representation
rl/environments/carla/navigation/route_planner.py:97
↓ 1 callersMethod_find_loose_ends
This method finds road segments that have an unconnected end, and adds them to the internal graph representation
rl/environments/carla/navigation/global_route_planner.py:109
↓ 1 callersMethod_get_detector_data
Retrieves data for detector, the call is non-blocking thus doesn't wait for available data.
rl/environments/carla/tools/synchronous_mode.py:71
↓ 1 callersMethod_get_input_layers
Transforms arbitrary complex state-spaces (and, optionally, action-spaces) as input layers
core/networks.py:237
↓ 1 callersMethod_get_navigation_features
features: N distances from current vehicle location to N next route waypoints' locations
core/carla_env.py:366
↓ 1 callersMethod_get_road_features
9 features: - 3: is_intersection, is_junction, is_at_traffic_light - 1: speed_limit - 5: traffic_light_state
core/carla_env.py:335
↓ 1 callersMethod_get_road_features
(self)
rl/environments/carla/environment.py:1105
↓ 1 callersMethod_get_sensor_data
Retrieves data for sensors (i.e. camera and other) it blocks waiting until timeout is expired.
rl/environments/carla/tools/synchronous_mode.py:80
↓ 1 callersMethod_get_trafficlight_trigger_location
Calculates the yaw of the waypoint that represents the trigger volume of the traffic light
rl/environments/carla/navigation/agent.py:111
↓ 1 callersMethod_get_vehicle_features
4 features: - 1: similarity (e.g. current heading direction w.r.t. next route waypoint) - 1: speed - 1: throttle
core/carla_env.py:353
↓ 1 callersMethod_get_vehicle_features
(self)
rl/environments/carla/environment.py:1135
↓ 1 callersMethod_init_action_space
(self)
rl/agents/ppo.py:148
↓ 1 callersMethod_init_controller
Controller initialization. dt -- time difference between physics control in seconds. This is can be fixed from server side
rl/environments/carla/navigation/local_planner_behavior.py:68
↓ 1 callersMethod_init_gradient_clipping
(self, clip_norm: Union[tuple, float, None])
rl/agents/ppo.py:114
↓ 1 callersMethod_is_quit_shortcut
(key)
rl/environments/carla/environment.py:619
↓ 1 callersMethod_lane_change_link
This method places zero cost links in the topology graph representing availability of lane changes.
rl/environments/carla/navigation/route_planner.py:174
↓ 1 callersMethod_lane_change_link
This method places zero cost links in the topology graph representing availability of lane changes.
rl/environments/carla/navigation/global_route_planner.py:168
↓ 1 callersMethod_overtake
This method is in charge of overtaking behaviors. :param location: current location of the agent :param waypoint: cu
rl/environments/carla/navigation/behavior_agent.py:189
↓ 1 callersMethod_parse_events
(self)
rl/environments/carla/environment.py:604
↓ 1 callersMethod_parse_vehicle_keys
(self)
rl/environments/carla/environment.py:622
↓ 1 callersMethod_pid_control
Estimate the throttle/brake of the vehicle based on the PID equations :param target_speed: target speed in Km/h :pa
rl/environments/carla/navigation/controller.py:127
↓ 1 callersMethod_pid_control
Estimate the steering angle of the vehicle based on the PID equations :param waypoint: target waypoint :param vehicl
rl/environments/carla/navigation/controller.py:183
↓ 1 callersMethod_predict
(self, inputs: TensorType)
core/networks.py:188
↓ 1 callersMethod_spawn
Spawns itself within a carla.World.
rl/environments/carla/sensors.py:87
↓ 1 callersMethod_store_item
(self, item, index: int, name: str)
rl/environments/carla/environment.py:818
↓ 1 callersMethod_successive_last_intersection_edge
This method returns the last successive intersection edge from a starting index on the route. This helps moving past tiny in
rl/environments/carla/navigation/route_planner.py:249
↓ 1 callersMethod_successive_last_intersection_edge
This method returns the last successive intersection edge from a starting index on the route. This helps moving past tiny int
rl/environments/carla/navigation/global_route_planner.py:233
↓ 1 callersMethod_tailgating
This method is in charge of tailgating behaviors. :param location: current location of the agent :param waypoint: cu
rl/environments/carla/navigation/behavior_agent.py:222
↓ 1 callersMethod_trace_route
This method sets up a global router and returns the optimal route from start_waypoint to end_waypoint. :param start_wayp
rl/environments/carla/navigation/behavior_agent.py:142
↓ 1 callersMethod_update_env_state
(self)
rl/environments/carla/environment.py:1152
↓ 1 callersMethod_update_target_waypoint
(self)
rl/environments/carla/environment.py:1160
↓ 1 callersMethod_update_travelled_distance
(self)
rl/environments/carla/environment.py:1169
↓ 1 callersMethod_update_waypoint_similarity
(self)
rl/environments/carla/environment.py:1163
↓ 1 callersMethodact
(self, state, *args, **kwargs)
rl/agents/agents.py:74
↓ 1 callersMethodact2
(self, inputs: Union[tf.Tensor, List[tf.Tensor], Dict[str, tf.Tensor]])
rl/networks/networks.py:170
↓ 1 callersMethodactions_to_control
Specifies the mapping between an actions vector and the vehicle's control.
rl/environments/carla/environment.py:531
↓ 1 callersMethodaugment
Augmentation function used during the imitation learning phase
core/carla_agent.py:527
↓ 1 callersMethodbefore_world_step
Callback: called before world.tick()
rl/environments/carla/environment.py:420
↓ 1 callersMethodbefore_world_step
(env)
rl/environments/carla/environment.py:661
↓ 1 callersMethodcar_following_manager
Module in charge of car-following behaviors when there's someone in front of us. :param vehicle: car to follow
rl/environments/carla/navigation/behavior_agent.py:331
↓ 1 callersFunctionchannel_shuffle
(layer: Layer, groups=2)
core/architectures.py:109
↓ 1 callersFunctionchannel_shuffle
(layer: Layer, groups=2)
rl/networks/architectures.py:29
↓ 1 callersMethodcollect
(self)
core/learning.py:173
↓ 1 callersMethodcollision_and_car_avoid_manager
This module is in charge of warning in case of a collision and managing possible overtaking or tailgating chances. :para
rl/environments/carla/navigation/behavior_agent.py:258
↓ 1 callersFunctioncolor_distortion
Color distortion (jitter + drop) augmentation as defined in SimCLR paper
rl/augmentations/simclr.py:33
↓ 1 callersFunctioncolor_drop
Color drop augmentation as defined in SimCLR paper
rl/augmentations/simclr.py:62
↓ 1 callersFunctioncolor_jitter
Color jitter augmentation as defined in SimCLR paper
rl/augmentations/simclr.py:45
↓ 1 callersFunctioncompute_distance
Euclidean distance between 3D points :param location_1: 3D points :param location_2: 3D points
rl/environments/carla/tools/misc.py:148
↓ 1 callersFunctionconcat_dict_tensor
(*dicts, axis=0)
rl/utils.py:319
← previousnext →101–200 of 646, ranked by callers