MCPcopy Create free account

hub / github.com/OpenDriveLab/TCP / functions

Functions1,281 in github.com/OpenDriveLab/TCP

↓ 1 callersMethodbuild_camera_info
Private function to compute camera info camera info doesn't change over time
leaderboard/leaderboard/autoagents/ros_agent.py:202
↓ 1 callersMethodbuild_camera_info
Private function to compute camera info camera info doesn't change over time
scenario_runner/srunner/autoagents/ros_agent.py:201
↓ 1 callersFunctioncalculate_velocity
Method to calculate the velocity of a actor
scenario_runner/srunner/scenariomanager/carla_data_provider.py:23
↓ 1 callersFunctioncarla_rot_to_mat
Transform rpy in carla.Rotation to rotation matrix in np.array :param carla_rotation: carla.Rotation :return: np.array rotation matrix
roach/utils/transforms.py:53
↓ 1 callersMethodcheck_reached_waypoint_goal
Check if the actor reached the end of the waypoint list returns: True if the end was reached, False otherwise.
scenario_runner/srunner/scenariomanager/actorcontrols/basic_control.py:81
↓ 1 callersMethodcheck_trigger_position
Check if this trigger position already exists or if it is a new one. :param new_trigger: :param existing_triggers: :r
leaderboard/leaderboard/utils/route_parser.py:154
↓ 1 callersMethodcheck_trigger_position
Check if this trigger position already exists or if it is a new one. :param new_trigger: :param existing_triggers: :r
scenario_runner/srunner/tools/route_parser.py:120
↓ 1 callersMethodcleanup
Reset all parameters
leaderboard/leaderboard/scenarios/scenario_manager.py:88
↓ 1 callersMethodcleanup
This function triggers a proper termination of a scenario
scenario_runner/srunner/scenariomanager/scenario_manager.py:80
↓ 1 callersMethodclear_modules
(self)
scenario_runner/no_rendering_mode.py:198
↓ 1 callersMethodclear_record
(endpoint)
leaderboard/leaderboard/utils/statistics_manager.py:340
↓ 1 callersMethodcollect_rollouts
(self, env: VecEnv, callback: BaseCallback, rollout_buffer: PpoBuffer, n_rollout_step
roach/models/ppo.py:66
↓ 1 callersMethodcollision_detect
(self)
leaderboard/team_code/roach_ap_agent.py:365
↓ 1 callersFunctioncompare_scenarios
Compare function for scenarios based on distance of the scenario start position
leaderboard/leaderboard/scenarios/route_scenario.py:137
↓ 1 callersFunctioncompare_scenarios
Compare function for scenarios based on distance of the scenario start position
scenario_runner/srunner/scenarios/route_scenario.py:100
↓ 1 callersMethodcompute_global_statistics
(self, total_routes)
leaderboard/leaderboard/utils/statistics_manager.py:206
↓ 1 callersFunctioncompute_route_length
(config)
leaderboard/leaderboard/utils/statistics_manager.py:63
↓ 1 callersMethodcompute_route_statistics
Compute the current statistics by evaluating all relevant scenario criteria
leaderboard/leaderboard/utils/statistics_manager.py:118
↓ 1 callersMethodcontrol_pid
Predicts vehicle control with a PID controller. Args: waypoints (tensor): output of self.plan() velocity (tensor): speedometer input
TCP/model.py:250
↓ 1 callersFunctionconvert_json_to_actor
Convert a JSON string to an ActorConfigurationData dictionary
leaderboard/leaderboard/scenarios/route_scenario.py:113
↓ 1 callersFunctionconvert_json_to_actor
Convert a JSON string to an ActorConfigurationData dictionary
scenario_runner/srunner/scenarios/route_scenario.py:76
↓ 1 callersFunctionconvert_json_to_transform
Convert a JSON string to a CARLA transform
leaderboard/leaderboard/scenarios/route_scenario.py:104
↓ 1 callersFunctionconvert_json_to_transform
Convert a JSON string to a CARLA transform
scenario_runner/srunner/scenarios/route_scenario.py:67
↓ 1 callersMethodconvert_maneuver_to_atomic
Convert an OpenSCENARIO maneuver action into a Behavior atomic Note not all OpenSCENARIO actions are currently supported
scenario_runner/srunner/tools/openscenario_parser.py:895
↓ 1 callersMethodconvert_waypoint_float
Convert waypoint values to float
leaderboard/leaderboard/utils/route_parser.py:176
↓ 1 callersMethodconvert_waypoint_float
Convert waypoint values to float
scenario_runner/srunner/tools/route_parser.py:142
↓ 1 callersMethodcreate_output_text
Creates the output message
leaderboard/leaderboard/utils/result_writer.py:41
↓ 1 callersMethodcreate_output_text
Creates the output message
scenario_runner/srunner/scenariomanager/result_writer.py:60
↓ 1 callersMethoddestroy
(self)
leaderboard/team_code/tcp_agent.py:270
↓ 1 callersFunctiondetect_lane_obstacle
This function identifies if an obstacle is present in front of the reference actor
scenario_runner/srunner/tools/scenario_helper.py:445
↓ 1 callersFunctiondownsample_route
Downsample the route by some factor. :param route: the trajectory , has to contain the waypoints and the road options :param sample_facto
scenario_runner/srunner/tools/route_manipulation.py:87
↓ 1 callersMethoddraw_road_map
(self, map_surface, carla_world, carla_map, world_to_pixel, world_to_pixel_width)
scenario_runner/no_rendering_mode.py:458
↓ 1 callersFunctiondraw_scenarios
Draws all the points related to args.scenarios
leaderboard/scripts/set_new_scenarios.py:83
↓ 1 callersFunctiondraw_stop_signs
(image, vehicle, lights, pixels_per_meter=5.5, size=512, radius=5)
leaderboard/team_code/map_agent.py:139
↓ 1 callersFunctiondraw_traffic_lights
(image, vehicle, lights, pixels_per_meter=5.5, size=512, radius=5)
leaderboard/team_code/map_agent.py:96
↓ 1 callersMethodentropy_loss
(self)
roach/models/distributions.py:228
↓ 1 callersMethodevaluate_actions
(self, obs_dict: Dict[str, th.Tensor], actions: th.Tensor, exploration_suggests, deta
roach/models/ppo_policy.py:120
↓ 1 callersMethodevaluate_policy
(env, policy, video_path, min_eval_steps=3000)
roach/utils/wandb_callback.py:139
↓ 1 callersMethodexploration_loss
(self, exploration_suggests)
roach/models/distributions.py:232
↓ 1 callersMethodforward
(self, img, state, target_point)
TCP/model.py:138
↓ 1 callersFunctiongame_loop
(args)
scenario_runner/manual_control.py:133
↓ 1 callersFunctiongame_loop
(args)
scenario_runner/no_rendering_mode.py:1376
↓ 1 callersFunctiongen_single_route
(route_folder)
tools/gen_data.py:15
↓ 1 callersFunctiongen_sub_folder
(folder_path)
tools/gen_data.py:115
↓ 1 callersFunctiongenerate_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:343
↓ 1 callersFunctiongenerate_target_waypoint_list
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:224
↓ 1 callersMethodget_action
(self, mu, sigma)
TCP/model.py:330
↓ 1 callersMethodget_actions
(self, deterministic: bool = False)
roach/models/distributions.py:275
↓ 1 callersFunctionget_actor_display_name
(actor, truncate=250)
scenario_runner/manual_control.py:72
↓ 1 callersFunctionget_collision
(p1, v1, p2, v2)
leaderboard/team_code/auto_pilot.py:73
↓ 1 callersFunctionget_collision
(p1, v1, p2, v2)
leaderboard/team_code/roach_ap_agent.py:56
↓ 1 callersMethodget_data
(self)
leaderboard/leaderboard/envs/sensor_interface.py:233
↓ 1 callersMethodget_ego
Get the CARLA ego
scenario_runner/srunner/scenariomanager/carla_data_provider.py:184
↓ 1 callersMethodget_hero_actor
Get the actor object of the hero actor if it exists, returns none otherwise.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:720
↓ 1 callersMethodget_init_kwargs
(self)
roach/models/ppo_policy.py:208
↓ 1 callersMethodget_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:126
↓ 1 callersMethodget_light_state
vehicle: carla.Vehicle
roach/utils/traffic_light.py:114
↓ 1 callersMethodget_list_of_scenarios
Parse *all* config files and provide a list with all scenarios @return
scenario_runner/srunner/tools/scenario_parser.py:103
↓ 1 callersMethodget_matrix
Creates matrix from carla transform.
leaderboard/team_code/roach_ap_agent.py:609
↓ 1 callersMethodget_observation
(self)
roach/obs_manager/actor_state/route.py:26
↓ 1 callersMethodget_route
Extract the route from the OSC XML or a catalog Args: xml_tree: Containing the route information, or the
scenario_runner/srunner/tools/openscenario_parser.py:379
↓ 1 callersMethodget_scenario_type
Some scenarios have different types depending on the route. :param scenario: the scenario name :param match_position: the mat
leaderboard/leaderboard/utils/route_parser.py:216
↓ 1 callersMethodget_scenario_type
Some scenarios have different types depending on the route. :param scenario: the scenario name :param match_position: the mat
scenario_runner/srunner/tools/route_parser.py:182
↓ 1 callersMethodget_target_gps
(self, gps, compass)
leaderboard/team_code/roach_ap_agent.py:472
↓ 1 callersMethodget_traffic_light_configuration
Checks the list of possible altered traffic lights and gets the first one that exists in the intersection Important paramete
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2312
↓ 1 callersMethodget_traffic_light_waypoints
get area of a given traffic light
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1837
↓ 1 callersMethodget_traffic_manager_port
Get the port of the traffic manager.
scenario_runner/srunner/scenariomanager/carla_data_provider.py:768
↓ 1 callersMethodget_vehicle_lights
Returns the vehicle lights of the vehicle at a specific frame.
scenario_runner/srunner/metrics/tools/metrics_log.py:398
↓ 1 callersMethodget_waiting_time
Calculates the time the ego traffic light will remain red to let vehicles enter the junction
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:2296
↓ 1 callersMethodim_render
(self, render_dict)
leaderboard/team_code/roach_ap_agent.py:284
↓ 1 callersMethodinitialise
Set current time to current CARLA time
scenario_runner/srunner/scenariomanager/weather_sim.py:119
↓ 1 callersFunctioninterpolate_trajectory
Given some raw keypoints interpolate a full dense trajectory to be used by the user. Args: world: an reference to the CARLA world so
tools/generate_random_routes.py:251
↓ 1 callersFunctioninterpolate_trajectory
Given some raw keypoints interpolate a full dense trajectory to be used by the user. returns the full interpolated route both in GPS coordina
leaderboard/leaderboard/utils/route_manipulation.py:132
↓ 1 callersFunctioninterpolate_trajectory
Given some raw keypoints interpolate a full dense trajectory to be used by the user. :param world: an reference to the CARLA world so we
scenario_runner/srunner/tools/route_manipulation.py:133
↓ 1 callersFunctionis_lane_a_parking
This function filters false negative Shoulder which are in reality Parking lanes. These are differentiated from the others because, similar t
scenario_runner/srunner/scenarios/object_crash_intersection.py:85
↓ 1 callersMethodis_vehicle_crossing_line
check if vehicle crosses a line segment
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1722
↓ 1 callersMethodload_scenario
Load a new scenario
leaderboard/leaderboard/scenarios/scenario_manager.py:99
↓ 1 callersMethodload_scenario
Load a new scenario
scenario_runner/srunner/scenariomanager/scenario_manager.py:94
↓ 1 callersFunctionloc_global_to_ref
:param target_loc_in_global: carla.Location in global coordinate (world, actor) :param ref_trans_in_global: carla.Transform in global coordin
roach/utils/transforms.py:5
↓ 1 callersFunctionlocation_route_to_gps
Locate each waypoint of the route into gps, (lat long ) representations. :param route: :param lat_ref: :param lon_ref: :retur
leaderboard/leaderboard/utils/route_manipulation.py:44
↓ 1 callersFunctionlocation_route_to_gps
Locate each waypoint of the route into gps, (lat long ) representations. :param route: :param lat_ref: :param lon_ref: :retur
scenario_runner/srunner/tools/route_manipulation.py:45
↓ 1 callersFunctionmain
()
tools/generate_random_routes.py:289
↓ 1 callersFunctionmain
()
leaderboard/leaderboard/leaderboard_evaluator.py:469
↓ 1 callersFunctionmain
()
leaderboard/scripts/pretty_print_json.py:97
↓ 1 callersFunctionmain
Used to help with the visualization of the scenario trigger points, as well as its modifications. --town: Selects the town --
leaderboard/scripts/set_new_scenarios.py:154
↓ 1 callersFunctionmain
main function
scenario_runner/scenario_runner.py:493
↓ 1 callersFunctionmain
()
scenario_runner/manual_control.py:176
↓ 1 callersFunctionmain
()
scenario_runner/no_rendering_mode.py:1428
↓ 1 callersFunctionmain
main function
scenario_runner/metrics_manager.py:127
↓ 1 callersMethodmatch_world_location_to_route
We match this location to a given route. world_location: route_description:
leaderboard/leaderboard/utils/route_parser.py:186
↓ 1 callersMethodmatch_world_location_to_route
We match this location to a given route. world_location: route_description:
scenario_runner/srunner/tools/route_parser.py:152
↓ 1 callersMethodmode
(self)
roach/models/distributions.py:103
↓ 1 callersMethodmode
(self)
roach/models/distributions.py:165
↓ 1 callersMethodmode
(self)
roach/models/distributions.py:255
↓ 1 callersFunctionmodify_junction_scenarios
Used to move scenario trigger points: 1) a certain distance to the front (follows the lane) 2) a certain distance to the back (do
leaderboard/scripts/set_new_scenarios.py:112
↓ 1 callersMethodon_world_tick
(weak_self, timestamp)
scenario_runner/no_rendering_mode.py:966
↓ 1 callersFunctiononeshot_behavior
This is taken from py_trees.idiom.oneshot.
leaderboard/leaderboard/scenarios/route_scenario.py:71
↓ 1 callersMethodoutput_shape
(self, inshape)
roach/models/torch_util.py:98
↓ 1 callersFunctionparse_actor
Returns a dictionary with the basic actor information Args: info (list): list corresponding to a row of the recorder
scenario_runner/srunner/metrics/tools/metrics_parser.py:17
↓ 1 callersFunctionparse_angular_velocity
Parses a list into a carla.Vector3D with the angular velocity Args: info (list): list corresponding to a row of the recorder
scenario_runner/srunner/metrics/tools/metrics_parser.py:149
← previousnext →401–500 of 1,281, ranked by callers