MCPcopy Create free account

hub / github.com/OpenDriveLab/DriveAdapter / functions

Functions1,526 in github.com/OpenDriveLab/DriveAdapter

↓ 2 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
open_loop_training/code/encoder_decoder_framework.py:471
↓ 2 callersMethod_path_search
This function finds the shortest path connecting origin and destination using A* search with distance heuristic. origin
agents/navigation/global_route_planner.py:214
↓ 2 callersMethod_set_new_velocity
Calculate and set the new actor veloctiy given the current actor location and the _next_location_ If _consider_obstacles is
scenario_runner/srunner/scenariomanager/actorcontrols/simple_vehicle_control.py:211
↓ 2 callersMethod_trace_route
This method sets up a global router and returns the optimal route from start_waypoint to end_waypoint
agents/navigation/basic_agent.py:61
↓ 2 callersMethod_translate_tl_state
(self, state)
leaderboard/team_code/base_agent.py:380
↓ 2 callersMethod_turn_decision
This method returns the turn decision (RoadOption) for pair of edges around current index of route list
agents/navigation/global_route_planner.py:254
↓ 2 callersMethod_update_plan
Update the plan (waypoint list) of the LocalPlanner
scenario_runner/srunner/scenariomanager/actorcontrols/npc_vehicle_control.py:46
↓ 2 callersFunctionarray_to_bytes
(x: np.ndarray)
leaderboard/team_code/roach_ap_agent_data_collection.py:30
↓ 2 callersFunctionautodetect_proxy
()
leaderboard/leaderboard/utils/checkpoint_tools.py:10
↓ 2 callersMethodblits
(destination_surface, source_surfaces, rect=None, blend_mode=0)
scenario_runner/no_rendering_mode.py:165
↓ 2 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataloade
open_loop_training/code/datasets/builder.py:19
↓ 2 callersFunctionbuild_sampler
(cfg, default_args)
open_loop_training/code/datasets/samplers/sampler.py:6
↓ 2 callersFunctionchoose_at_junction
This function chooses the appropriate waypoint from next_choices based on direction
scenario_runner/srunner/tools/scenario_helper.py:382
↓ 2 callersMethodcleanup
Remove and destroy all sensors
leaderboard/leaderboard/autoagents/agent_wrapper.py:271
↓ 2 callersMethodcleanup
Remove and destroy all sensors
scenario_runner/srunner/autoagents/agent_wrapper.py:89
↓ 2 callersMethodclip_surfaces
(self, clipping_rect)
scenario_runner/no_rendering_mode.py:1121
↓ 2 callersFunctioncollect_results_cpu
(result_part, size, tmpdir=None)
open_loop_training/code/core/evaluation/eval_tool.py:119
↓ 2 callersMethodcompute_returns_and_advantage
(self, last_value: th.Tensor, dones: np.ndarray)
roach/models/ppo_buffer.py:78
↓ 2 callersMethodconvert_condition_to_atomic
Convert an OpenSCENARIO condition into a Behavior/Criterion atomic If there is a delay defined in the condition, then the condition
scenario_runner/srunner/tools/openscenario_parser.py:590
↓ 2 callersFunctionconvert_transform_to_location
Convert a vector of transforms to a vector of locations
leaderboard/leaderboard/scenarios/route_scenario.py:125
↓ 2 callersFunctionconvert_transform_to_location
Convert a vector of transforms to a vector of locations
scenario_runner/srunner/scenarios/route_scenario.py:89
↓ 2 callersFunctiondepth_transform
(depth, resize_dims, crop, flip)
open_loop_training/code/datasets/pipelines/transform.py:386
↓ 2 callersFunctiondraw_waypoints
Draw a list of waypoints at a certain height given in z. :param world: carla.world object :param waypoints: list or iterable con
agents/tools/misc.py:15
↓ 2 callersMethodentropy
(self)
roach/models/distributions.py:159
↓ 2 callersFunctionexpanduser
(path)
open_loop_training/code/datasets/base_dataset.py:16
↓ 2 callersMethodextract_sensor_feat
(self, img, state, img_metas, points, is_train=True)
open_loop_training/code/encoder_decoder_framework.py:308
↓ 2 callersMethodforward
(self, locs, yaws, spds, acts)
leaderboard/team_code/driveadapter_agent.py:76
↓ 2 callersMethodforward_head
Forward for head part which is called after every decoder layer. Args: decoder_out (Tensor): in shape (num_queries, batch_size, c)
open_loop_training/code/model_code/dense_heads/mask2former4seg.py:210
↓ 2 callersMethodforward_train
(self, batch)
open_loop_training/code/encoder_decoder_framework.py:232
↓ 2 callersFunctiongenerate_target_waypoint_list_multilane
This methods generates a waypoint list which leads the vehicle to a parallel lane. The change input must be 'left' or 'right', depending on w
scenario_runner/srunner/tools/scenario_helper.py:259
↓ 2 callersFunctionget_actor_display_name
(actor, truncate=250)
scenario_runner/no_rendering_mode.py:157
↓ 2 callersMethodget_actor_ids_with_role_name
Returns a list of actor ids that match the given role_name. Args: role_name (str): string with the desired role_name to
scenario_runner/srunner/metrics/tools/metrics_log.py:87
↓ 2 callersMethodget_avg_ep_stat
(ep_stat_buffer, prefix='')
roach/utils/wandb_callback.py:195
↓ 2 callersMethodget_contour
create contour
scenario_runner/srunner/tools/scenario_helper.py:496
↓ 2 callersMethodget_controller
Extract the object controller from the OSC XML or a catalog Args: xml_tree: Containing the controller information,
scenario_runner/srunner/tools/openscenario_parser.py:340
↓ 2 callersFunctionget_crossing_point
Get the next crossing point location in front of the ego vehicle @return point of crossing
scenario_runner/srunner/tools/scenario_helper.py:121
↓ 2 callersMethodget_data
Returns the data of a sensor
scenario_runner/srunner/autoagents/sensor_interface.py:121
↓ 2 callersFunctionget_distance_along_route
Calculate the distance of the given location along the route Note: If the location is not along the route, the route length will be returned
scenario_runner/srunner/tools/scenario_helper.py:25
↓ 2 callersMethodget_ego
Get the CARLA ego
scenario_runner/srunner/scenariomanager/carla_data_provider.py:186
↓ 2 callersMethodget_ego_vehicle_id
Returns the id of the ego vehicle.
scenario_runner/srunner/metrics/tools/metrics_log.py:81
↓ 2 callersMethodget_frame
Returns elapsed game time
scenario_runner/srunner/scenariomanager/timer.py:76
↓ 2 callersMethodget_friction_from_env_action
Extract the CARLA road friction coefficient from an OSC EnvironmentAction Args: xml_tree: Containing the EnvironmentActi
scenario_runner/srunner/tools/openscenario_parser.py:260
↓ 2 callersMethodget_fusion_feat
(self, cam_feat, lidar_feat,)
open_loop_training/code/encoder_decoder_framework.py:294
↓ 2 callersFunctionget_geometric_linear_intersection
Obtain a intersection point between two actor's location by using their waypoints (wp) @return point of intersection of the two vehicles
scenario_runner/srunner/tools/scenario_helper.py:138
↓ 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
agents/navigation/local_planner_behavior.py:158
↓ 2 callersMethodget_last_waypoint_command
Get timestamp of the last issued waypoint control command returns: Timestamp of last waypoint control command
scenario_runner/srunner/scenariomanager/actorcontrols/actor_control.py:135
↓ 2 callersFunctionget_nearby_lights
(vehicle, lights, pixels_per_meter=5.5, size=512, radius=5)
leaderboard/team_code/map_agent.py:55
↓ 2 callersMethodget_noise
(self)
roach/utils/expert_noiser.py:37
↓ 2 callersMethodget_noise_removing
(self)
roach/utils/expert_noiser.py:51
↓ 2 callersMethodget_resolution
Accessor for self._sampling_resolution
agents/navigation/global_route_planner_dao.py:77
↓ 2 callersMethodget_running_status
returns: bool: False if watchdog exception occured, True otherwise
scenario_runner/srunner/scenariomanager/scenario_manager.py:187
↓ 2 callersMethodget_topology
Accessor for topology. This function retrieves topology from the server as a list of road segments as pairs of waypoint objec
agents/navigation/global_route_planner_dao.py:29
↓ 2 callersMethodget_total_frame_count
Returns an int with the total amount of frames the simulation lasted.
scenario_runner/srunner/metrics/tools/metrics_log.py:52
↓ 2 callersMethodget_traffic_light_from_osc_name
Returns a carla.TrafficLight instance that matches the name given
scenario_runner/srunner/tools/openscenario_parser.py:98
↓ 2 callersMethodget_weather_from_env_action
Extract the CARLA weather parameters from an OSC EnvironmentAction Args: xml_tree: Containing the EnvironmentAction,
scenario_runner/srunner/tools/openscenario_parser.py:289
↓ 2 callersMethodhandle_actor_batch
Forward a CARLA command batch to spawn actors to CARLA, and gather the responses. Returns list of actors on success, none otherwise
scenario_runner/srunner/scenariomanager/carla_data_provider.py:502
↓ 2 callersMethodinitialise
Initialize the start time of this condition
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:254
↓ 2 callersMethodinitialise
Initialise the criterion. Can be extended by the user-derived class
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:67
↓ 2 callersMethodis_actor_affected_by_stop
Check if the given actor is affected by the stop
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1942
↓ 2 callersMethodis_affected_by_stop
Check if the given actor is affected by the stop
roach/criteria/run_stop_sign.py:94
↓ 2 callersMethodis_time_for_noise
(self, steer)
roach/utils/expert_noiser.py:63
↓ 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
agents/tools/misc.py:42
↓ 2 callersMethodlength
(v)
scenario_runner/no_rendering_mode.py:170
↓ 2 callersMethodload_img
(self, filename)
open_loop_training/code/datasets/pipelines/loading.py:127
↓ 2 callersMethodload_json
(self, fname)
open_loop_training/code/datasets/carla_dataset.py:94
↓ 2 callersMethodoffset_then_rotate
(self, target_2d_world_coor, ref_2d_wolrd_coor, ref_yaw)
leaderboard/team_code/driveadapter_agent.py:393
↓ 2 callersFunctionparse_bounding_box
Parses a list into a carla.BoundingBox Args: info (list): list corresponding to a row of the recorder
scenario_runner/srunner/metrics/tools/metrics_parser.py:187
↓ 2 callersMethodparse_events
Parse the keyboard events and set the vehicle controls accordingly
scenario_runner/srunner/autoagents/human_agent.py:180
↓ 2 callersMethodpassed_enough_time
Returns true or false depending on the time that has passed from the first time this function was called
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2265
↓ 2 callersMethodplot
(self, cam_feats, fusion_feats, img_metas)
open_loop_training/code/encoder_decoder_framework.py:321
↓ 2 callersMethodpoint_inside_boundingbox
X :param point: :param bb_center: :param bb_extent: :return:
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1917
↓ 2 callersMethodpoint_inside_boundingbox
X :param point: :param bb_center: :param bb_extent: :return:
roach/criteria/run_stop_sign.py:131
↓ 2 callersMethodproba_distribution
(self, alpha, beta)
roach/models/distributions.py:220
↓ 2 callersMethodprocess_act
(action, acc_as_action, train=True)
roach/utils/rl_birdview_wrapper.py:124
↓ 2 callersMethodprocess_obs
(obs, input_states, train=True)
roach/utils/rl_birdview_wrapper.py:90
↓ 2 callersMethodremove_actor_by_id
Remove an actor from the pool using its ID
scenario_runner/srunner/scenariomanager/carla_data_provider.py:746
↓ 2 callersMethodreset
Pure virtual function to reset the controller. This should be implemented in the user-defined agent implementation.
scenario_runner/srunner/scenariomanager/actorcontrols/basic_control.py:90
↓ 2 callersMethodreset
(world)
roach/utils/traffic_light.py:89
↓ 2 callersMethodreset_vehicle
(self)
agents/navigation/local_planner.py:86
↓ 2 callersFunctionresize_img
(img)
camera_calibration/collect_data_for_calibration.py:208
↓ 2 callersMethodrotozoom
(self, angle, scale)
scenario_runner/no_rendering_mode.py:424
↓ 2 callersMethodrun
Run all scenarios according to provided commandline args
scenario_runner/scenario_runner.py:477
↓ 2 callersMethodsave
(self, near_node, far_node, near_command, far_command, tick_data, supervision_dict, render_img, should_brake)
leaderboard/team_code/roach_ap_agent_data_collection.py:571
↓ 2 callersMethodsave_state
(self, endpoint)
leaderboard/leaderboard/utils/route_indexer.py:66
↓ 2 callersMethodselect_hero_actor
(self)
scenario_runner/no_rendering_mode.py:888
↓ 2 callersMethodsensors
Define the sensor suite required by the agent :return: a list containing the required sensors
scenario_runner/srunner/autoagents/ros_agent.py:247
↓ 2 callersMethodset_client
Set the CARLA client
scenario_runner/srunner/scenariomanager/carla_data_provider.py:165
↓ 2 callersMethodset_ego_vehicle_route
Set the route of the ego vehicle extend ego_vehicle_route concept to support multi ego_vehicle scenarios
scenario_runner/srunner/scenariomanager/carla_data_provider.py:412
↓ 2 callersMethodset_global_plan
Set the plan (route) for the agent
leaderboard/leaderboard/autoagents/autonomous_agent.py:120
↓ 2 callersMethodset_speed
Request new target speed. :param speed: new target speed in Km/h :return:
agents/navigation/local_planner.py:153
↓ 2 callersMethodset_traffic_manager_port
Set the port to use for the traffic manager.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:779
↓ 2 callersMethodshow
(self)
leaderboard/team_code/planner.py:29
↓ 2 callersMethodstep
(self, error)
open_loop_training/code/encoder_decoder_framework.py:34
↓ 2 callersMethodstep
(self, error)
leaderboard/team_code/pid_controller.py:16
↓ 2 callersMethodterminate
This function sets the status of all leaves in the scenario tree to INVALID
scenario_runner/srunner/scenarios/basic_scenario.py:288
↓ 2 callersMethodtick
(self, timeout)
camera_calibration/collect_data_for_calibration.py:371
↓ 2 callersMethodtrain
(self)
roach/models/ppo.py:103
↓ 2 callersFunctiontransform_to_pos_vec
Convert left/right/front to a meaningful CARLA position
leaderboard/leaderboard/scenarios/route_scenario.py:140
↓ 2 callersFunctiontransform_to_pos_vec
Convert left/right/front to a meaningful CARLA position
scenario_runner/srunner/scenarios/route_scenario.py:104
↓ 2 callersMethodupdate
If the weather animation is true, the new sun position is calculated w.r.t delta_time Nothing happens if animation or datetime are N
scenario_runner/srunner/scenariomanager/weather_sim.py:70
← previousnext →201–300 of 1,526, ranked by callers