MCPcopy Create free account

hub / github.com/OpenDriveLab/TCP / functions

Functions1,281 in github.com/OpenDriveLab/TCP

↓ 4 callersMethodset_world
Set the world and world settings
scenario_runner/srunner/scenariomanager/carla_data_provider.py:191
↓ 4 callersMethodstop
(self)
leaderboard/leaderboard/envs/sensor_interface.py:83
↓ 4 callersMethodupdate
Check if the actor speed is above the speed_threshold
leaderboard/leaderboard/scenarios/scenarioatomics/atomic_criteria.py:49
↓ 3 callersFunctionNormedConv2d
nn.Conv2d but with normalized fan-in init
roach/models/torch_util.py:18
↓ 3 callersMethod_coords_to_2d_bb
Returns coords of a 2d box given points in sensor coords Args: cords ([type]): [description] Returns: [type]
leaderboard/team_code/base_agent.py:620
↓ 3 callersMethod_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:396
↓ 3 callersMethod_get_mask_from_stopline_vtx
(self, stopline_vtx, M_warp)
roach/obs_manager/birdview/chauffeurnet.py:212
↓ 3 callersMethod_get_position
(self, tick_data)
leaderboard/team_code/roach_ap_agent.py:179
↓ 3 callersMethod_get_position
(self, tick_data)
leaderboard/team_code/tcp_agent.py:89
↓ 3 callersMethod_load_and_run_scenario
Load and run the scenario given by config
scenario_runner/scenario_runner.py:338
↓ 3 callersMethod_set_event_dict
Sets the dictionary of the event
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1395
↓ 3 callersMethod_set_event_message
Sets the message of the event
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_criteria.py:1380
↓ 3 callersMethod_trig_to_world
Transforms the trigger coordinates to world coordinates Args: bb ([type]): [description] parent ([type]): [descriptio
leaderboard/team_code/base_agent.py:701
↓ 3 callersMethodadd_info
(self, module_name, info)
scenario_runner/no_rendering_mode.py:317
↓ 3 callersFunctionconv1x1
1x1 convolution
TCP/resnet.py:32
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
TCP/resnet.py:26
↓ 3 callersMethodcreate_blueprint
Function to setup the blueprint of an actor given its model and other relevant parameters
scenario_runner/srunner/scenariomanager/carla_data_provider.py:435
↓ 3 callersMethoddestroy
Cleanup of all ROS publishers
leaderboard/leaderboard/autoagents/ros_agent.py:163
↓ 3 callersMethoddestroy
Cleanup and delete actors, ScenarioManager and CARLA world
scenario_runner/scenario_runner.py:114
↓ 3 callersFunctionexit_game
()
scenario_runner/no_rendering_mode.py:1418
↓ 3 callersMethodforward
(self, birdview, state)
roach/models/torch_layers.py:58
↓ 3 callersMethodforward_value
(self, obs_dict: Dict[str, np.ndarray])
roach/models/ppo_policy.py:167
↓ 3 callersMethodgenerate_spawn_points
Generate spawn points for the current map
scenario_runner/srunner/scenariomanager/carla_data_provider.py:425
↓ 3 callersMethodget_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 callersMethodget_actor_transform
Returns the transform of the actor at a given frame.
scenario_runner/srunner/metrics/tools/metrics_log.py:256
↓ 3 callersMethodget_client
Get the CARLA client
scenario_runner/srunner/scenariomanager/carla_data_provider.py:170
↓ 3 callersMethodget_dict
@return dictionary
scenario_runner/srunner/scenariomanager/traffic_events.py:74
↓ 3 callersFunctionget_opponent_transform
Calculate the transform of the adversary
scenario_runner/srunner/scenarios/object_crash_intersection.py:33
↓ 3 callersFunctionget_right_driving_lane
Gets the driving / parking lane that is most to the right of the waypoint as well as the number of lane changes done
scenario_runner/srunner/scenarios/object_crash_intersection.py:60
↓ 3 callersMethodget_running_status
returns: bool: False if watchdog exception occured, True otherwise
leaderboard/leaderboard/scenarios/scenario_manager.py:184
↓ 3 callersMethodget_stopline_vtx
(veh_loc, color, dist_threshold=50.0)
roach/utils/traffic_light.py:181
↓ 3 callersMethodget_traffic_light_state
Returns the state of the traffic light at a specific frame.
scenario_runner/srunner/metrics/tools/metrics_log.py:363
↓ 3 callersMethodget_wallclocktime
Returns elapsed game time
scenario_runner/srunner/scenariomanager/timer.py:69
↓ 3 callersMethodintersection
Obtain a intersection point between two contour.
scenario_runner/srunner/tools/scenario_helper.py:506
↓ 3 callersMethodregister_module
(self, module)
scenario_runner/no_rendering_mode.py:195
↓ 3 callersMethodrun_step
Pure virtual function to run one step of the controllers's control loop. This should be implemented in the user-defined agent impleme
scenario_runner/srunner/scenariomanager/actorcontrols/basic_control.py:99
↓ 3 callersMethodsensors
Define the sensor suite required by the agent :return: a list containing the required sensors
leaderboard/leaderboard/autoagents/ros_agent.py:248
↓ 3 callersMethodset_parameters
Parse the xml_tree, and replace all parameter references with the actual values. Note: Parameter names must not start with "
scenario_runner/srunner/tools/openscenario_parser.py:147
↓ 3 callersMethodsetup
Default setup
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_trigger_conditions.py:61
↓ 3 callersMethodsetup
Default setup
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:109
↓ 3 callersMethodsize
:return: (int) The current size of the buffer
roach/models/ppo_buffer.py:255
↓ 3 callersMethodstart
Start the watchdog
scenario_runner/srunner/scenariomanager/watchdog.py:43
↓ 3 callersMethodstep
(self, action)
roach/utils/rl_birdview_wrapper.py:66
↓ 3 callersMethodstop
As with other composites, it checks if the child is running and stops it if that is the case. Args: new_status (:
scenario_runner/srunner/tools/py_trees_port.py:74
↓ 3 callersMethodstop
Stops the watchdog.
scenario_runner/srunner/scenariomanager/watchdog.py:68
↓ 3 callersFunctionsum_independent_dims
(tensor: th.Tensor)
roach/models/distributions.py:9
↓ 3 callersMethodterminate
On termination of this behavior, the throttle should be set back to 0., to avoid further acceleration.
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1276
↓ 3 callersMethodtick
(self, clock)
scenario_runner/manual_control.py:122
↓ 3 callersMethodtick
(self, clock)
scenario_runner/no_rendering_mode.py:314
↓ 3 callersMethodupdate_sensor
Updates the sensor
scenario_runner/srunner/autoagents/sensor_interface.py:100
↓ 3 callersMethodupdate_target_speed
Update the actor's target speed and set _init_speed to False. Args: speed (float): New target speed [m/s].
scenario_runner/srunner/scenariomanager/actorcontrols/basic_control.py:55
↓ 3 callersFunctionvec_global_to_ref
:param target_vec_in_global: carla.Vector3D in global coordinate (world, actor) :param ref_rot_in_global: carla.Rotation in global coordinate
roach/utils/transforms.py:21
↓ 2 callersMethod__init__
(self, tag, sensor_type, sensor, data_provider)
leaderboard/leaderboard/envs/sensor_interface.py:134
↓ 2 callersMethod__init__
( self, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], num_cla
TCP/resnet.py:146
↓ 2 callersMethod__init__
Setup all relevant parameters and create scenario
scenario_runner/srunner/scenarios/open_scenario.py:176
↓ 2 callersMethod__init__
Setup all relevant parameters and create scenario
scenario_runner/srunner/scenarios/object_crash_intersection.py:285
↓ 2 callersMethod_apply_local_planner
Convert the plan into locations for walkers (pedestrians), or to a waypoint list for other actors. For non-walkers, activate the carl
scenario_runner/srunner/scenariomanager/scenarioatomics/atomic_behaviors.py:1544
↓ 2 callersMethod_baseline_to_box
Transforms a baseline (in world coords) into a 2d box (in sensor coords) Args: baseline ([type]): [description] cam (
leaderboard/team_code/base_agent.py:602
↓ 2 callersMethod_create_2d_bb_points
Returns 2D floor bounding box for an actor.
leaderboard/team_code/base_agent.py:719
↓ 2 callersMethod_create_bb_points
Returns 3D bounding box world coordinates.
leaderboard/team_code/base_agent.py:362
↓ 2 callersMethod_extract_misc_information
Helper function to _set_actor_information for getting vehicle information from XML tree
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:289
↓ 2 callersMethod_extract_nodes_from_tree
Returns the list of all nodes from the given tree
scenario_runner/srunner/scenarios/basic_scenario.py:261
↓ 2 callersMethod_extract_pedestrian_information
Helper function to _set_actor_information for getting pedestrian information from XML tree
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:278
↓ 2 callersMethod_extract_vehicle_information
Helper function to _set_actor_information for getting vehicle information from XML tree
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:255
↓ 2 callersMethod_get_2d_bb_baseline
Returns 2 coordinates for the baseline for 2d bbs in world coordinates (distance behind trigger volume, as seen from camera) Args:
leaderboard/team_code/base_agent.py:571
↓ 2 callersMethod_get_action_beta
(self, alpha, beta)
TCP/model.py:230
↓ 2 callersMethod_get_actor_speed
Get the initial actor speed provided by the Init section
scenario_runner/srunner/scenarioconfigs/openscenario_configuration.py:342
↓ 2 callersMethod_get_angle_to
(self, pos, theta, target)
leaderboard/team_code/auto_pilot.py:119
↓ 2 callersMethod_get_dist
Returns the distance between p1 and p2 Args: target ([type]): [description] Returns: [type]: [description]
leaderboard/team_code/base_agent.py:830
↓ 2 callersMethod_get_distance
Returns the distance from the (rgb_front) camera to the target Args: target ([type]): [description] Returns:
leaderboard/team_code/base_agent.py:847
↓ 2 callersMethod_is_actor_affected_by_stop
Check if the given actor is affected by the stop
leaderboard/team_code/auto_pilot.py:242
↓ 2 callersMethod_set_new_velocity
Calculate and set the new actor veloctiy given the current actor location and the _next_location_ If _consider_obstacles is
scenario_runner/srunner/scenariomanager/actorcontrols/simple_vehicle_control.py:211
↓ 2 callersMethod_translate_tl_state
(self, state)
leaderboard/team_code/base_agent.py:380
↓ 2 callersMethod_update_plan
Update the plan (waypoint list) of the LocalPlanner
scenario_runner/srunner/scenariomanager/actorcontrols/npc_vehicle_control.py:46
↓ 2 callersFunctionautodetect_proxy
()
leaderboard/leaderboard/utils/checkpoint_tools.py:10
↓ 2 callersMethodblits
(destination_surface, source_surfaces, rect=None, blend_mode=0)
scenario_runner/no_rendering_mode.py:165
↓ 2 callersFunctionchoose_at_junction
This function chooses the appropriate waypoint from next_choices based on direction
scenario_runner/srunner/tools/scenario_helper.py:382
↓ 2 callersMethodcleanup
Remove and destroy all sensors
leaderboard/leaderboard/autoagents/agent_wrapper.py:271
↓ 2 callersMethodcleanup
Remove and destroy all sensors
scenario_runner/srunner/autoagents/agent_wrapper.py:89
↓ 2 callersMethodclip_surfaces
(self, clipping_rect)
scenario_runner/no_rendering_mode.py:1121
↓ 2 callersMethodcompute_returns_and_advantage
(self, last_value: th.Tensor, dones: np.ndarray)
roach/models/ppo_buffer.py:78
↓ 2 callersMethodconvert_condition_to_atomic
Convert an OpenSCENARIO condition into a Behavior/Criterion atomic If there is a delay defined in the condition, then the condition
scenario_runner/srunner/tools/openscenario_parser.py:590
↓ 2 callersFunctionconvert_transform_to_location
Convert a vector of transforms to a vector of locations
leaderboard/leaderboard/scenarios/route_scenario.py:126
↓ 2 callersFunctionconvert_transform_to_location
Convert a vector of transforms to a vector of locations
scenario_runner/srunner/scenarios/route_scenario.py:89
↓ 2 callersMethoddestroy
(self)
scenario_runner/no_rendering_mode.py:1235
↓ 2 callersFunctiondownsample_route
Downsample the route by some factor. :param route: the trajectory , has to contain the waypoints and the road options :param sample_facto
leaderboard/leaderboard/utils/route_manipulation.py:86
↓ 2 callersMethodentropy
(self)
roach/models/distributions.py:159
↓ 2 callersFunctiongenerate_target_waypoint_list_multilane
This methods generates a waypoint list which leads the vehicle to a parallel lane. The change input must be 'left' or 'right', depending on w
scenario_runner/srunner/tools/scenario_helper.py:259
↓ 2 callersFunctionget_actor_display_name
(actor, truncate=250)
scenario_runner/no_rendering_mode.py:157
↓ 2 callersMethodget_actor_ids_with_role_name
Returns a list of actor ids that match the given role_name. Args: role_name (str): string with the desired role_name to
scenario_runner/srunner/metrics/tools/metrics_log.py:87
↓ 2 callersMethodget_avg_ep_stat
(ep_stat_buffer, prefix='')
roach/utils/wandb_callback.py:195
↓ 2 callersMethodget_contour
create contour
scenario_runner/srunner/tools/scenario_helper.py:496
↓ 2 callersMethodget_controller
Extract the object controller from the OSC XML or a catalog Args: xml_tree: Containing the controller information,
scenario_runner/srunner/tools/openscenario_parser.py:340
↓ 2 callersFunctionget_crossing_point
Get the next crossing point location in front of the ego vehicle @return point of crossing
scenario_runner/srunner/tools/scenario_helper.py:121
↓ 2 callersMethodget_data
Returns the data of a sensor
scenario_runner/srunner/autoagents/sensor_interface.py:118
↓ 2 callersFunctionget_distance_along_route
Calculate the distance of the given location along the route Note: If the location is not along the route, the route length will be returned
scenario_runner/srunner/tools/scenario_helper.py:25
↓ 2 callersMethodget_ego_vehicle_id
Returns the id of the ego vehicle.
scenario_runner/srunner/metrics/tools/metrics_log.py:81
↓ 2 callersMethodget_frame
Returns elapsed game time
scenario_runner/srunner/scenariomanager/timer.py:76
↓ 2 callersMethodget_friction_from_env_action
Extract the CARLA road friction coefficient from an OSC EnvironmentAction Args: xml_tree: Containing the EnvironmentActi
scenario_runner/srunner/tools/openscenario_parser.py:260
↓ 2 callersFunctionget_geometric_linear_intersection
Obtain a intersection point between two actor's location by using their waypoints (wp) @return point of intersection of the two vehicles
scenario_runner/srunner/tools/scenario_helper.py:138
← previousnext →101–200 of 1,281, ranked by callers