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
↓ 2 callers
Function
discount_cumsum
Source: https://github.com/openai/spinningup/blob/master/spinup/algos/tf1/ppo/core.py#L45
rl/utils.py:57
↓ 2 callers
Function
draw_transform
(debug, trans, col=Colors.red, lt=-1)
rl/environments/carla/tools/utils.py:217
↓ 2 callers
Function
draw_waypoint_union
(debug, w0, w1, color=Colors.red, lt=5)
rl/environments/carla/tools/utils.py:209
↓ 2 callers
Method
dynamics_predict
(self, inputs: dict)
core/networks.py:207
↓ 2 callers
Method
elapsed_time
Returns the total elapsed time in seconds, computed from the last reset() call.
rl/environments/carla/environment.py:541
↓ 2 callers
Method
end_trajectory
Terminates the current trajectory by adding the value of the terminal state
rl/agents/ppo.py:692
↓ 2 callers
Method
evaluate
(self, **kwargs)
core/learning.py:163
↓ 2 callers
Method
get_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 callers
Method
get_memory
(self)
core/carla_agent.py:519
↓ 2 callers
Method
get_memory
Instantiate the agent's memory; easy to subclass
rl/agents/ppo.py:570
↓ 2 callers
Method
get_observation
(self, sensors_data: dict)
rl/environments/carla/environment.py:535
↓ 2 callers
Method
get_policy_gradients
(self, batch)
rl/agents/ppo.py:228
↓ 2 callers
Method
get_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 callers
Method
get_value_gradients
(self, batch)
rl/agents/ppo.py:254
↓ 2 callers
Method
imitation_learning
(self)
core/learning.py:180
↓ 2 callers
Function
is_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 callers
Method
learn
(self, *args, **kwargs)
rl/agents/agents.py:86
↓ 2 callers
Method
load_weights
(self)
rl/networks/networks.py:35
↓ 2 callers
Method
on_event
(self, event)
rl/environments/carla/sensors.py:105
↓ 2 callers
Method
policy_layers
Defines the architecture of the policy-network
rl/networks/networks.py:181
↓ 2 callers
Method
policy_network
(self, **kwargs)
rl/networks/networks.py:214
↓ 2 callers
Method
predict
(self, inputs: TensorType)
core/networks.py:181
↓ 2 callers
Method
predict_last_value
(self, state, timestep: float, is_terminal: bool)
rl/networks/networks.py:158
↓ 2 callers
Method
preprocess
Augmentation function used during the reinforcement learning phase
core/carla_agent.py:523
↓ 2 callers
Method
register_event
Registers a given [callback] to a specific [event]
rl/environments/carla/environment.py:371
↓ 2 callers
Method
reinforcement_learning
(self)
core/learning.py:183
↓ 2 callers
Method
reset_info
(self)
core/carla_env.py:223
↓ 2 callers
Function
sample_origins
(amount=1, seed=None)
core/learning.py:19
↓ 2 callers
Method
save_weights
(self)
rl/networks/networks.py:38
↓ 2 callers
Method
skip
Skips the given amount of frames
rl/environments/carla/environment.py:409
↓ 2 callers
Method
spawn_actors
Instantiate vehicles and pedestrians in the current world
rl/environments/carla/environment.py:281
↓ 2 callers
Method
step
(self, action)
core/carla_agent.py:45
↓ 2 callers
Method
summary
(self)
rl/networks/networks.py:41
↓ 2 callers
Function
tf_grayscale
(rgb_image)
rl/augmentations/augmentations.py:119
↓ 2 callers
Function
tf_repeat_channels
(image, n=3)
rl/augmentations/augmentations.py:267
↓ 2 callers
Method
to_continuous
Maps a discrete array of bins into their corresponding continuous values
rl/environments/carla/environment.py:1290
↓ 2 callers
Method
to_discrete
Maps a continuous array of values into their corresponding bins (i.e. inverse of `interpolate`)
rl/environments/carla/environment.py:1208
↓ 2 callers
Method
to_discrete
Maps a continuous array of values into their corresponding bins (i.e. inverse of `interpolate`)
rl/environments/carla/environment.py:1299
↓ 2 callers
Method
trace_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 callers
Method
value_predict
(self, inputs)
core/networks.py:178
↓ 1 callers
Method
__enter__
Enables synchronous mode. Usage: with carla_env as env: # code...
rl/environments/carla/environment.py:441
↓ 1 callers
Method
__exit__
Disables synchronous mode
rl/environments/carla/environment.py:451
↓ 1 callers
Method
__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 callers
Method
__init__
(self, agent)
rl/networks/networks.py:14
↓ 1 callers
Method
__init__
(self, env: Union[gym.Env, str], batch_size: int, seed=None, weights_dir='weights', name='agent',
rl/agents/agents.py:17
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_clip_actions
Clips actions to prevent numerical instability when computing (log-)probabilities. - Use for Beta distribution only.
core/networks.py:140
↓ 1 callers
Method
_compute_route_size
Compute the size (in meters) of the entire planned route
rl/environments/carla/navigation/route.py:98
↓ 1 callers
Method
_control_as_vector
(self)
rl/environments/carla/environment.py:1102
↓ 1 callers
Method
_create_sensors
(self)
rl/environments/carla/environment.py:549
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_get_input_layers
Transforms arbitrary complex state-spaces (and, optionally, action-spaces) as input layers
core/networks.py:237
↓ 1 callers
Method
_get_navigation_features
features: N distances from current vehicle location to N next route waypoints' locations
core/carla_env.py:366
↓ 1 callers
Method
_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 callers
Method
_get_road_features
(self)
rl/environments/carla/environment.py:1105
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_get_vehicle_features
(self)
rl/environments/carla/environment.py:1135
↓ 1 callers
Method
_init_action_space
(self)
rl/agents/ppo.py:148
↓ 1 callers
Method
_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 callers
Method
_init_gradient_clipping
(self, clip_norm: Union[tuple, float, None])
rl/agents/ppo.py:114
↓ 1 callers
Method
_is_quit_shortcut
(key)
rl/environments/carla/environment.py:619
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_parse_events
(self)
rl/environments/carla/environment.py:604
↓ 1 callers
Method
_parse_vehicle_keys
(self)
rl/environments/carla/environment.py:622
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_predict
(self, inputs: TensorType)
core/networks.py:188
↓ 1 callers
Method
_spawn
Spawns itself within a carla.World.
rl/environments/carla/sensors.py:87
↓ 1 callers
Method
_store_item
(self, item, index: int, name: str)
rl/environments/carla/environment.py:818
↓ 1 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_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 callers
Method
_update_env_state
(self)
rl/environments/carla/environment.py:1152
↓ 1 callers
Method
_update_target_waypoint
(self)
rl/environments/carla/environment.py:1160
↓ 1 callers
Method
_update_travelled_distance
(self)
rl/environments/carla/environment.py:1169
↓ 1 callers
Method
_update_waypoint_similarity
(self)
rl/environments/carla/environment.py:1163
↓ 1 callers
Method
act
(self, state, *args, **kwargs)
rl/agents/agents.py:74
↓ 1 callers
Method
act2
(self, inputs: Union[tf.Tensor, List[tf.Tensor], Dict[str, tf.Tensor]])
rl/networks/networks.py:170
↓ 1 callers
Method
actions_to_control
Specifies the mapping between an actions vector and the vehicle's control.
rl/environments/carla/environment.py:531
↓ 1 callers
Method
augment
Augmentation function used during the imitation learning phase
core/carla_agent.py:527
↓ 1 callers
Method
before_world_step
Callback: called before world.tick()
rl/environments/carla/environment.py:420
↓ 1 callers
Method
before_world_step
(env)
rl/environments/carla/environment.py:661
↓ 1 callers
Method
car_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 callers
Function
channel_shuffle
(layer: Layer, groups=2)
core/architectures.py:109
↓ 1 callers
Function
channel_shuffle
(layer: Layer, groups=2)
rl/networks/architectures.py:29
↓ 1 callers
Method
collect
(self)
core/learning.py:173
↓ 1 callers
Method
collision_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 callers
Function
color_distortion
Color distortion (jitter + drop) augmentation as defined in SimCLR paper
rl/augmentations/simclr.py:33
↓ 1 callers
Function
color_drop
Color drop augmentation as defined in SimCLR paper
rl/augmentations/simclr.py:62
↓ 1 callers
Function
color_jitter
Color jitter augmentation as defined in SimCLR paper
rl/augmentations/simclr.py:45
↓ 1 callers
Function
compute_distance
Euclidean distance between 3D points :param location_1: 3D points :param location_2: 3D points
rl/environments/carla/tools/misc.py:148
↓ 1 callers
Function
concat_dict_tensor
(*dicts, axis=0)
rl/utils.py:319
← previous
next →
101–200 of 646, ranked by callers