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
↓ 6 callers
Function
check_waypoints_status
(waypoints_list)
tools/gen_hdmap.py:13
↓ 6 callers
Function
convert_depth
Computes the normalized depth from a CARLA depth map.
tools/utils.py:150
↓ 6 callers
Function
generate_target_waypoint_in_route
This method follow waypoints to a junction @returns a waypoint list according to turn input
scenario_runner/srunner/tools/scenario_helper.py:389
↓ 6 callers
Function
get_actor_control
Method to return the type of control to the actor.
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:76
↓ 6 callers
Method
get_catalog_entry
Get catalog entry referenced by catalog_reference included correct parameter settings Args: catalogs (Dictionary of dict
scenario_runner/srunner/tools/openscenario_parser.py:353
↓ 6 callers
Method
has_attribute
(self, attribute_string='')
scenario_runner/srunner/tests/carla_mocks/carla.py:51
↓ 6 callers
Method
is_sync_mode
@return true if syncronuous mode is used
scenario_runner/srunner/scenariomanager/carla_data_provider.py:268
↓ 6 callers
Method
log
(self)
leaderboard/leaderboard/autoagents/ros_base_agent.py:86
↓ 6 callers
Function
point_in_canvas_wh
Return true if point is in canvas
tools/utils.py:38
↓ 6 callers
Method
stop
(self)
leaderboard/leaderboard/envs/sensor_interface.py:83
↓ 6 callers
Method
stop
Stop the watchdog
scenario_runner/srunner/scenariomanager/watchdog.py:51
↓ 6 callers
Method
then
(self, other_command)
scenario_runner/srunner/tests/carla_mocks/carla.py:41
↓ 6 callers
Method
try_spawn_actor
(self, blueprint, spawn_point)
scenario_runner/srunner/tests/carla_mocks/carla.py:269
↓ 6 callers
Method
update_sensor
(self, tag, data, frame)
leaderboard/leaderboard/envs/sensor_interface.py:216
↓ 5 callers
Method
__init__
Setup all relevant parameters and create scenario and instantiate scenario manager
scenario_runner/srunner/scenarios/route_obstacles.py:59
↓ 5 callers
Method
done
Check whether the agent has reached its destination.
scenario_runner/srunner/tests/carla_mocks/agents/navigation/basic_agent.py:185
↓ 5 callers
Function
get_interval_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/actor_flow.py:51
↓ 5 callers
Function
get_offset_transform
This function adjusts the give transform by offset and returns the new transform.
scenario_runner/srunner/tools/scenario_helper.py:626
↓ 5 callers
Function
get_opposite_dir_lanes
Gets all the lanes with opposite direction of the road of a wp Ordered from the center lane to the edge one (from inwards to outwards)
scenario_runner/srunner/tools/scenario_helper.py:770
↓ 5 callers
Function
get_value_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/actor_flow.py:45
↓ 5 callers
Function
get_value_parameter
(config, name, p_type, default)
scenario_runner/srunner/scenarios/parking_exit.py:42
↓ 5 callers
Method
is_alive
(self)
leaderboard/leaderboard/autoagents/ros_base_agent.py:93
↓ 5 callers
Method
notification
(self, text, seconds=2.0)
scenario_runner/no_rendering_mode.py:311
↓ 5 callers
Method
register_actor
Add new actor to dictionaries If actor already exists, throw an exception
scenario_runner/srunner/scenariomanager/carla_data_provider.py:74
↓ 5 callers
Method
rotate_point
rotate a given point by a given angle
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1751
↓ 5 callers
Method
update_sensor
Updates the sensor
scenario_runner/srunner/autoagents/sensor_interface.py:142
↓ 5 callers
Method
write_statistics
Writes the results into the endpoint. Meant to be used only for partial evaluations, use 'validate_and_write_statistics' for the fina
leaderboard/leaderboard/utils/statistics_manager.py:597
↓ 4 callers
Method
__init__
Setup all relevant parameters and create scenario and instantiate scenario manager
scenario_runner/srunner/scenarios/actor_flow.py:240
↓ 4 callers
Method
__init__
Setup all relevant parameters and create scenario
scenario_runner/srunner/scenarios/object_crash_intersection.py:70
↓ 4 callers
Method
_cleanup
Remove and destroy all actors
leaderboard/leaderboard/leaderboard_evaluator.py:164
↓ 4 callers
Method
_get_all_actor_states
Given an actor id, returns a list of the specific variable of that actor during a frame interval. Some elements might be None.
scenario_runner/srunner/metrics/tools/metrics_log.py:208
↓ 4 callers
Method
_get_closest_junction_waypoint
Matches a given wp to another one inside the list. This is first done by checking its key, and if this fails, the closest wp is chose
scenario_runner/srunner/scenarios/background_activity.py:623
↓ 4 callers
Method
_get_forward_speed
Convert the vehicle transform directly to forward speed
tools/data_collect.py:1045
↓ 4 callers
Method
_get_states_at_frame
Returns a dict where the keys are the frame number, and the values are the carla.Transform of the actor at the given frame.
scenario_runner/srunner/metrics/tools/metrics_log.py:234
↓ 4 callers
Method
_initialize_actors
(self, config)
scenario_runner/srunner/scenarios/vanilla_turn.py:76
↓ 4 callers
Method
_localize
This function finds the road segment that a given location is part of, returning the edge it belongs to
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:259
↓ 4 callers
Method
_move_waypoint_forward
(self, wp, distance)
scenario_runner/srunner/scenarios/route_obstacles.py:90
↓ 4 callers
Method
_register_statistics
Computes and saves the route statistics
leaderboard/leaderboard/leaderboard_evaluator.py:296
↓ 4 callers
Method
_set_event_dict
Sets the dictionary of the event
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:977
↓ 4 callers
Method
_set_event_message
Sets the message of the event
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:960
↓ 4 callers
Method
carla2ros_pose
(cls, x, y, z, roll, pitch, yaw, to_quat=False)
leaderboard/leaderboard/autoagents/ros_base_agent.py:110
↓ 4 callers
Method
destroy
(self)
scenario_runner/manual_control.py:194
↓ 4 callers
Method
error
(self, text)
scenario_runner/manual_control.py:461
↓ 4 callers
Function
fetch_dict
(endpoint)
leaderboard/leaderboard/utils/checkpoint_tools.py:24
↓ 4 callers
Function
filter_junction_wp_direction
Given a list of entry / exit wps of a junction, filters them according to a specific direction, returning all waypoint part of lanes that are
scenario_runner/srunner/tools/scenario_helper.py:574
↓ 4 callers
Function
get_actor_display_name
(actor, truncate=250)
scenario_runner/manual_control.py:105
↓ 4 callers
Method
get_bounding_box
(actor)
scenario_runner/no_rendering_mode.py:174
↓ 4 callers
Method
get_header
Returns ROS message header
scenario_runner/srunner/autoagents/ros_agent.py:256
↓ 4 callers
Method
get_interpreted_value
Returns: interpreted value from reference_text
scenario_runner/srunner/tools/openscenario_parser.py:123
↓ 4 callers
Function
get_junction_topology
Given a junction, returns a two list of waypoints corresponding to the entry and exit lanes of the junction
scenario_runner/srunner/tools/scenario_helper.py:528
↓ 4 callers
Function
get_lane_key
(waypoint)
scenario_runner/srunner/tools/scenario_helper.py:533
↓ 4 callers
Method
get_lane_key
(self, waypoint)
scenario_runner/srunner/scenarios/actor_flow.py:650
↓ 4 callers
Method
get_trafficlight_trigger_location
Calculates the yaw of the waypoint that represents the trigger volume of the traffic light
scenario_runner/srunner/scenariomanager/carla_data_provider.py:353
↓ 4 callers
Function
is_within_distance
Check if a location is both within a certain distance from a reference object. By using 'angle_interval', the angle between the location and
scenario_runner/srunner/tests/carla_mocks/agents/tools/misc.py:66
↓ 4 callers
Method
on_carla_tick
Callback receiving the CARLA time Update time only when frame is more recent that last frame
scenario_runner/srunner/scenariomanager/timer.py:36
↓ 4 callers
Method
parse_from_node
static method to initialize an ActorConfigurationData from a given ET tree
scenario_runner/srunner/scenarioconfigs/scenario_configuration.py:34
↓ 4 callers
Method
render
(self, display)
scenario_runner/manual_control.py:464
↓ 4 callers
Method
run
(self, package, launch_file, parameters={}, wait=False)
leaderboard/leaderboard/autoagents/ros_base_agent.py:74
↓ 4 callers
Method
save_entry_status
(self, entry_status)
leaderboard/leaderboard/utils/statistics_manager.py:303
↓ 4 callers
Method
set_global_plan
Adds a specific plan to the agent. :param plan: list of [carla.Waypoint, RoadOption] representing the route to be followed
scenario_runner/srunner/tests/carla_mocks/agents/navigation/basic_agent.py:131
↓ 4 callers
Method
set_intersection_state
Changes the intersection to the desired state
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:3763
↓ 4 callers
Method
set_world
Set the world and world settings
scenario_runner/srunner/scenariomanager/carla_data_provider.py:205
↓ 4 callers
Method
terminate
(self)
leaderboard/leaderboard/autoagents/ros_base_agent.py:98
↓ 4 callers
Method
tick
(self, world, clock)
scenario_runner/manual_control.py:398
↓ 3 callers
Method
_create_condition_container
This is a generic function to handle conditions utilising ConditionGroups Each ConditionGroup is represented as a Sequence of Conditi
scenario_runner/srunner/scenarios/open_scenario.py:449
↓ 3 callers
Method
_find_closest_in_list
(self, current_waypoint, waypoint_list)
scenario_runner/srunner/tests/carla_mocks/agents/navigation/global_route_planner.py:382
↓ 3 callers
Method
_get_displaced_location
Calculates the transforming such that the actor is at the sidemost part of the lane
scenario_runner/srunner/scenarios/parking_exit.py:168
↓ 3 callers
Method
_get_junction_entry_wp
For a junction waypoint, returns a waypoint outside of it that entrys into its lane
scenario_runner/srunner/scenarios/background_activity.py:604
↓ 3 callers
Method
_get_junction_exit_wp
For a junction waypoint, returns a waypoint outside of it from which the lane exits the junction
scenario_runner/srunner/scenarios/background_activity.py:614
↓ 3 callers
Method
_get_noise_parameters
Randomizes the mean to be either positive or negative
scenario_runner/srunner/scenarios/control_loss.py:106
↓ 3 callers
Method
_initialise_actor
Save the actor into the needed structures, disable its lane changes and set the leading distance.
scenario_runner/srunner/scenarios/background_activity.py:2109
↓ 3 callers
Method
_load_and_run_scenario
Load and run the scenario given by config
scenario_runner/scenario_runner.py:368
↓ 3 callers
Method
_set_road_actor_speed
Changes the speed of the vehicle depending on its distance to the ego. - Front vehicles: Gradually reduces the speed the further they
scenario_runner/srunner/scenarios/background_activity.py:2236
↓ 3 callers
Method
_spawn_actors
Spawns several actors in batch
scenario_runner/srunner/scenarios/background_activity.py:2140
↓ 3 callers
Method
_spawn_obstacle
Spawns the obstacle actor by displacing its position to the right
scenario_runner/srunner/scenarios/route_obstacles.py:127
↓ 3 callers
Method
_spawn_source_actor
Given a source, spawns an actor at that source
scenario_runner/srunner/scenarios/background_activity.py:2164
↓ 3 callers
Method
add_info
(self, module_name, info)
scenario_runner/no_rendering_mode.py:317
↓ 3 callers
Method
apply_batch_sync
(self, batch, sync_mode=False)
scenario_runner/srunner/tests/carla_mocks/carla.py:293
↓ 3 callers
Method
cleanup
Remove and destroy all sensors
scenario_runner/srunner/autoagents/agent_wrapper.py:87
↓ 3 callers
Function
convert_elem_to_location
Convert an ElementTree.Element to a CARLA Location
leaderboard/scripts/route_displayer.py:68
↓ 3 callers
Method
create_blueprint
Function to setup the blueprint of an actor given its model and other relevant parameters
scenario_runner/srunner/scenariomanager/carla_data_provider.py:467
↓ 3 callers
Method
destroy
Destroy (clean-up) the agent :return:
leaderboard/leaderboard/autoagents/ros2_agent.py:139
↓ 3 callers
Method
destroy
Cleanup and delete actors, ScenarioManager and CARLA world
scenario_runner/scenario_runner.py:131
↓ 3 callers
Function
draw_arrow
Utility function to draw debugging points
scenario_runner/srunner/scenarios/background_activity.py:93
↓ 3 callers
Function
draw_keypoint
(world, location)
leaderboard/scripts/route_creator.py:35
↓ 3 callers
Method
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/behavior_agent.py:364
↓ 3 callers
Function
exit_game
()
scenario_runner/no_rendering_mode.py:1418
↓ 3 callers
Method
generate_spawn_points
Generate spawn points for the current map
scenario_runner/srunner/scenariomanager/carla_data_provider.py:457
↓ 3 callers
Method
get_actor_alive_frames
Returns a tuple with the first and last frame an actor was alive. It is important to note that frames start at 1, not 0. Arg
scenario_runner/srunner/metrics/tools/metrics_log.py:161
↓ 3 callers
Method
get_actor_transform
Returns the transform of the actor at a given frame.
scenario_runner/srunner/metrics/tools/metrics_log.py:256
↓ 3 callers
Method
get_actors
Return list of actors and their ids Note: iteritems from six is used to allow compatibility with Python 2 and 3
scenario_runner/srunner/scenariomanager/carla_data_provider.py:764
↓ 3 callers
Method
get_dict
returns the dictionary
scenario_runner/srunner/scenariomanager/traffic_events.py:82
↓ 3 callers
Method
get_incoming_waypoint_and_direction
Returns direction and waypoint at a distance ahead defined by the user. :param steps: number of steps to get the incoming waypoi
scenario_runner/srunner/tests/carla_mocks/agents/navigation/local_planner.py:262
↓ 3 callers
Method
get_last_longitudinal_command
Get timestamp of the last issued longitudinal control command (target_speed) returns: Timestamp of last longitudinal con
scenario_runner/srunner/scenariomanager/actorcontrols/actor_control.py:143
↓ 3 callers
Method
get_last_waypoint_command
Get timestamp of the last issued waypoint control command returns: Timestamp of last waypoint control command
scenario_runner/srunner/scenariomanager/actorcontrols/actor_control.py:152
↓ 3 callers
Method
get_lateral_shifted_transform
(transform, shift)
tools/gen_hdmap.py:319
↓ 3 callers
Method
get_lidar_points_in_bbox
Checks for a given vehicle in ego coordinate system, how many LiDAR hit there are in its bounding box. :param vehicle_pos: Relative p
tools/data_collect.py:1621
↓ 3 callers
Function
get_matrix
Creates matrix from carla transform.
tools/utils.py:203
↓ 3 callers
Method
get_osc_global_param_value
returns updated global osc parameter value.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:107
↓ 3 callers
Function
get_relative_transform
Returns the position of the vehicle matrix in the ego coordinate system. :param ego_matrix: ndarray 4x4 Matrix of the ego vehicle in global
tools/utils.py:160
← previous
next →
101–200 of 1,781, ranked by callers