Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/TCP
/ functions
Functions
1,281 in github.com/OpenDriveLab/TCP
⨍
Functions
1,281
◇
Types & classes
231
↓ 1 callers
Method
_get_warp_transform
(self, ev_loc, ev_rot)
roach/obs_manager/birdview/chauffeurnet.py:256
↓ 1 callers
Method
_init
(self)
leaderboard/team_code/auto_pilot.py:108
↓ 1 callers
Method
_init
(self)
leaderboard/team_code/roach_ap_agent.py:114
↓ 1 callers
Method
_init
(self)
leaderboard/team_code/tcp_agent.py:83
↓ 1 callers
Method
_init_data_params
(self)
scenario_runner/no_rendering_mode.py:306
↓ 1 callers
Method
_init_hud_params
(self)
scenario_runner/no_rendering_mode.py:294
↓ 1 callers
Method
_initialize_actors
Default initialization of other actors. Override this method in child class to provide custom initialization.
scenario_runner/srunner/scenarios/basic_scenario.py:108
↓ 1 callers
Method
_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:85
↓ 1 callers
Method
_is_at_wrong_lane
Detects if the ego_vehicle has invaded a wrong lane
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1157
↓ 1 callers
Method
_is_at_wrong_lane
Detects if the ego_vehicle has invaded a wrong driving lane
roach/criteria/outside_route_lane.py:62
↓ 1 callers
Method
_is_light_red
(self, lights_list)
leaderboard/team_code/auto_pilot.py:307
↓ 1 callers
Method
_is_outside_driving_lanes
Detects if the ego_vehicle is outside driving lanes
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1134
↓ 1 callers
Method
_is_outside_driving_lanes
Detects if the ego_vehicle is outside driving/parking lanes
roach/criteria/outside_route_lane.py:39
↓ 1 callers
Method
_is_quit_shortcut
(key)
scenario_runner/no_rendering_mode.py:1361
↓ 1 callers
Method
_is_stop_sign_hazard
(self, stop_sign_list)
leaderboard/team_code/auto_pilot.py:272
↓ 1 callers
Method
_is_vehicle_crossing_line
check if vehicle crosses a line segment
roach/criteria/run_red_light.py:57
↓ 1 callers
Method
_is_vehicle_hazard
(self, vehicle_list)
leaderboard/team_code/auto_pilot.py:339
↓ 1 callers
Method
_is_vehicle_hazard
(self, vehicle_list)
leaderboard/team_code/roach_ap_agent.py:399
↓ 1 callers
Method
_is_walker_hazard
(self, walkers_list)
leaderboard/team_code/auto_pilot.py:317
↓ 1 callers
Method
_is_walker_hazard
(self, walkers_list)
leaderboard/team_code/roach_ap_agent.py:377
↓ 1 callers
Method
_json_to_control
(self)
leaderboard/leaderboard/autoagents/human_agent.py:179
↓ 1 callers
Method
_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:286
↓ 1 callers
Method
_load_and_wait_for_world
Load a new CARLA world and provide data to CarlaDataProvider
leaderboard/leaderboard/leaderboard_evaluator.py:228
↓ 1 callers
Method
_load_and_wait_for_world
Load a new CARLA world and provide data to CarlaDataProvider
scenario_runner/scenario_runner.py:290
↓ 1 callers
Method
_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:103
↓ 1 callers
Method
_load_weight
(self)
TCP/train.py:29
↓ 1 callers
Function
_location_to_gps
Convert from world coordinates to GPS coordinates :param lat_ref: latitude reference for the current map :param lon_ref: longitude refere
leaderboard/leaderboard/utils/route_manipulation.py:21
↓ 1 callers
Function
_location_to_gps
Convert from world coordinates to GPS coordinates :param lat_ref: latitude reference for the current map :param lon_ref: longitude refere
scenario_runner/srunner/tools/route_manipulation.py:22
↓ 1 callers
Method
_on_camera_update
Callback for the camera sensor Sets the OpenCV image (_cv_image). Requires conversion from BGRA to RGB.
scenario_runner/srunner/scenariomanager/actorcontrols/simple_vehicle_control.py:121
↓ 1 callers
Method
_on_collision
(weakself, event)
roach/criteria/collision.py:50
↓ 1 callers
Method
_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:109
↓ 1 callers
Method
_parse_events
(self)
scenario_runner/no_rendering_mode.py:1264
↓ 1 callers
Method
_parse_gnss_cb
(self, gnss_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:185
↓ 1 callers
Method
_parse_gnss_cb
parses gnss sensors
scenario_runner/srunner/autoagents/sensor_interface.py:65
↓ 1 callers
Method
_parse_image_cb
(self, image, tag)
leaderboard/leaderboard/envs/sensor_interface.py:159
↓ 1 callers
Method
_parse_image_cb
parses cameras
scenario_runner/srunner/autoagents/sensor_interface.py:47
↓ 1 callers
Method
_parse_imu_cb
(self, imu_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:191
↓ 1 callers
Method
_parse_json_control
(self)
leaderboard/leaderboard/autoagents/human_agent.py:239
↓ 1 callers
Method
_parse_keys
(self, milliseconds)
scenario_runner/no_rendering_mode.py:1327
↓ 1 callers
Method
_parse_lidar_cb
(self, lidar_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:165
↓ 1 callers
Method
_parse_lidar_cb
parses lidar sensors
scenario_runner/srunner/autoagents/sensor_interface.py:56
↓ 1 callers
Method
_parse_mouse
(self)
scenario_runner/no_rendering_mode.py:1342
↓ 1 callers
Method
_parse_openscenario_configuration
Parse the given OpenSCENARIO config file, set and validate parameters
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:81
↓ 1 callers
Method
_parse_pseudosensor
(self, package, tag)
leaderboard/leaderboard/envs/sensor_interface.py:202
↓ 1 callers
Method
_parse_radar_cb
(self, radar_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:177
↓ 1 callers
Method
_parse_semantic_lidar_cb
(self, semantic_lidar_data, tag)
leaderboard/leaderboard/envs/sensor_interface.py:171
↓ 1 callers
Method
_parse_vehicle_keys
Calculate new vehicle controls based on input keys
leaderboard/leaderboard/autoagents/human_agent.py:208
↓ 1 callers
Method
_parse_vehicle_keys
Calculate new vehicle controls based on input keys
scenario_runner/srunner/autoagents/human_agent.py:194
↓ 1 callers
Method
_point_inside_boundingbox
(self, point, bb_center, bb_extent)
leaderboard/team_code/auto_pilot.py:212
↓ 1 callers
Method
_prepare_ego_vehicles
Spawn or update the ego vehicles
leaderboard/leaderboard/leaderboard_evaluator.py:192
↓ 1 callers
Method
_prepare_ego_vehicles
Spawn or update the ego vehicles
scenario_runner/scenario_runner.py:195
↓ 1 callers
Method
_record_control
(self)
leaderboard/leaderboard/autoagents/human_agent.py:247
↓ 1 callers
Method
_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:258
↓ 1 callers
Method
_render_speed_limits
(self, surface, list_sl, world_to_pixel, world_to_pixel_width)
scenario_runner/no_rendering_mode.py:1039
↓ 1 callers
Method
_render_traffic_lights
(self, surface, list_tl, world_to_pixel)
scenario_runner/no_rendering_mode.py:1009
↓ 1 callers
Method
_render_vehicles
(self, surface, list_v, world_to_pixel)
scenario_runner/no_rendering_mode.py:1090
↓ 1 callers
Method
_render_walkers
(self, surface, list_w, world_to_pixel)
scenario_runner/no_rendering_mode.py:1074
↓ 1 callers
Method
_reset
Reset all parameters
scenario_runner/srunner/scenariomanager/scenario_manager.py:68
↓ 1 callers
Method
_run_openscenario
Run a scenario based on OpenSCENARIO
scenario_runner/scenario_runner.py:460
↓ 1 callers
Method
_run_route
Run the route scenario
scenario_runner/scenario_runner.py:437
↓ 1 callers
Method
_run_scenarios
Run conventional scenarios (e.g. implemented using the Python API of ScenarioRunner)
scenario_runner/scenario_runner.py:415
↓ 1 callers
Method
_scan_for_stop_sign
(self)
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1968
↓ 1 callers
Method
_scan_for_stop_sign
(self, vehicle_transform)
roach/criteria/run_stop_sign.py:75
↓ 1 callers
Method
_scenario_sampling
The function used to sample the scenarios that are going to happen for this route.
leaderboard/leaderboard/scenarios/route_scenario.py:309
↓ 1 callers
Method
_scenario_sampling
The function used to sample the scenarios that are going to happen for this route.
scenario_runner/srunner/scenarios/route_scenario.py:263
↓ 1 callers
Method
_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:199
↓ 1 callers
Method
_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:151
↓ 1 callers
Method
_set_event_dict
Sets the dictionary of the event
leaderboard/leaderboard/scenarios/scenarioatomics/atomic_criteria.py:87
↓ 1 callers
Method
_set_event_message
Sets the message of the event
leaderboard/leaderboard/scenarios/scenarioatomics/atomic_criteria.py:78
↓ 1 callers
Method
_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:183
↓ 1 callers
Method
_set_scenario_name
Extract the scenario name from the OpenSCENARIO header information
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:141
↓ 1 callers
Method
_setup_scenario_end
This function adds and additional behavior to the scenario, which is triggered after it has ended. The function can be overl
scenario_runner/srunner/scenarios/basic_scenario.py:154
↓ 1 callers
Method
_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:121
↓ 1 callers
Method
_should_brake
(self)
leaderboard/team_code/auto_pilot.py:197
↓ 1 callers
Method
_spawn_adversary
(self, transform, orientation_yaw)
scenario_runner/srunner/scenarios/object_crash_vehicle.py:201
↓ 1 callers
Method
_spawn_blocker
Spawn the blocker prop that blocks the vision from the egovehicle of the jaywalker :return:
scenario_runner/srunner/scenarios/object_crash_vehicle.py:218
↓ 1 callers
Method
_spawn_hero
(self)
scenario_runner/no_rendering_mode.py:897
↓ 1 callers
Method
_split_actors
(self)
scenario_runner/no_rendering_mode.py:975
↓ 1 callers
Method
_tick_scenario
Run next tick of scenario and the agent and tick the world.
leaderboard/leaderboard/scenarios/scenario_manager.py:139
↓ 1 callers
Method
_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:149
↓ 1 callers
Method
_truncate_global_route_till_local_target
(self, windows_size=5)
leaderboard/team_code/roach_ap_agent.py:158
↓ 1 callers
Method
_update_ego_vehicle
Set/Update the start position of the ego_vehicle
leaderboard/leaderboard/scenarios/route_scenario.py:246
↓ 1 callers
Method
_update_ego_vehicle
Set/Update the start position of the ego_vehicle
scenario_runner/srunner/scenarios/route_scenario.py:205
↓ 1 callers
Method
_update_route
Update the input route, i.e. refine waypoint list, and extract possible scenario locations Parameters: - world: CARLA world - config: Scenar
leaderboard/leaderboard/scenarios/route_scenario.py:212
↓ 1 callers
Method
_update_route
Update the input route, i.e. refine waypoint list, and extract possible scenario locations Parameters: - world: CARLA world
scenario_runner/srunner/scenarios/route_scenario.py:173
↓ 1 callers
Method
_validate_openscenario_catalog_configuration
Validate the given OpenSCENARIO catalog config against the 0.9.1 XSD Note: This will throw if the catalog config is not valid. But t
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:71
↓ 1 callers
Method
_validate_openscenario_configuration
Validate the given OpenSCENARIO config against the 0.9.1 XSD Note: This will throw if the config is not valid. But this is fine here
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:61
↓ 1 callers
Method
_validate_result
Check that the current scenario configuration is valid
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:370
↓ 1 callers
Method
_weather_to_dict
(self, carla_weather)
leaderboard/team_code/roach_ap_agent.py:528
↓ 1 callers
Method
_weather_to_dict
(self, carla_weather)
leaderboard/team_code/base_agent.py:346
↓ 1 callers
Method
_write_to_junit
Writing to Junit XML
scenario_runner/srunner/scenariomanager/result_writer.py:135
↓ 1 callers
Method
actor_id_exists
Check if a certain id is still at the simulation
scenario_runner/srunner/scenariomanager/carla_data_provider.py:710
↓ 1 callers
Method
add
(self, obs_dict: Dict[str, np.ndarray], action: np.ndarray, reward: np.nda
roach/models/ppo_buffer.py:98
↓ 1 callers
Method
all_sensors_ready
Checks if all the sensors have sent data at least once
scenario_runner/srunner/autoagents/sensor_interface.py:109
↓ 1 callers
Method
analyze_scenario
Analyzes and prints the results of the route
leaderboard/leaderboard/scenarios/scenario_manager.py:213
↓ 1 callers
Method
analyze_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:200
↓ 1 callers
Method
annotate_trafficlight_in_group
Get dictionary with traffic light group info for a given traffic light
scenario_runner/srunner/scenariomanager/carla_data_provider.py:268
↓ 1 callers
Function
apart_enough
Uses the same condition as in route_scenario to see if they will be differentiated
leaderboard/scripts/set_new_scenarios.py:22
↓ 1 callers
Method
assign_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:219
↓ 1 callers
Method
attach_ego_vehicle
(self, parent_actor)
roach/obs_manager/actor_state/route.py:23
← previous
next →
301–400 of 1,281, ranked by callers