MCPcopy Create free account

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

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

↓ 2 callersFunctionget_sidewalk_transform
Processes the waypoint transform to find a suitable spawning one at the sidewalk. It first rotates the transform so that it is pointing towar
scenario_runner/srunner/scenarios/object_crash_intersection.py:37
↓ 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:255
↓ 2 callersFunctionget_troad_from_transform
This function finds the lateral road position (t) from actor_transform
scenario_runner/srunner/tools/scenario_helper.py:638
↓ 2 callersFunctionget_value_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/cut_in_with_static_vehicle.py:29
↓ 2 callersFunctionget_value_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/invading_turn.py:41
↓ 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:448
↓ 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:553
↓ 2 callersMethodinitialise
Initialize the start time of this condition
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:247
↓ 2 callersMethodinsert_point_into_dict
(lane_marking_dict, corners, road_id, parent_actor_location, Volume_Type=None)
tools/gen_hdmap.py:58
↓ 2 callersMethodintersection
Obtain a intersection point between two contour.
scenario_runner/srunner/tools/scenario_helper.py:828
↓ 2 callersMethodis_actor_affected_by_stop
Check if the given actor is affected by the stop. Without using waypoints, a stop might not be detected if the actor is moving at the
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1847
↓ 2 callersFunctionparse_bounding_box
Parses a list into a carla.BoundingBox. Some actors like sensors might have 'nan' location and 'inf' extent, so filter those.
scenario_runner/srunner/metrics/tools/metrics_parser.py:130
↓ 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:3740
↓ 2 callersMethodremove_actor_by_id
Remove an actor from the pool using its ID
scenario_runner/srunner/scenariomanager/carla_data_provider.py:805
↓ 2 callersMethodreset
Reset cameras
scenario_runner/srunner/scenariomanager/actorcontrols/visualizer.py:83
↓ 2 callersMethodreset_vehicle
Reset the ego-vehicle
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:110
↓ 2 callersFunctionrotate_point
rotate a given point by a given angle
scenario_runner/srunner/tests/carla_mocks/agents/tools/misc.py:46
↓ 2 callersMethodrotozoom
(self, angle, scale)
scenario_runner/no_rendering_mode.py:424
↓ 2 callersMethodsave_sensors
(self, sensors)
leaderboard/leaderboard/utils/statistics_manager.py:300
↓ 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_destination
This method creates a list of waypoints between a starting and ending location, based on the route returned by the global router, and
scenario_runner/srunner/tests/carla_mocks/agents/navigation/basic_agent.py:108
↓ 2 callersMethodset_global_plan
(self, global_plan_gps, global_plan_world_coord)
leaderboard/leaderboard/autoagents/ros2_agent.py:117
↓ 2 callersMethodset_global_plan
Adds a new plan to the local planner. A plan must be a list of [carla.Waypoint, RoadOption] pairs If 'clean_queue`, erases the previo
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:181
↓ 2 callersMethodset_target_speed
Changes the target speed of the agent :param speed (float): target speed in Km/h
scenario_runner/srunner/tests/carla_mocks/agents/navigation/basic_agent.py:85
↓ 2 callersMethodset_text
(self, text, color=(255, 255, 255), seconds=2.0)
scenario_runner/manual_control.py:516
↓ 2 callersMethodset_traffic_manager_port
Set the port to use for the traffic manager.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:838
↓ 2 callersMethodsetup
Default setup
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:110
↓ 2 callersFunctionshow_saved_scenarios
(route, world)
leaderboard/scripts/route_displayer.py:155
↓ 2 callersMethodshutdown
(self)
leaderboard/leaderboard/autoagents/ros1_agent.py:33
↓ 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:71
↓ 2 callersMethodupdate_osc_global_params
updates/initializes global osc parameters.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:100
↓ 2 callersMethodvalidate_and_write_statistics
Makes sure that all the relevant data is there. Changes the 'entry status' to 'Invalid' if this isn't the case
leaderboard/leaderboard/utils/statistics_manager.py:554
↓ 2 callersFunctionvector_angle
(v1, v2)
tools/utils.py:109
↓ 2 callersFunctionwait_for_service
(client, service, timeout=None)
leaderboard/leaderboard/autoagents/ros1_agent.py:67
↓ 2 callersFunctionworld_to_ego
(point_world, w2e)
tools/utils.py:103
↓ 1 callersMethodDestroyActor
(actor)
scenario_runner/srunner/tests/carla_mocks/carla.py:38
↓ 1 callersMethodSpawnActor
(blueprint, point)
scenario_runner/srunner/tests/carla_mocks/carla.py:18
↓ 1 callersMethod_IMU_callback
(weak_self, sensor_data)
scenario_runner/manual_control.py:683
↓ 1 callersMethod_Radar_callback
(weak_self, radar_data)
scenario_runner/manual_control.py:730
↓ 1 callersMethod__call__
(self)
leaderboard/leaderboard/envs/sensor_interface.py:58
↓ 1 callersMethod__init__
(self)
leaderboard/leaderboard/autoagents/ros1_agent.py:42
↓ 1 callersMethod__init__
(self, name)
leaderboard/leaderboard/autoagents/ros_base_agent.py:31
↓ 1 callersMethod__init__
(self, message)
leaderboard/leaderboard/autoagents/agent_wrapper.py:57
↓ 1 callersMethod__init__
Setup all relevant parameters and create scenario
scenario_runner/srunner/scenarios/no_signal_junction_crossing.py:46
↓ 1 callersMethod__init__
(self, wp, actors, entry_lane_wp='', active=True)
scenario_runner/srunner/scenarios/background_activity.py:110
↓ 1 callersMethod__init__
Setup all relevant parameters and create scenario and instantiate scenario manager
scenario_runner/srunner/scenarios/construction_crash_vehicle.py:58
↓ 1 callersMethod__init__
Setup all relevant parameters and create scenario If randomize is True, the scenario parameters are randomized
scenario_runner/srunner/scenarios/follow_leading_vehicle.py:52
↓ 1 callersMethod__init__
(self, route=None)
scenario_runner/srunner/scenarioconfigs/route_scenario_configuration.py:24
↓ 1 callersMethod_add_incoming_actors
Checks nearby actors that will pass through the source, adding them to it
scenario_runner/srunner/scenarios/background_activity.py:995
↓ 1 callersMethod_add_junctions_topology
Gets the entering and exiting lanes of a multijunction
scenario_runner/srunner/scenarios/background_activity.py:655
↓ 1 callersMethod_analyze_scenario
Provide feedback about success/failure of a scenario
scenario_runner/scenario_runner.py:259
↓ 1 callersMethod_build_graph
This function builds a networkx graph representation of topology, creating several class attributes: - graph (networkx.DiGraph): netw
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:118
↓ 1 callersMethod_build_scenarios
Initializes the class of all the scenarios that will be present in the route. If a class fails to be initialized, a warning is printe
scenario_runner/srunner/scenarios/route_scenario.py:208
↓ 1 callersMethod_build_topology
This function retrieves topology from the server as a list of road segments as pairs of waypoint objects, and processes the t
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:84
↓ 1 callersMethod_callback
Method called when the timer triggers. Raises a KeyboardInterrupt on the main thread and stops the watchdog.
scenario_runner/srunner/scenariomanager/watchdog.py:76
↓ 1 callersMethod_check_background_actors
Checks if the Traffic Manager has removed a backgroudn actor
scenario_runner/srunner/scenarios/background_activity.py:351
↓ 1 callersMethod_check_version
Ensure correct OpenSCENARIO version is used
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:98
↓ 1 callersMethod_clear_ego_entry
Remove all actors in front of the vehicle.
scenario_runner/srunner/scenarios/background_activity.py:1977
↓ 1 callersMethod_clear_junction_middle
Clears the junction, and all subsequent actors that enter it
scenario_runner/srunner/scenarios/background_activity.py:1964
↓ 1 callersFunction_compute_connection
Compute the type of topological connection between an active waypoint (current_waypoint) and a target waypoint (next_waypoint). :param c
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:309
↓ 1 callersMethod_compute_next_waypoints
Add new waypoints to the trajectory queue. :param k: how many waypoints to compute :return:
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:150
↓ 1 callersMethod_compute_parameters
Computes the parameters that are dependent on the speed of the ego.
scenario_runner/srunner/scenarios/background_activity.py:1733
↓ 1 callersMethod_compute_scale
(self, scale_factor)
scenario_runner/no_rendering_mode.py:1126
↓ 1 callersMethod_count_collisions
Update collision count
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:359
↓ 1 callersMethod_count_lane_invasion
Callback to update lane invasion count
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:526
↓ 1 callersMethod_create_behavior
Pure virtual function to setup user-defined scenario behavior
scenario_runner/srunner/scenarios/basic_scenario.py:211
↓ 1 callersMethod_create_cones_side
Creates the cones at the side
scenario_runner/srunner/scenarios/construction_crash_vehicle.py:135
↓ 1 callersMethod_create_construction_setup
Create construction setup
scenario_runner/srunner/scenarios/construction_crash_vehicle.py:155
↓ 1 callersMethod_create_criterion_tree
We can make use of the blackboard variables used by the behaviors themselves, as we already have an atomic that handles their (de)act
leaderboard/leaderboard/scenarios/route_scenario.py:465
↓ 1 callersMethod_create_criterion_tree
We can make use of the blackboard variables used by the behaviors themselves, as we already have an atomic that handles their (de)act
scenario_runner/srunner/scenarios/route_scenario.py:355
↓ 1 callersMethod_create_environment_behavior
(self)
scenario_runner/srunner/scenarios/open_scenario.py:224
↓ 1 callersMethod_create_init_behavior
(self)
scenario_runner/srunner/scenarios/open_scenario.py:239
↓ 1 callersMethod_create_junction_dict
Extracts the junctions the ego vehicle will pass through.
scenario_runner/srunner/scenarios/background_activity.py:362
↓ 1 callersMethod_create_lights_behavior
Default empty initialization of the lights behavior, responsible of controlling the street lights during the simulation. Over
scenario_runner/srunner/scenarios/basic_scenario.py:236
↓ 1 callersMethod_create_metric
Pure virtual function to setup the metrics by the user. Args: town_map (carla.Map): Map of the simulation. Used to acces
scenario_runner/srunner/metrics/examples/basic_metric.py:31
↓ 1 callersMethod_create_obstacle
(self)
scenario_runner/srunner/scenarios/invading_turn.py:112
↓ 1 callersMethod_create_test_criteria
Pure virtual function to setup user-defined evaluation criteria for the scenario
scenario_runner/srunner/scenarios/basic_scenario.py:219
↓ 1 callersMethod_create_timeout_behavior
Default initialization of the timeout behavior. Override this method in child class to provide custom initialization.
scenario_runner/srunner/scenarios/basic_scenario.py:244
↓ 1 callersMethod_create_weather_behavior
Default empty initialization of the weather behavior, responsible of controlling the weather during the simulation. Override
scenario_runner/srunner/scenarios/basic_scenario.py:228
↓ 1 callersMethod_destroy_walker
(self, walker, controller)
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:4252
↓ 1 callersMethod_draw_waypoints
Draw a list of waypoints at a certain height given in vertical_shift.
leaderboard/leaderboard/scenarios/route_scenario.py:241
↓ 1 callersMethod_draw_waypoints
Draw a list of waypoints at a certain height given in vertical_shift.
scenario_runner/srunner/scenarios/route_scenario.py:145
↓ 1 callersMethod_end_junction_behavior
Destroys unneeded actors (those that aren't part of the route's road), moving the rest to other data structures and cleaning up the v
scenario_runner/srunner/scenarios/background_activity.py:873
↓ 1 callersMethod_estimate_route_timeout
Estimate the duration of the route, as a proportinal value of its length
scenario_runner/srunner/scenarios/route_scenario.py:131
↓ 1 callersMethod_extent_road_exit_space
Increases the space left by the exit vehicles at a specific road
scenario_runner/srunner/scenarios/background_activity.py:2086
↓ 1 callersMethod_filter_fake_junctions
Filters fake junctions. A fake junction is that which has no intersecting maneuvers (i.e, no two maneuvers start / end at the same la
scenario_runner/srunner/scenarios/background_activity.py:414
↓ 1 callersMethod_filter_scenarios
Given a list of scenarios, filters out does that don't make sense to be triggered, as they are either too far from the route or don't
leaderboard/leaderboard/scenarios/route_scenario.py:124
↓ 1 callersMethod_filter_scenarios
Given a list of scenarios, filters out does that don't make sense to be triggered, as they are either too far from the route or don't
scenario_runner/srunner/scenarios/route_scenario.py:101
↓ 1 callersMethod_find_loose_ends
This method finds road segments that have an unconnected end, and adds them to the internal graph representation
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:173
↓ 1 callersMethod_get_actor_transform
Get the initial actor transform provided by the Init section Note: - The OpenScenario specification allows multiple definitions. We
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:339
↓ 1 callersMethod_get_acummulated_percentages
Gets the accumulated percentage of each of the route transforms
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1550
↓ 1 callersMethod_get_blocker_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:426
↓ 1 callersMethod_get_complex_junctions
Function to hardcode the topology of some complex junctions. This is done for the roundabouts, as the current API doesn't offer that
scenario_runner/srunner/scenarios/background_activity.py:492
↓ 1 callersMethod_get_criteria
Parses the criteria argument into a dictionary
scenario_runner/metrics_manager.py:81
↓ 1 callersMethod_get_data_from_carla
(self)
scenario_runner/no_rendering_mode.py:819
↓ 1 callersMethod_get_displaced_location
Calculates the transforming such that the actor is at the sidemost part of the lane
scenario_runner/srunner/scenarios/vehicle_opens_door.py:86
↓ 1 callersMethod_get_entry_exit_route_lanes
(self, wp, route)
scenario_runner/srunner/scenarios/actor_flow.py:531
↓ 1 callersMethod_get_fake_lane_pairs
Gets a list of entry-exit lanes of the fake junctions
scenario_runner/srunner/scenarios/background_activity.py:580
← previousnext →301–400 of 1,781, ranked by callers