MCPcopy Create free account

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

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

↓ 1 callersMethod_get_forward_speed
Convert the vehicle transform directly to forward speed
leaderboard/leaderboard/envs/sensor_interface.py:96
↓ 1 callersMethod_get_junction_entry_wp
(self, entry_wp)
scenario_runner/srunner/scenarios/actor_flow.py:653
↓ 1 callersMethod_get_junction_exit_wp
(self, exit_wp)
scenario_runner/srunner/scenarios/actor_flow.py:661
↓ 1 callersMethod_get_junctions_data
Gets all the junctions the ego passes through
scenario_runner/srunner/scenarios/background_activity.py:371
↓ 1 callersFunction_get_latlon_ref
Convert from waypoints world coordinates to CARLA GPS coordinates :return: tuple with lat and lon coordinates
leaderboard/leaderboard/utils/route_manipulation.py:60
↓ 1 callersFunction_get_latlon_ref
Convert from waypoints world coordinates to CARLA GPS coordinates :return: tuple with lat and lon coordinates
scenario_runner/srunner/tools/route_manipulation.py:62
↓ 1 callersMethod_get_metric_class
Function to extract the metrics class from the path given by the metrics argument. Returns the first class found that is a child of B
scenario_runner/metrics_manager.py:93
↓ 1 callersMethod_get_night_mode
Check wheather or not the street lights need to be turned on
scenario_runner/srunner/scenariomanager/lights_sim.py:70
↓ 1 callersMethod_get_parking_slots
Spawn parked vehicles.
leaderboard/leaderboard/scenarios/route_scenario.py:163
↓ 1 callersMethod_get_recorder
Parses the log argument into readable information
scenario_runner/metrics_manager.py:60
↓ 1 callersMethod_get_recorder_map
Returns the name of the map the simulation took place in
scenario_runner/metrics_manager.py:116
↓ 1 callersMethod_get_route
Gets the route from the configuration, interpolating it to the desired density, saving it to the CarlaDataProvider and sending it to
leaderboard/leaderboard/scenarios/route_scenario.py:109
↓ 1 callersMethod_get_route
Gets the route from the configuration, interpolating it to the desired density, saving it to the CarlaDataProvider and sending it to
scenario_runner/srunner/scenarios/route_scenario.py:84
↓ 1 callersMethod_get_route_data
Extract the information from the route
scenario_runner/srunner/scenarios/background_activity.py:262
↓ 1 callersMethod_get_route_percentages
Calculate the accumulated distance percentage at each point in the route
scenario_runner/srunner/scenariomanager/weather_sim.py:218
↓ 1 callersMethod_get_scenario_class_or_fail
Get scenario class by scenario name If scenario is not supported or not found, exit script
scenario_runner/scenario_runner.py:152
↓ 1 callersMethod_get_target_waypoint
Gets the first waypoint after the junction. This method depends on the subtype of VehicleTurning scenario
scenario_runner/srunner/scenarios/object_crash_intersection.py:100
↓ 1 callersMethod_get_traffic_lights
Get the traffic light of the junction, mapping their states
scenario_runner/srunner/scenarios/green_traffic_light.py:67
↓ 1 callersMethod_get_traffic_lights
Get the traffic light of the junction, mapping their states
scenario_runner/srunner/scenarios/cross_bicycle_flow.py:141
↓ 1 callersMethod_get_walker_transform
Processes the driving wp to get a waypoint at the side that looks at the road
scenario_runner/srunner/scenarios/object_crash_vehicle.py:441
↓ 1 callersMethod_get_walker_transform
(self, wp, displacement)
scenario_runner/srunner/scenarios/pedestrian_crossing.py:86
↓ 1 callersMethod_get_waypoints
Returns a list of waypoints starting from the ego location and a set amount forward
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1888
↓ 1 callersMethod_handle_junction_scenario
Adapts the BA to the junction scenario by clearing the junction, its entries, exits, and by extending the road exit to add more space
scenario_runner/srunner/scenarios/background_activity.py:1936
↓ 1 callersMethod_init_controller
Controller initialization
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:114
↓ 1 callersMethod_init_data_params
(self)
scenario_runner/no_rendering_mode.py:306
↓ 1 callersMethod_init_hud_params
(self)
scenario_runner/no_rendering_mode.py:294
↓ 1 callersMethod_initialise_connecting_lanes
Moves the actors currently at the exit lane of the last junction to entry actors of the newly created junction
scenario_runner/srunner/scenarios/background_activity.py:949
↓ 1 callersMethod_initialise_junction_exits
Computes and stores the max capacity of the exit. Prepares the behavior of the next road by creating actors at the route exit, and th
scenario_runner/srunner/scenarios/background_activity.py:1242
↓ 1 callersMethod_initialise_junction_sources
Initializes the actor sources to ensure the junction is always populated. They are placed at certain distance from the junction, but
scenario_runner/srunner/scenarios/background_activity.py:1204
↓ 1 callersMethod_initialise_road_behavior
Initialises the road behavior, consisting on several vehicle in front of the ego, and several on the back and are only spawned outsid
scenario_runner/srunner/scenarios/background_activity.py:1121
↓ 1 callersMethod_initialize_actors
Default initialization of other actors. Override this method in child class to provide custom initialization.
scenario_runner/srunner/scenarios/left_turn_enter_flow.py:85
↓ 1 callersMethod_initialize_actors
Custom initialization
scenario_runner/srunner/scenarios/opposite_vehicle_taking_priority.py:77
↓ 1 callersMethod_initialize_actors
Custom initialization
scenario_runner/srunner/scenarios/signalized_junction_right_turn.py:86
↓ 1 callersMethod_initialize_actors
Default initialization of other actors. Override this method in child class to provide custom initialization.
scenario_runner/srunner/scenarios/signalized_junction_left_turn.py:85
↓ 1 callersMethod_initialize_actors
Default initialization of other actors. Override this method in child class to provide custom initialization.
scenario_runner/srunner/scenarios/basic_scenario.py:161
↓ 1 callersMethod_initialize_environment
Default initialization of weather and road friction. Override this method in child class to provide custom initialization.
scenario_runner/srunner/scenarios/basic_scenario.py:138
↓ 1 callersMethod_initialize_parameters
Parse ParameterAction from Init and update global osc parameters.
scenario_runner/srunner/scenarios/open_scenario.py:192
↓ 1 callersMethod_is_at_wrong_lane
Detects if the ego_vehicle has invaded a wrong lane
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1128
↓ 1 callersMethod_is_outside_driving_lanes
Detects if the ego_vehicle is outside driving lanes
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1106
↓ 1 callersMethod_is_quit_shortcut
(key)
scenario_runner/manual_control.py:364
↓ 1 callersMethod_is_quit_shortcut
(key)
scenario_runner/no_rendering_mode.py:1361
↓ 1 callersMethod_join_complex_junctions
Joins complex junctions into one. This makes it such that all the junctions, as well as their connecting lanes, are treated as the sa
scenario_runner/srunner/scenarios/background_activity.py:537
↓ 1 callersMethod_json_to_control
(self)
leaderboard/leaderboard/autoagents/human_agent.py:227
↓ 1 callersMethod_json_to_control
Parses the json file into a list of carla.VehicleControl
scenario_runner/srunner/autoagents/human_agent.py:180
↓ 1 callersMethod_lane_change_link
This method places zero cost links in the topology graph representing availability of lane changes.
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:217
↓ 1 callersMethod_leave_crossing_space
Removes all vehicle in the middle of crossing trajectory and stops the nearby ones
scenario_runner/srunner/scenarios/background_activity.py:1839
↓ 1 callersMethod_leave_space_in_front
Teleports all the vehicles in front of the ego forward
scenario_runner/srunner/scenarios/background_activity.py:1815
↓ 1 callersMethod_load_and_run_scenario
Load and run the scenario given by config. Depending on what code fails, the simulation will either stop the route and conti
leaderboard/leaderboard/leaderboard_evaluator.py:306
↓ 1 callersMethod_load_and_wait_for_world
Load a new CARLA world without changing the settings and provide data to CarlaDataProvider
leaderboard/leaderboard/leaderboard_evaluator.py:268
↓ 1 callersMethod_load_and_wait_for_world
Load a new CARLA world and provide data to CarlaDataProvider
scenario_runner/scenario_runner.py:319
↓ 1 callersMethod_load_catalogs
Read Catalog xml files into dictionary for later use NOTE: Catalogs must have distinct names, even across different types
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:106
↓ 1 callersMethod_monitor_ego_junction_exit
Monitors when the ego exits the junctions, preparing the road mode when that happens
scenario_runner/srunner/scenarios/background_activity.py:986
↓ 1 callersMethod_monitor_incoming_junctions
Monitors when the ego approaches a junction, triggering that junction when it happens. This can be triggered even if there is another
scenario_runner/srunner/scenarios/background_activity.py:965
↓ 1 callersMethod_monitor_road_changes
Checks if the ego changes road, remapping the route keys.
scenario_runner/srunner/scenarios/background_activity.py:2260
↓ 1 callersMethod_monitor_topology_changes
Continually check the road in front to see if it has changed its topology. If the number of lanes reduces, merge the ending lane with
scenario_runner/srunner/scenarios/background_activity.py:1339
↓ 1 callersMethod_move_opposite_sources
Moves the sources of the opposite direction back. Additionally, tracks a point a certain distance in front of the ego to see if the r
scenario_runner/srunner/scenarios/background_activity.py:1510
↓ 1 callersMethod_move_road_sources
Moves the road sources so that they are always following the ego from behind
scenario_runner/srunner/scenarios/background_activity.py:1025
↓ 1 callersMethod_move_waypoint_backwards
Moves backwards a certain distance, stopping at junctions
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3068
↓ 1 callersMethod_move_waypoint_forward
(self, wp, distance)
scenario_runner/srunner/scenarios/vehicle_opens_door.py:102
↓ 1 callersMethod_move_waypoint_forward
(self, wp, distance)
scenario_runner/srunner/scenarios/construction_crash_vehicle.py:98
↓ 1 callersMethod_move_waypoint_forward
Moves forward a certain distance, stopping at junctions
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3055
↓ 1 callersMethod_on_collision
(weak_self, event)
scenario_runner/manual_control.py:588
↓ 1 callersMethod_on_gnss_event
(weak_self, event)
scenario_runner/manual_control.py:652
↓ 1 callersMethod_on_invasion
(weak_self, event)
scenario_runner/manual_control.py:623
↓ 1 callersMethod_on_obstacle
Callback for the obstacle sensor Sets _obstacle_distance and _obstacle_actor according to the closest obstacle found by the
scenario_runner/srunner/scenariomanager/actorcontrols/simple_vehicle_control.py:128
↓ 1 callersMethod_parse_events
(self)
scenario_runner/no_rendering_mode.py:1264
↓ 1 callersMethod_parse_gnss_cb
(self, gnss_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:177
↓ 1 callersMethod_parse_gnss_cb
parses gnss sensors
scenario_runner/srunner/autoagents/sensor_interface.py:95
↓ 1 callersMethod_parse_image
(weak_self, image)
scenario_runner/manual_control.py:836
↓ 1 callersMethod_parse_image_cb
(self, image, tag)
leaderboard/leaderboard/envs/sensor_interface.py:157
↓ 1 callersMethod_parse_image_cb
parses cameras
scenario_runner/srunner/autoagents/sensor_interface.py:66
↓ 1 callersMethod_parse_imu_cb
(self, imu_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:183
↓ 1 callersMethod_parse_imu_cb
parses IMU sensors
scenario_runner/srunner/autoagents/sensor_interface.py:104
↓ 1 callersMethod_parse_json_control
(self)
leaderboard/leaderboard/autoagents/human_agent.py:286
↓ 1 callersMethod_parse_json_control
Gets the control corresponding to the current frame
scenario_runner/srunner/autoagents/human_agent.py:242
↓ 1 callersMethod_parse_keys
(self, milliseconds)
scenario_runner/no_rendering_mode.py:1327
↓ 1 callersMethod_parse_lidar_cb
(self, lidar_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:163
↓ 1 callersMethod_parse_lidar_cb
parses lidar sensors
scenario_runner/srunner/autoagents/sensor_interface.py:75
↓ 1 callersMethod_parse_mouse
(self)
scenario_runner/no_rendering_mode.py:1342
↓ 1 callersMethod_parse_openscenario_configuration
Parse the given OpenSCENARIO config file, set and validate parameters
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:84
↓ 1 callersMethod_parse_pseudosensor
(self, package, tag)
leaderboard/leaderboard/envs/sensor_interface.py:194
↓ 1 callersMethod_parse_radar_cb
(self, radar_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:169
↓ 1 callersMethod_parse_radar_cb
parses radar sensors
scenario_runner/srunner/autoagents/sensor_interface.py:84
↓ 1 callersMethod_parse_vehicle_keys
Calculate new vehicle controls based on input keys
leaderboard/leaderboard/autoagents/human_agent.py:256
↓ 1 callersMethod_parse_vehicle_keys
(self, keys, milliseconds)
scenario_runner/manual_control.py:335
↓ 1 callersMethod_parse_vehicle_keys
Calculate new vehicle controls based on input keys
scenario_runner/srunner/autoagents/human_agent.py:212
↓ 1 callersMethod_path_search
This function finds the shortest path connecting origin and destination using A* search with distance heuristic. origin
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:281
↓ 1 callersFunction_phase_unwrap
Returns an array of heading angles equal mod 2 pi to the input heading angles, and such that the difference between successive output angles
tools/efficiency_smoothness_benchmark.py:214
↓ 1 callersMethod_pid_control
Estimate the throttle/brake of the vehicle based on the PID equations :param target_speed: target speed in Km/h :pa
scenario_runner/srunner/tests/carla_mocks/agents/navigation/controller.py:141
↓ 1 callersMethod_pid_control
Estimate the steering angle of the vehicle based on the PID equations :param waypoint: target waypoint :param vehicl
scenario_runner/srunner/tests/carla_mocks/agents/navigation/controller.py:207
↓ 1 callersMethod_point_inside_boundingbox
(self, point, bb_center, bb_extent, multiplier=1.5)
tools/data_collect.py:826
↓ 1 callersMethod_prepare_ego_vehicles
Spawn or update the ego vehicles
scenario_runner/scenario_runner.py:217
↓ 1 callersMethod_preprocess_sensor_spec
(self, sensor_spec)
tools/data_collect.py:247
↓ 1 callersMethod_preprocess_sensor_spec
(self, sensor_spec)
leaderboard/leaderboard/autoagents/agent_wrapper.py:295
↓ 1 callersMethod_readd_road_lane
Adds a ego road lane. This is expected to be used after having previously removed such lane
scenario_runner/srunner/scenarios/background_activity.py:1874
↓ 1 callersMethod_record_control
(self)
leaderboard/leaderboard/autoagents/human_agent.py:294
↓ 1 callersMethod_record_control
Saves the list of control into a json file
scenario_runner/srunner/autoagents/human_agent.py:253
↓ 1 callersMethod_record_criteria
Filter the JSON serializable attributes of the criterias and dumps them into a file. This will be used by the metrics manager,
scenario_runner/scenario_runner.py:287
↓ 1 callersMethod_remove_junction_entries
Removes a list of entries of the closest junction (or marks them so that they aren't spawned)
scenario_runner/srunner/scenarios/background_activity.py:1999
↓ 1 callersMethod_remove_junction_exits
Removes a list of exit of the closest junction (or marks them so that they aren't spawned)
scenario_runner/srunner/scenarios/background_activity.py:2034
← previousnext →401–500 of 1,781, ranked by callers