MCPcopy Create free account

hub / github.com/Thinklab-SJTU/Bench2Drive / functions

Functions1,781 in github.com/Thinklab-SJTU/Bench2Drive

↓ 261 callersMethodfind
(self, filterstring)
scenario_runner/srunner/tests/carla_mocks/carla.py:68
↓ 196 callersMethodget_waypoint
(self, transform)
scenario_runner/srunner/tests/carla_mocks/carla.py:142
↓ 135 callersMethodget_location
returns the location for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:163
↓ 115 callersMethoddistance
(self, other)
scenario_runner/srunner/tests/carla_mocks/carla.py:98
↓ 114 callersMethodget_transform
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:219
↓ 101 callersMethodget_map
Get the current map
scenario_runner/srunner/scenariomanager/carla_data_provider.py:225
↓ 71 callersFunctionget_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 callersMethodget_map
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:252
↓ 63 callersMethodget_velocity
returns the absolute velocity for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:149
↓ 62 callersMethodrequest_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 callersMethodget_time
Returns elapsed game time
scenario_runner/srunner/scenariomanager/timer.py:60
↓ 58 callersMethodget_forward_vector
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:112
↓ 55 callersMethod__init__
Setup actor
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2176
↓ 47 callersMethodremove_all_actors
Remove all actors
scenario_runner/srunner/scenarios/basic_scenario.py:319
↓ 46 callersMethodget_world
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:225
↓ 41 callersMethoddestroy
Cleanup of all ROS publishers
scenario_runner/srunner/autoagents/ros_agent.py:162
↓ 41 callersMethodset_attribute
(self, key, value)
scenario_runner/srunner/tests/carla_mocks/carla.py:54
↓ 40 callersMethodfilter
(self, filterstring)
scenario_runner/srunner/tests/carla_mocks/carla.py:192
↓ 37 callersMethodget_location
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:222
↓ 35 callersMethodget_transform
returns the transform for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:177
↓ 33 callersMethodget_world
Return world
scenario_runner/srunner/scenariomanager/carla_data_provider.py:218
↓ 32 callersMethodget_actors
(self, ids=[])
scenario_runner/srunner/tests/carla_mocks/carla.py:261
↓ 29 callersMethodnext_row
Gets the next row of the recorder
scenario_runner/srunner/metrics/tools/metrics_parser.py:222
↓ 28 callersMethodupdate
Upon reaching the timeout value the status changes to SUCCESS
scenario_runner/srunner/scenariomanager/timer.py:149
↓ 26 callersFunctionget_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 callersMethod__init__
Setup actor
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:236
↓ 24 callersMethodtrace_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 callersMethod_is_junction
(self, waypoint)
scenario_runner/srunner/scenarios/background_activity.py:819
↓ 22 callersFunctioncompute_2d_distance
(loc1, loc2)
tools/utils.py:134
↓ 22 callersMethodget_blueprint_library
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:255
↓ 21 callersMethod__float__
(self)
scenario_runner/srunner/tools/openscenario_parser.py:137
↓ 21 callersMethodget_frame
Returns elapsed game time
scenario_runner/srunner/scenariomanager/timer.py:81
↓ 21 callersMethodget_global_route_planner
@return the global route planner
scenario_runner/srunner/scenariomanager/carla_data_provider.py:248
↓ 20 callersMethod__init__
(self, name, actor, optional=False, termin
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:49
↓ 19 callersMethodget_row_elements
returns a list with the elements of the row
scenario_runner/srunner/metrics/tools/metrics_parser.py:216
↓ 18 callersMethod_destroy_actor
Destroy the actor and all its references
scenario_runner/srunner/scenarios/background_activity.py:2547
↓ 18 callersFunctioncalculate_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 callersMethodinitialise
Set start time
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2185
↓ 17 callersMethodget_waypoint_xodr
(self, a, b, c)
scenario_runner/srunner/tests/carla_mocks/carla.py:145
↓ 17 callersMethodnotification
(self, text, seconds=2.0)
scenario_runner/manual_control.py:458
↓ 17 callersMethodspawn_actor
(self, blueprint, spawn_point, attach_to)
scenario_runner/srunner/tests/carla_mocks/carla.py:276
↓ 15 callersFunctiondraw_point
Utility function to draw debugging points
scenario_runner/srunner/scenarios/background_activity.py:85
↓ 15 callersMethodget_module
(self, name)
scenario_runner/no_rendering_mode.py:211
↓ 15 callersMethodset_message
Set message
scenario_runner/srunner/scenariomanager/traffic_events.py:70
↓ 14 callersMethod__init__
(self, max_speed, name="SetMaxSpeed")
scenario_runner/srunner/tools/background_manager.py:95
↓ 14 callersFunctionget_image_point
(loc, K, w2c)
tools/utils.py:15
↓ 14 callersMethodlisten
(self, callback)
scenario_runner/srunner/tests/carla_mocks/carla.py:234
↓ 14 callersFunctiononeshot_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 callersMethodwait_for_tick
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:258
↓ 13 callersMethod_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 callersMethodget_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 callersMethodget_control
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:228
↓ 13 callersMethodrender
(self, display)
scenario_runner/no_rendering_mode.py:273
↓ 12 callersMethod_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 callersMethodget_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 callersMethodget_random_seed
@return the random seed.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:241
↓ 12 callersMethodget_traffic_manager_port
Get the port of the traffic manager.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:831
↓ 12 callersFunctionget_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 callersMethodset_dict
Set dictionary
scenario_runner/srunner/scenariomanager/traffic_events.py:78
↓ 12 callersMethodwrite
(self, data)
leaderboard/leaderboard/autoagents/ros_base_agent.py:47
↓ 11 callersFunctionget_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 callersFunctionget_parameter
(config, name)
scenario_runner/srunner/scenarios/background_activity_parametrizer.py:19
↓ 11 callersMethodget_type
return the type
scenario_runner/srunner/scenariomanager/traffic_events.py:58
↓ 11 callersFunctionget_value_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/route_obstacles.py:36
↓ 11 callersFunctionget_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 callersFunctioncalculate_cube_vertices
(center, extent)
tools/utils.py:55
↓ 10 callersFunctionconvert_dict_to_location
Convert a JSON string to a Carla.Location
scenario_runner/srunner/scenarios/actor_flow.py:34
↓ 10 callersMethoddistance
(v)
scenario_runner/no_rendering_mode.py:997
↓ 10 callersMethodget_client
Get the CARLA client
scenario_runner/srunner/scenariomanager/carla_data_provider.py:198
↓ 10 callersMethodget_connected_road_id
(waypoint)
tools/gen_hdmap.py:303
↓ 10 callersMethodrun_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 callersMethodterminate
Default terminate. Can be extended in derived class
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2979
↓ 10 callersMethodterminate
Terminate the criterion. Can be extended by the user-derived class
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:77
↓ 9 callersMethod_cleanup
Remove and destroy all actors
scenario_runner/scenario_runner.py:180
↓ 9 callersMethod_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 callersMethodget_settings
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:249
↓ 9 callersMethodget_trafficmanager
(self, port)
scenario_runner/srunner/tests/carla_mocks/carla.py:290
↓ 9 callersMethodload_world
(self, name)
scenario_runner/srunner/tests/carla_mocks/carla.py:284
↓ 9 callersMethodmake_surface
(tl)
scenario_runner/no_rendering_mode.py:400
↓ 9 callersMethodtick
(self, input_data)
tools/data_collect.py:22
↓ 9 callersMethodupdate_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 callersMethodwrite
Public write function
scenario_runner/srunner/scenariomanager/result_writer.py:49
↓ 8 callersFunctiongenerate_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 callersFunctionget_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 callersMethodget_world
(self)
scenario_runner/srunner/tests/carla_mocks/carla.py:287
↓ 8 callersMethodlength
(v)
scenario_runner/no_rendering_mode.py:170
↓ 8 callersMethodset_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 callersMethodstart
(self)
leaderboard/leaderboard/autoagents/ros1_agent.py:25
↓ 7 callersMethod__init__
Setup all relevant parameters and create scenario
scenario_runner/srunner/scenarios/vanilla_turn.py:53
↓ 7 callersMethod_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 callersMethodconvert_position_to_transform
Convert an OpenScenario position into a CARLA transform Not supported: RoutePosition
scenario_runner/srunner/tools/openscenario_parser.py:579
↓ 7 callersFunctiondraw_string
Utility function to draw debugging strings
scenario_runner/srunner/scenarios/background_activity.py:77
↓ 7 callersFunctionget_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 callersMethodget_status
returns False if watchdog exception occured, True otherwise
scenario_runner/srunner/scenariomanager/watchdog.py:84
↓ 7 callersFunctionget_value_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/object_crash_vehicle.py:34
↓ 7 callersMethodset_global_plan
Set the plan (route) for the agent
scenario_runner/srunner/autoagents/autonomous_agent.py:100
↓ 7 callersMethodtick
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 callersFunctionvector
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 callersMethod_remove_actor_info
Removes all the references of the actor
scenario_runner/srunner/scenarios/background_activity.py:2509
↓ 6 callersFunction_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