Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Thinklab-SJTU/Bench2Drive
/ functions
Functions
1,781 in github.com/Thinklab-SJTU/Bench2Drive
⨍
Functions
1,781
◇
Types & classes
340
↓ 261 callers
Method
find
(self, filterstring)
scenario_runner/srunner/tests/carla_mocks/carla.py:68
↓ 196 callers
Method
get_waypoint
(self, transform)
scenario_runner/srunner/tests/carla_mocks/carla.py:142
↓ 135 callers
Method
get_location
returns the location for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:163
↓ 115 callers
Method
distance
(self, other)
scenario_runner/srunner/tests/carla_mocks/carla.py:98
↓ 114 callers
Method
get_transform
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:219
↓ 101 callers
Method
get_map
Get the current map
scenario_runner/srunner/scenariomanager/carla_data_provider.py:225
↓ 71 callers
Function
get_lane_key
Returns a key corresponding to the waypoint lane. Equivalent to a 'Lane' object and used to compare waypoint lanes
scenario_runner/srunner/scenarios/background_activity.py:31
↓ 71 callers
Method
get_map
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:252
↓ 63 callers
Method
get_velocity
returns the absolute velocity for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:149
↓ 62 callers
Method
request_new_actor
This method tries to create a new actor, returning it if successful (None otherwise).
scenario_runner/srunner/scenariomanager/carla_data_provider.py:585
↓ 59 callers
Method
get_time
Returns elapsed game time
scenario_runner/srunner/scenariomanager/timer.py:60
↓ 58 callers
Method
get_forward_vector
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:112
↓ 55 callers
Method
__init__
Setup actor
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2176
↓ 47 callers
Method
remove_all_actors
Remove all actors
scenario_runner/srunner/scenarios/basic_scenario.py:319
↓ 46 callers
Method
get_world
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:225
↓ 41 callers
Method
destroy
Cleanup of all ROS publishers
scenario_runner/srunner/autoagents/ros_agent.py:162
↓ 41 callers
Method
set_attribute
(self, key, value)
scenario_runner/srunner/tests/carla_mocks/carla.py:54
↓ 40 callers
Method
filter
(self, filterstring)
scenario_runner/srunner/tests/carla_mocks/carla.py:192
↓ 37 callers
Method
get_location
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:222
↓ 35 callers
Method
get_transform
returns the transform for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:177
↓ 33 callers
Method
get_world
Return world
scenario_runner/srunner/scenariomanager/carla_data_provider.py:218
↓ 32 callers
Method
get_actors
(self, ids=[])
scenario_runner/srunner/tests/carla_mocks/carla.py:261
↓ 29 callers
Method
next_row
Gets the next row of the recorder
scenario_runner/srunner/metrics/tools/metrics_parser.py:222
↓ 28 callers
Method
update
Upon reaching the timeout value the status changes to SUCCESS
scenario_runner/srunner/scenariomanager/timer.py:149
↓ 26 callers
Function
get_same_dir_lanes
Gets all the lanes with the same direction of the road of a wp. Ordered from the edge lane to the center one (from outwards to inwards)
scenario_runner/srunner/tools/scenario_helper.py:740
↓ 24 callers
Method
__init__
Setup actor
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:236
↓ 24 callers
Method
trace_route
Calculates the shortest route between a starting and ending waypoint. :param start_waypoint (carla.Waypoint): initial waypoint
scenario_runner/srunner/tests/carla_mocks/agents/navigation/basic_agent.py:145
↓ 22 callers
Method
_is_junction
(self, waypoint)
scenario_runner/srunner/scenarios/background_activity.py:819
↓ 22 callers
Function
compute_2d_distance
(loc1, loc2)
tools/utils.py:134
↓ 22 callers
Method
get_blueprint_library
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:255
↓ 21 callers
Method
__float__
(self)
scenario_runner/srunner/tools/openscenario_parser.py:137
↓ 21 callers
Method
get_frame
Returns elapsed game time
scenario_runner/srunner/scenariomanager/timer.py:81
↓ 21 callers
Method
get_global_route_planner
@return the global route planner
scenario_runner/srunner/scenariomanager/carla_data_provider.py:248
↓ 20 callers
Method
__init__
(self, name, actor, optional=False, termin
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:49
↓ 19 callers
Method
get_row_elements
returns a list with the elements of the row
scenario_runner/srunner/metrics/tools/metrics_parser.py:216
↓ 18 callers
Method
_destroy_actor
Destroy the actor and all its references
scenario_runner/srunner/scenarios/background_activity.py:2547
↓ 18 callers
Function
calculate_distance
Method to calculate the distance between to locations Note: It uses the direct distance between the current location and the targe
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:49
↓ 18 callers
Method
initialise
Set start time
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2185
↓ 17 callers
Method
get_waypoint_xodr
(self, a, b, c)
scenario_runner/srunner/tests/carla_mocks/carla.py:145
↓ 17 callers
Method
notification
(self, text, seconds=2.0)
scenario_runner/manual_control.py:458
↓ 17 callers
Method
spawn_actor
(self, blueprint, spawn_point, attach_to)
scenario_runner/srunner/tests/carla_mocks/carla.py:276
↓ 15 callers
Function
draw_point
Utility function to draw debugging points
scenario_runner/srunner/scenarios/background_activity.py:85
↓ 15 callers
Method
get_module
(self, name)
scenario_runner/no_rendering_mode.py:211
↓ 15 callers
Method
set_message
Set message
scenario_runner/srunner/scenariomanager/traffic_events.py:70
↓ 14 callers
Method
__init__
(self, max_speed, name="SetMaxSpeed")
scenario_runner/srunner/tools/background_manager.py:95
↓ 14 callers
Function
get_image_point
(loc, K, w2c)
tools/utils.py:15
↓ 14 callers
Method
listen
(self, callback)
scenario_runner/srunner/tests/carla_mocks/carla.py:234
↓ 14 callers
Function
oneshot_with_check
Check if the blackboard contains already variable_name and return a oneshot_behavior for behaviour.
scenario_runner/srunner/tools/openscenario_parser.py:77
↓ 14 callers
Method
wait_for_tick
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:258
↓ 13 callers
Method
_get_actor_state
Given an actor id, returns the specific variable of that actor at a given frame. Returns None if the actor_id or the state are missin
scenario_runner/srunner/metrics/tools/metrics_log.py:184
↓ 13 callers
Method
get_all_actors
@return all the world actors. This is an expensive call, hence why it is part of the CDP, but as this might not be used by everyone,
scenario_runner/srunner/scenariomanager/carla_data_provider.py:255
↓ 13 callers
Method
get_control
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:228
↓ 13 callers
Method
render
(self, display)
scenario_runner/no_rendering_mode.py:273
↓ 12 callers
Method
_is_location_behind_ego
Checks if an actor is behind the ego. Uses the route transform
scenario_runner/srunner/scenarios/background_activity.py:2185
↓ 12 callers
Method
get_criteria
Return the list of test criteria, including all the leaf nodes. Some criteria might have trigger conditions, which have to be filtere
scenario_runner/srunner/scenarios/basic_scenario.py:261
↓ 12 callers
Method
get_random_seed
@return the random seed.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:241
↓ 12 callers
Method
get_traffic_manager_port
Get the port of the traffic manager.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:831
↓ 12 callers
Function
get_waypoint_in_distance
Obtain a waypoint in a given distance from the current actor's location. Note: Search is stopped on first intersection. @return obtained
scenario_runner/srunner/tools/scenario_helper.py:228
↓ 12 callers
Method
set_dict
Set dictionary
scenario_runner/srunner/scenariomanager/traffic_events.py:78
↓ 12 callers
Method
write
(self, data)
leaderboard/leaderboard/autoagents/ros_base_agent.py:47
↓ 11 callers
Function
get_closest_traffic_light
Returns the traffic light closest to the waypoint. The distance is computed between the waypoint and the traffic light's bounding box. Ch
scenario_runner/srunner/tools/scenario_helper.py:602
↓ 11 callers
Function
get_parameter
(config, name)
scenario_runner/srunner/scenarios/background_activity_parametrizer.py:19
↓ 11 callers
Method
get_type
return the type
scenario_runner/srunner/scenariomanager/traffic_events.py:58
↓ 11 callers
Function
get_value_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/route_obstacles.py:36
↓ 11 callers
Function
get_xml_path
Extract the full path of a node within an XML tree Note: Catalogs are pulled from a separate file so the XML tree is split. This m
scenario_runner/srunner/scenarios/open_scenario.py:149
↓ 10 callers
Function
calculate_cube_vertices
(center, extent)
tools/utils.py:55
↓ 10 callers
Function
convert_dict_to_location
Convert a JSON string to a Carla.Location
scenario_runner/srunner/scenarios/actor_flow.py:34
↓ 10 callers
Method
distance
(v)
scenario_runner/no_rendering_mode.py:997
↓ 10 callers
Method
get_client
Get the CARLA client
scenario_runner/srunner/scenariomanager/carla_data_provider.py:198
↓ 10 callers
Method
get_connected_road_id
(waypoint)
tools/gen_hdmap.py:303
↓ 10 callers
Method
run_step
Pure virtual function to run one step of the controllers's control loop. This should be implemented in the user-defined agent impleme
scenario_runner/srunner/scenariomanager/actorcontrols/basic_control.py:111
↓ 10 callers
Method
terminate
Default terminate. Can be extended in derived class
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2979
↓ 10 callers
Method
terminate
Terminate the criterion. Can be extended by the user-derived class
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:77
↓ 9 callers
Method
_cleanup
Remove and destroy all actors
scenario_runner/scenario_runner.py:180
↓ 9 callers
Method
_vehicle_obstacle_detected
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
scenario_runner/srunner/tests/carla_mocks/agents/navigation/behavior_agent.py:84
↓ 9 callers
Method
get_settings
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:249
↓ 9 callers
Method
get_trafficmanager
(self, port)
scenario_runner/srunner/tests/carla_mocks/carla.py:290
↓ 9 callers
Method
load_world
(self, name)
scenario_runner/srunner/tests/carla_mocks/carla.py:284
↓ 9 callers
Method
make_surface
(tl)
scenario_runner/no_rendering_mode.py:400
↓ 9 callers
Method
tick
(self, input_data)
tools/data_collect.py:22
↓ 9 callers
Method
update_target_speed
Update the actor's target speed and set _init_speed to False. Args: speed (float): New target speed [m/s].
scenario_runner/srunner/scenariomanager/actorcontrols/basic_control.py:57
↓ 9 callers
Method
write
Public write function
scenario_runner/srunner/scenariomanager/result_writer.py:49
↓ 8 callers
Function
generate_target_waypoint
This method follow waypoints to a junction and choose path based on turn input. Turn input: LEFT -> -1, RIGHT -> 1, STRAIGHT -> 0 @return
scenario_runner/srunner/tools/scenario_helper.py:364
↓ 8 callers
Function
get_speed
Compute speed of a vehicle in Km/h. :param vehicle: the vehicle for which speed is calculated :return: speed as a float in Km/h
scenario_runner/srunner/tests/carla_mocks/agents/tools/misc.py:31
↓ 8 callers
Method
get_world
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:287
↓ 8 callers
Method
length
(v)
scenario_runner/no_rendering_mode.py:170
↓ 8 callers
Method
set_speed
Changes the target speed :param speed: new target speed in Km/h :return:
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:129
↓ 8 callers
Method
start
(self)
leaderboard/leaderboard/autoagents/ros1_agent.py:25
↓ 7 callers
Method
__init__
Setup all relevant parameters and create scenario
scenario_runner/srunner/scenarios/vanilla_turn.py:53
↓ 7 callers
Method
_add_actor_dict_element
Adds a new actor to the actor dictionary. 'exit_lane_key' is used to know at which exit lane (if any) is the vehicle 'at_oppo
scenario_runner/srunner/scenarios/background_activity.py:828
↓ 7 callers
Method
convert_position_to_transform
Convert an OpenScenario position into a CARLA transform Not supported: RoutePosition
scenario_runner/srunner/tools/openscenario_parser.py:579
↓ 7 callers
Function
draw_string
Utility function to draw debugging strings
scenario_runner/srunner/scenarios/background_activity.py:77
↓ 7 callers
Function
get_road_key
Returns a key corresponding to the waypoint road. Equivalent to a 'Road' object and used to compare waypoint roads
scenario_runner/srunner/scenarios/background_activity.py:36
↓ 7 callers
Method
get_status
returns False if watchdog exception occured, True otherwise
scenario_runner/srunner/scenariomanager/watchdog.py:84
↓ 7 callers
Function
get_value_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/object_crash_vehicle.py:34
↓ 7 callers
Method
set_global_plan
Set the plan (route) for the agent
scenario_runner/srunner/autoagents/autonomous_agent.py:100
↓ 7 callers
Method
tick
A decorator's tick is exactly the same as a normal proceedings for a Behaviour's tick except that it also ticks the decorated child n
scenario_runner/srunner/tools/py_trees_port.py:48
↓ 7 callers
Function
vector
Returns the unit vector from location_1 to location_2 :param location_1, location_2: carla.Location objects
scenario_runner/srunner/tests/carla_mocks/agents/tools/misc.py:138
↓ 6 callers
Method
_remove_actor_info
Removes all the references of the actor
scenario_runner/srunner/scenarios/background_activity.py:2509
↓ 6 callers
Function
_within_bound
Determines wether values in batch-dim are within bounds. :param metric: metric values :param min_bound: minimum bound, defaults to None
tools/efficiency_smoothness_benchmark.py:196
next →
1–100 of 1,781, ranked by callers