MCPcopy Create free account

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

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

↓ 1 callersMethod_remove_road_lane
Removes a road lane
scenario_runner/srunner/scenarios/background_activity.py:1860
↓ 1 callersMethod_render_speed_limits
(self, surface, list_sl, world_to_pixel, world_to_pixel_width)
scenario_runner/no_rendering_mode.py:1039
↓ 1 callersMethod_render_traffic_lights
(self, surface, list_tl, world_to_pixel)
scenario_runner/no_rendering_mode.py:1009
↓ 1 callersMethod_render_vehicles
(self, surface, list_v, world_to_pixel)
scenario_runner/no_rendering_mode.py:1090
↓ 1 callersMethod_render_walkers
(self, surface, list_w, world_to_pixel)
scenario_runner/no_rendering_mode.py:1074
↓ 1 callersMethod_replace_walker
As the adversary is probably, replace it with another one
scenario_runner/srunner/scenarios/object_crash_vehicle.py:350
↓ 1 callersMethod_replace_walker
As the adversary is probably, replace it with another one
scenario_runner/srunner/scenarios/object_crash_vehicle.py:557
↓ 1 callersMethod_replace_walker
As the adversary is probably, replace it with another one
scenario_runner/srunner/scenarios/object_crash_intersection.py:417
↓ 1 callersMethod_replace_walker
As the adversary is probably, replace it with another one
scenario_runner/srunner/scenarios/pedestrian_crossing.py:220
↓ 1 callersMethod_reset
Reset all parameters
scenario_runner/srunner/scenariomanager/scenario_manager.py:67
↓ 1 callersMethod_reset_world_settings
Changes the modified world settings back to asynchronous
leaderboard/leaderboard/leaderboard_evaluator.py:249
↓ 1 callersFunction_retrieve_options
Compute the type of connection between the current active waypoint and the multiple waypoints present in list_waypoints. The result is encode
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:287
↓ 1 callersMethod_run_openscenario
Run a scenario based on OpenSCENARIO
scenario_runner/scenario_runner.py:490
↓ 1 callersMethod_run_route
Run the route scenario
scenario_runner/scenario_runner.py:474
↓ 1 callersMethod_run_scenarios
Run conventional scenarios (e.g. implemented using the Python API of ScenarioRunner)
scenario_runner/scenario_runner.py:451
↓ 1 callersMethod_scan_for_stop_sign
Check the stop signs to see if any of them affect the actor. Ignore all checks when going backwards or through an opposite direction
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1867
↓ 1 callersMethod_search_for_next_junction
Check if closeby to a junction. The closest one will always be the first
scenario_runner/srunner/scenarios/background_activity.py:937
↓ 1 callersMethod_set_actor_information
Extract all actors and their corresponding specification NOTE: The rolename property has to be unique!
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:232
↓ 1 callersMethod_set_actors_speed
Sets the speed of all the BA actors, using the ego's target speed as reference. This avoids issues with the speed limits, as newly cr
scenario_runner/srunner/scenarios/background_activity.py:2495
↓ 1 callersMethod_set_carla_town
Extract the CARLA town (level) from the RoadNetwork information from OpenSCENARIO Note: The specification allows multiple Logics ele
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:155
↓ 1 callersMethod_set_parameters
Parse the complete scenario definition file, and replace all parameter references with the actual values Set _global_paramet
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:217
↓ 1 callersMethod_set_scenario_name
Extract the scenario name from the OpenSCENARIO header information
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:144
↓ 1 callersMethod_set_traffic_event
Creates the traffic event / updates it
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1082
↓ 1 callersMethod_setup_scenario_end
This function adds and additional behavior to the scenario, which is triggered after it has ended. The Blackboard variable is set to
scenario_runner/srunner/scenarios/basic_scenario.py:194
↓ 1 callersMethod_setup_scenario_trigger
Normal scenario trigger but in parallel, a behavior that ensures the pedestrian stays active
scenario_runner/srunner/scenarios/object_crash_vehicle.py:363
↓ 1 callersMethod_setup_scenario_trigger
This function creates a trigger maneuver, that has to be finished before the real scenario starts. This implementation focuses on the
scenario_runner/srunner/scenarios/basic_scenario.py:174
↓ 1 callersMethod_setup_simulation
Prepares the simulation by getting the client, and setting up the world and traffic manager settings
leaderboard/leaderboard/leaderboard_evaluator.py:197
↓ 1 callersMethod_spawn_actor
Spawns an actor
scenario_runner/srunner/scenarios/background_activity.py:2119
↓ 1 callersMethod_spawn_actor
(self)
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3097
↓ 1 callersMethod_spawn_actor
(self)
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3214
↓ 1 callersMethod_spawn_ego_vehicle
Spawn the ego vehicle at the first waypoint of the route
leaderboard/leaderboard/scenarios/route_scenario.py:144
↓ 1 callersMethod_spawn_ego_vehicle
Spawn the ego vehicle at the first waypoint of the route
scenario_runner/srunner/scenarios/route_scenario.py:120
↓ 1 callersMethod_spawn_hero
(self)
scenario_runner/no_rendering_mode.py:897
↓ 1 callersMethod_spawn_obstacle
Spawns the obstacle actor by displacing its position to the right
scenario_runner/srunner/scenarios/route_obstacles.py:355
↓ 1 callersMethod_spawn_side_prop
(self, wp)
scenario_runner/srunner/scenarios/route_obstacles.py:101
↓ 1 callersMethod_spawn_side_prop
(self, wp)
scenario_runner/srunner/scenarios/route_obstacles.py:329
↓ 1 callersMethod_spawn_side_prop
Spawn the accident indication signal
scenario_runner/srunner/scenarios/construction_crash_vehicle.py:109
↓ 1 callersMethod_split_actors
(self)
scenario_runner/no_rendering_mode.py:975
↓ 1 callersMethod_start_road_back_vehicles
Restarts all road vehicles stopped by `_stop_road_back_vehicles`.
scenario_runner/srunner/scenarios/background_activity.py:1778
↓ 1 callersMethod_start_road_front_vehicles
Restarts all road vehicles stopped by `_stop_road_front_vehicles`.
scenario_runner/srunner/scenarios/background_activity.py:1755
↓ 1 callersMethod_stop_non_ego_route_entries
Clears the junction, and all subsequent actors that enter it
scenario_runner/srunner/scenarios/background_activity.py:2067
↓ 1 callersMethod_stop_road_back_vehicles
Stops all road vehicles behind the ego. Use `_start_road_back_vehicles` to make them move again.
scenario_runner/srunner/scenarios/background_activity.py:1767
↓ 1 callersMethod_stop_road_front_vehicles
Stops all road vehicles in front of the ego. Use `_start_road_front_vehicles` to make them move again.
scenario_runner/srunner/scenarios/background_activity.py:1740
↓ 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
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:298
↓ 1 callersMethod_switch_route_sources
Disables all sources that are part of the ego's route
scenario_runner/srunner/scenarios/background_activity.py:1802
↓ 1 callersMethod_switch_to_junction_mode
Prepares the junction mode, removing all road behaviours. Actors that are stopped via a scenario will still wait.
scenario_runner/srunner/scenarios/background_activity.py:841
↓ 1 callersMethod_tailgating
This method is in charge of tailgating behaviors. :param location: current location of the agent :param waypoint: cu
scenario_runner/srunner/tests/carla_mocks/agents/navigation/behavior_agent.py:150
↓ 1 callersMethod_tick_scenario
Run next tick of scenario and the agent and tick the world.
leaderboard/leaderboard/scenarios/scenario_manager.py:163
↓ 1 callersMethod_tick_scenario
Run next tick of scenario and the agent. If running synchornously, it also handles the ticking of the world.
scenario_runner/srunner/scenariomanager/scenario_manager.py:150
↓ 1 callersMethod_turn_all_lights_off
Turns off the lights of all object
scenario_runner/srunner/scenariomanager/lights_sim.py:134
↓ 1 callersMethod_turn_close_lights_on
Turns on the lights of all the objects close to the ego vehicle
scenario_runner/srunner/scenariomanager/lights_sim.py:91
↓ 1 callersMethod_turn_decision
This method returns the turn decision (RoadOption) for pair of edges around current index of route list
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:320
↓ 1 callersMethod_update_ego_data
Checks the ego location to see if it has moved closer to the next route waypoint, updating its information. This never checks for bac
scenario_runner/srunner/scenarios/background_activity.py:2556
↓ 1 callersMethod_update_information
This method updates the information regarding the ego vehicle based on the surrounding world.
scenario_runner/srunner/tests/carla_mocks/agents/navigation/behavior_agent.py:65
↓ 1 callersMethod_update_junction_actors
Handles an actor depending on their previous state. Actors entering the junction have its exit monitored through their waypoint. When
scenario_runner/srunner/scenarios/background_activity.py:2366
↓ 1 callersMethod_update_junction_sources
Checks the actor sources to see if new actors have to be created
scenario_runner/srunner/scenarios/background_activity.py:1298
↓ 1 callersMethod_update_offset
Update the plan (waypoint list) of the LocalPlanner
scenario_runner/srunner/scenariomanager/actorcontrols/npc_vehicle_control.py:59
↓ 1 callersMethod_update_opposite_actors
Updates the opposite actors. This involves tracking their position, removing them if too far behind the ego.
scenario_runner/srunner/scenarios/background_activity.py:2471
↓ 1 callersMethod_update_opposite_sources
Checks the opposite actor sources to see if new actors have to be created
scenario_runner/srunner/scenarios/background_activity.py:1578
↓ 1 callersMethod_update_parameters
Changes those parameters that have dynamic behaviors and / or that can be changed by external source. This is done using py_trees' Bl
scenario_runner/srunner/scenarios/background_activity.py:1609
↓ 1 callersMethod_update_road_actors
Dynamically controls the actor speed in front of the ego. Not applied to those behind it so that they can catch up it
scenario_runner/srunner/scenarios/background_activity.py:2194
↓ 1 callersMethod_update_road_sources
Manages the sources that spawn actors behind the ego. These are always behind the ego and will continuously spawn actors. The
scenario_runner/srunner/scenarios/background_activity.py:1063
↓ 1 callersMethod_validate_openscenario_catalog_configuration
Validate the given OpenSCENARIO catalog config against the 1.0 XSD Note: This will throw if the catalog config is not valid. But thi
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:74
↓ 1 callersMethod_validate_openscenario_configuration
Validate the given OpenSCENARIO config against the 1.0 XSD Note: This will throw if the config is not valid. But this is fine here.
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:64
↓ 1 callersMethod_validate_result
Check that the current scenario configuration is valid
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:405
↓ 1 callersMethod_vehicle_obstacle_detected
Method to check if there is a vehicle in front of the agent blocking its path. :param vehicle_list (list of carla.Vehicle): list
scenario_runner/srunner/tests/carla_mocks/agents/navigation/basic_agent.py:251
↓ 1 callersMethod_write_to_junit
Writing to Junit XML
scenario_runner/srunner/scenariomanager/result_writer.py:206
↓ 1 callersMethod_write_to_reportjson
Write a machine-readable report to JSON The resulting report has the following format: { criteria: [
scenario_runner/srunner/scenariomanager/result_writer.py:137
↓ 1 callersMethodactor_id_exists
Check if a certain id is still at the simulation
scenario_runner/srunner/scenariomanager/carla_data_provider.py:773
↓ 1 callersMethodadd_blackboard
Adds new blackboards to the list. Used by the runtime initialization of scenarios
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3873
↓ 1 callersFunctionadd_data
(points, tmap, world, spectator, grp)
leaderboard/scripts/route_creator.py:82
↓ 1 callersMethodadd_emergency_stop
Overwrites the throttle a brake values of a control to perform an emergency stop. The steering is kept the same to avoid going out of
scenario_runner/srunner/tests/carla_mocks/agents/navigation/basic_agent.py:73
↓ 1 callersMethodanalyze_scenario
Analyzes and prints the results of the route
leaderboard/leaderboard/scenarios/scenario_manager.py:280
↓ 1 callersMethodanalyze_scenario
This function is intended to be called from outside and provide the final statistics about the scenario (human-readable, in form of a
scenario_runner/srunner/scenariomanager/scenario_manager.py:201
↓ 1 callersMethodannotate_trafficlight_in_group
Get dictionary with traffic light group info for a given traffic light
scenario_runner/srunner/scenariomanager/carla_data_provider.py:317
↓ 1 callersMethodassign_catalog_parameters
Parse catalog_reference, and replace all parameter references in entry_instance by the values provided in catalog_reference.
scenario_runner/srunner/tools/openscenario_parser.py:373
↓ 1 callersMethodbuild_camera_info
Private function to compute camera info camera info doesn't change over time
scenario_runner/srunner/autoagents/ros_agent.py:201
↓ 1 callersFunctionbuild_projection_matrix
(w, h, fov, is_behind_camera=False)
tools/utils.py:137
↓ 1 callersFunctionbuild_skeleton
(ped, sk_links)
tools/utils.py:181
↓ 1 callersFunctioncalculate_velocity
Method to calculate the velocity of a actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:25
↓ 1 callersMethodcar_following_manager
Module in charge of car-following behaviors when there's someone in front of us. :param vehicle: car to follow
scenario_runner/srunner/tests/carla_mocks/agents/navigation/behavior_agent.py:253
↓ 1 callersFunctioncheck_duplicates
Checks that all route ids are present only once in the files
leaderboard/scripts/merge_statistics.py:7
↓ 1 callersFunctioncheck_missing_data
Checks that there is no missing data, by changing their route id to an integer
leaderboard/scripts/merge_statistics.py:14
↓ 1 callersMethodcheck_reached_waypoint_goal
Check if the actor reached the end of the waypoint list returns: True if the end was reached, False otherwise.
scenario_runner/srunner/scenariomanager/actorcontrols/basic_control.py:93
↓ 1 callersFunctionchunk_array
(arr, m)
tools/efficiency_smoothness_benchmark.py:36
↓ 1 callersFunctionchunk_arrays
(arrays, m)
tools/efficiency_smoothness_benchmark.py:32
↓ 1 callersMethodcleanup
Reset all parameters
leaderboard/leaderboard/scenarios/scenario_manager.py:92
↓ 1 callersMethodcleanup
This function triggers a proper termination of a scenario
scenario_runner/srunner/scenariomanager/scenario_manager.py:79
↓ 1 callersMethodclear_modules
(self)
scenario_runner/no_rendering_mode.py:198
↓ 1 callersMethodclear_records
Cleanes up the file
leaderboard/leaderboard/utils/statistics_manager.py:218
↓ 1 callersMethodcollision_and_car_avoid_manager
This module is in charge of warning in case of a collision and managing possible tailgating chances. :param location: cu
scenario_runner/srunner/tests/carla_mocks/agents/navigation/behavior_agent.py:188
↓ 1 callersFunctioncompute_distance
Euclidean distance between 3D points :param location_1, location_2: 3D points
scenario_runner/srunner/tests/carla_mocks/agents/tools/misc.py:152
↓ 1 callersFunctioncompute_route_length
(route)
leaderboard/leaderboard/utils/statistics_manager.py:178
↓ 1 callersFunctionconditions_match
(weather, conditions)
tools/utils.py:122
↓ 1 callersFunctionconditions_match
(weather, conditions)
leaderboard/leaderboard/leaderboard_evaluator.py:68
↓ 1 callersMethodcontains_wp
Checks whether or not a carla.Waypoint is inside the junction
scenario_runner/srunner/scenarios/background_activity.py:154
↓ 1 callersFunctionconvert_dict_to_location
Convert a JSON string to a Carla.Location
scenario_runner/srunner/scenarios/highway_cut_in.py:30
↓ 1 callersFunctionconvert_dict_to_location
Convert a JSON string to a Carla.Location
scenario_runner/srunner/scenarios/cross_bicycle_flow.py:27
↓ 1 callersFunctionconvert_elem_to_location
Convert an ElementTree.Element to a CARLA Location
leaderboard/scripts/route_summarizer.py:40
↓ 1 callersFunctionconvert_elem_to_location
Convert an ElementTree.Element to a CARLA Location
leaderboard/scripts/route_creator.py:41
← previousnext →501–600 of 1,781, ranked by callers