Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/DriveAdapter
/ functions
Functions
1,526 in github.com/OpenDriveLab/DriveAdapter
⨍
Functions
1,526
◇
Types & classes
283
↓ 228 callers
Method
get
(self, batch_size: Optional[int] = None)
roach/models/ppo_buffer.py:141
↓ 137 callers
Method
get_location
returns the location for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:137
↓ 124 callers
Method
get_transform
returns the transform for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:151
↓ 116 callers
Method
get_waypoint
The method returns waypoint at given location :param location: vehicle location :return waypoint: generated waypoint
agents/navigation/global_route_planner_dao.py:67
↓ 95 callers
Method
get_map
Get the current map
scenario_runner/srunner/scenariomanager/carla_data_provider.py:219
↓ 71 callers
Method
distance
(v)
scenario_runner/no_rendering_mode.py:997
↓ 64 callers
Method
get_world
Return world
scenario_runner/srunner/scenariomanager/carla_data_provider.py:212
↓ 54 callers
Method
get_velocity
returns the absolute velocity for the given actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:123
↓ 53 callers
Method
next
(self)
leaderboard/leaderboard/utils/route_indexer.py:40
↓ 48 callers
Method
get_time
Returns elapsed game time
scenario_runner/srunner/scenariomanager/timer.py:55
↓ 37 callers
Method
dot
(self, pos, node, color=(255, 255, 255), r=2)
leaderboard/team_code/planner.py:22
↓ 35 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:705
↓ 33 callers
Method
__init__
Setup actor
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1428
↓ 31 callers
Method
update
Upon reaching the timeout value the status changes to SUCCESS
scenario_runner/srunner/scenariomanager/timer.py:148
↓ 29 callers
Method
next_row
Gets the next row of the recorder
scenario_runner/srunner/metrics/tools/metrics_parser.py:300
↓ 29 callers
Method
request_new_actor
This method tries to create a new actor, returning it if successful (None otherwise).
scenario_runner/srunner/scenariomanager/carla_data_provider.py:536
↓ 28 callers
Method
remove_all_actors
Remove all actors
scenario_runner/srunner/scenarios/basic_scenario.py:198
↓ 24 callers
Method
load
(cls, path)
roach/models/ppo_policy.py:222
↓ 22 callers
Method
__init__
Setup actor
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:243
↓ 19 callers
Method
get_row_elements
returns a list with the elements of the row
scenario_runner/srunner/metrics/tools/metrics_parser.py:294
↓ 18 callers
Method
flatten
(arr: np.ndarray)
roach/models/ppo_buffer.py:188
↓ 17 callers
Method
__init__
(self, name, actor, expected_value_success,
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:47
↓ 16 callers
Method
clear
(self)
leaderboard/team_code/planner.py:16
↓ 15 callers
Method
get_module
(self, name)
scenario_runner/no_rendering_mode.py:211
↓ 15 callers
Method
write
Public write function
scenario_runner/srunner/scenariomanager/result_writer.py:46
↓ 14 callers
Function
calculate_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:48
↓ 14 callers
Method
render
(self, display)
scenario_runner/no_rendering_mode.py:273
↓ 13 callers
Method
_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
↓ 12 callers
Function
oneshot_behavior
This is taken from py_trees.idiom.oneshot.
scenario_runner/srunner/tools/py_trees_port.py:103
↓ 12 callers
Method
render
(self)
roach/models/ppo_buffer.py:195
↓ 12 callers
Method
set_message
Set message
scenario_runner/srunner/scenariomanager/traffic_events.py:68
↓ 11 callers
Method
_bh_is_vehicle_hazard
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
agents/navigation/agent.py:133
↓ 11 callers
Method
get_type
@return type
scenario_runner/srunner/scenariomanager/traffic_events.py:53
↓ 11 callers
Method
initialise
Set start time
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1437
↓ 10 callers
Method
_cleanup
Remove and destroy all actors
scenario_runner/scenario_runner.py:166
↓ 10 callers
Function
get_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:147
↓ 10 callers
Method
set_dict
Set dictionary
scenario_runner/srunner/scenariomanager/traffic_events.py:80
↓ 9 callers
Function
get_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:209
↓ 9 callers
Method
terminate
Terminate the criterion. Can be extended by the user-derived class
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:73
↓ 8 callers
Function
cast_angle
(x)
roach/utils/transforms.py:126
↓ 8 callers
Method
destroy
Cleanup of all ROS publishers
scenario_runner/srunner/autoagents/ros_agent.py:162
↓ 8 callers
Method
get_criteria
Return the list of test criteria (all leave nodes)
scenario_runner/srunner/scenarios/basic_scenario.py:281
↓ 8 callers
Function
get_location_in_distance_from_wp
Obtain a location 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:189
↓ 8 callers
Method
get_message
@return message
scenario_runner/srunner/scenariomanager/traffic_events.py:59
↓ 8 callers
Method
get_time_step
Set the time-step for debug.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:790
↓ 8 callers
Method
is_sync_mode
@return true if syncronuous mode is used
scenario_runner/srunner/scenariomanager/carla_data_provider.py:235
↓ 8 callers
Method
listen
(self, callback)
leaderboard/leaderboard/envs/sensor_interface.py:79
↓ 8 callers
Method
setup
Performs initial server data lookup for detailed topology and builds graph representation of the world map.
agents/navigation/global_route_planner.py:39
↓ 7 callers
Method
__init__
(self, in_features, hidden_features=None, out_features=None
open_loop_training/code/model_code/backbones/lss.py:122
↓ 7 callers
Method
_get_sensor_position
returns the sensor position and rotation Args: cam ([type]): [description] Returns: [type]: [description]
leaderboard/team_code/base_agent.py:735
↓ 7 callers
Function
_numpy
(carla_vector, normalize=False)
leaderboard/team_code/auto_pilot.py:56
↓ 7 callers
Function
_numpy
(carla_vector, normalize=False)
leaderboard/team_code/roach_ap_agent_data_collection.py:55
↓ 7 callers
Function
fetch_dict
(endpoint)
leaderboard/leaderboard/utils/checkpoint_tools.py:24
↓ 7 callers
Method
get_next_traffic_light
returns the next relevant traffic light for the provided actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:373
↓ 7 callers
Function
load_entry_point
(name)
roach/utils/config_utils.py:51
↓ 7 callers
Method
trace_route
This method returns list of (carla.Waypoint, RoadOption) from origin to destination
agents/navigation/global_route_planner.py:344
↓ 7 callers
Method
update_sensor
(self, tag, data, timestamp)
leaderboard/leaderboard/envs/sensor_interface.py:226
↓ 7 callers
Function
vector
Returns the unit vector from location_1 to location_2 :param location_1, location_2: carla.Location objects
agents/tools/misc.py:130
↓ 6 callers
Method
_world_to_sensor
Transforms world coordinates to sensor.
leaderboard/team_code/base_agent.py:748
↓ 6 callers
Method
convert_position_to_transform
Convert an OpenScenario position into a CARLA transform Not supported: Road, RelativeRoad, Lane, RelativeLane as the PythonAPI curre
scenario_runner/srunner/tools/openscenario_parser.py:411
↓ 6 callers
Function
get_actor_control
Method to return the type of control to the actor.
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:75
↓ 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:199
↓ 6 callers
Method
get_ego_vehicle_route
returns the currently set route of the ego vehicle Note: Can be None
scenario_runner/srunner/scenariomanager/carla_data_provider.py:421
↓ 6 callers
Method
get_matrix
Creates matrix from carla transform.
leaderboard/team_code/roach_ap_agent_data_collection.py:872
↓ 6 callers
Method
notification
(self, text, seconds=2.0)
scenario_runner/no_rendering_mode.py:311
↓ 6 callers
Method
set_route
(self, global_plan, gps=False, global_plan_world = None)
leaderboard/team_code/planner.py:52
↓ 6 callers
Method
tick
(self, input_data)
leaderboard/team_code/map_agent.py:40
↓ 6 callers
Method
tick
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
↓ 6 callers
Function
tint
(color, factor)
roach/obs_manager/birdview/chauffeurnet.py:27
↓ 5 callers
Method
_cleanup
Remove and destroy all actors
leaderboard/leaderboard/leaderboard_evaluator.py:177
↓ 5 callers
Method
_get_features
:param birdview: th.Tensor (num_envs, frame_stack*channel, height, width) :param state: th.Tensor (num_envs, state_dim)
roach/models/ppo_policy.py:102
↓ 5 callers
Method
_get_mask_from_actor_list
(self, actor_list, M_warp)
roach/obs_manager/birdview/chauffeurnet.py:221
↓ 5 callers
Function
create_default_json_msg
()
leaderboard/leaderboard/utils/checkpoint_tools.py:50
↓ 5 callers
Method
emergency_stop
Send an emergency stop command to the vehicle :return: control for braking
agents/navigation/agent.py:222
↓ 5 callers
Method
get_matrix
Creates matrix from carla transform.
leaderboard/team_code/base_agent.py:775
↓ 5 callers
Function
get_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
agents/tools/misc.py:31
↓ 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:70
↓ 5 callers
Method
rotate_point
rotate a given point by a given angle
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1836
↓ 5 callers
Function
save_dict
(endpoint, data)
leaderboard/leaderboard/utils/checkpoint_tools.py:67
↓ 5 callers
Method
set_destination
This method creates a list of waypoints from agent's position to destination location based on the route returned by the global route
agents/navigation/behavior_agent.py:105
↓ 5 callers
Method
set_weather
Set the weather of the world
scenario_runner/srunner/scenariomanager/carla_data_provider.py:205
↓ 5 callers
Method
start
(self)
scenario_runner/no_rendering_mode.py:291
↓ 5 callers
Function
tint
(color, factor)
open_loop_training/code/model_code/dense_heads/driver_adapter_head.py:141
↓ 5 callers
Function
tint
(color, factor)
leaderboard/team_code/driveadapter_agent.py:51
↓ 4 callers
Method
__init__
(self, in_dim, out_dim, act_layer=nn.ReLU)
open_loop_training/code/model_code/dense_heads/driver_adapter_head.py:125
↓ 4 callers
Method
_find_obstacle_3dbb
Returns a list of 3d bounding boxes of type obstacle_type. If the object does have a bounding box, this is returned. Otherwise a bb of
leaderboard/team_code/base_agent.py:524
↓ 4 callers
Method
_get_action_dist_from_features
(self, features: th.Tensor)
roach/models/ppo_policy.py:111
↓ 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_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
_get_surrounding_actors
(bbox_list, criterium, scale=None)
roach/obs_manager/birdview/chauffeurnet.py:240
↓ 4 callers
Method
_localize
This function finds the road segment closest to given location location : carla.Location to be localized in the graph
agents/navigation/global_route_planner.py:147
↓ 4 callers
Function
_orientation
(yaw)
leaderboard/team_code/auto_pilot.py:69
↓ 4 callers
Function
_orientation
(yaw)
leaderboard/team_code/roach_ap_agent_data_collection.py:70
↓ 4 callers
Method
_register_statistics
Computes and saved the simulation statistics
leaderboard/leaderboard/leaderboard_evaluator.py:295
↓ 4 callers
Method
_set_event_dict
Sets the dictionary of the event
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1031
↓ 4 callers
Method
_set_event_message
Sets the message of the event
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1013
↓ 4 callers
Method
_world_to_pixel
Converts the world coordinates to pixel coordinates
roach/obs_manager/birdview/chauffeurnet.py:272
↓ 4 callers
Method
destroy
(self)
scenario_runner/no_rendering_mode.py:1235
↓ 4 callers
Function
generate_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:318
↓ 4 callers
Method
get_bounding_box
(actor)
scenario_runner/no_rendering_mode.py:174
next →
1–100 of 1,526, ranked by callers