MCPcopy Create free account

hub / github.com/Rex-sys-hk/PlanScope / functions

Functions459 in github.com/Rex-sys-hk/PlanScope

↓ 8 callersMethodget_route_roadblock_ids
(self, process=True)
src/scenario_manager/scenario_manager.py:72
↓ 8 callersMethodsize
(cls)
src/post_processing/common/enum.py:25
↓ 8 callersFunctionto_tensor
(data)
src/utils/utils.py:12
↓ 7 callersFunctionsort_predictions
Sort the predictions based on the probability of each mode. Args: predictions (torch.Tensor): The predicted trajectories [b, k, t, 2].
src/metrics/utils.py:4
↓ 6 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
src/models/pluto/layers/embedding.py:122
↓ 6 callersFunction_within_bound
Determines wether values in batch-dim are within bounds. :param metric: metric values :param min_bound: minimum bound, defaults to None
src/post_processing/evaluation/comfort_metrics.py:210
↓ 6 callersMethodintersects
Searches for intersecting geometries in the occupancy map :param geometry: geometries to query :return: list of tokens for in
src/scenario_manager/occupancy_map.py:80
↓ 6 callersMethodnormalize
( self, data, first_time=False, radius=None, hist_steps=21 )
src/features/pluto_feature.py:168
↓ 6 callersFunctionto_numpy
(data)
src/utils/utils.py:33
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
src/models/pluto/layers/transformer.py:197
↓ 5 callersFunctionforward_integrate
Performs a simple euler integration. :param init: Initial state :param delta: The rate of change of the state. :param sampling_time:
src/post_processing/forward_simulation/batch_kinematic_bicycle.py:19
↓ 5 callersMethodquery
Function to directly calls shapely's query function on str-tree :param geometry: geometries to query :param predicate: see sh
src/scenario_manager/occupancy_map.py:102
↓ 5 callersMethodupdate_ego_state
(self, ego_state: EgoState)
src/scenario_manager/scenario_manager.py:81
↓ 4 callersMethod_polygon_to_patch
(self, polygon: shapely.geometry.Polygon, **kwargs)
src/feature_builders/nuplan_scenario_render.py:399
↓ 4 callersFunctioncreate_dataset
Create a dataset from a list of samples. :param samples: List of dataset candidate samples. :param feature_preprocessor: Feature preproce
src/custom_training/custom_datamodule.py:35
↓ 4 callersFunctioncrop_img_from_center
(img, crop_size)
src/utils/utils.py:120
↓ 4 callersMethodforward
Args: candidate_trajectories: (N, 80+1, S), sampled at 10 Hz
src/post_processing/forward_simulation/forward_simulator.py:32
↓ 3 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
src/models/pluto/layers/transformer.py:13
↓ 3 callersFunction_extract_ego_acceleration
Extract acceleration of ego pose in simulation history over batch-dim :param states: array representation of ego state values :param acce
src/post_processing/evaluation/comfort_metrics.py:33
↓ 3 callersFunction_generate_profile_from_initial_condition_and_derivatives
Returns the corresponding profile (i.e. trajectory) given an initial condition and derivatives at multiple timesteps by integration. :par
src/post_processing/forward_simulation/batch_lqr_utils.py:19
↓ 3 callersMethod_min_norm_element_from2
Analytical solution for min_{c} |cx_1 + (1-c)x_2|_2^2 d is the distance (objective) optimzed v1v1 = <x1,x1> v1v2 = <x
src/utils/min_norm_solvers.py:9
↓ 3 callersMethod_sample_discrete_path
(self, discrete_path: List[StateSE2], num_points: int)
src/feature_builders/pluto_feature_builder.py:718
↓ 3 callersMethod_sample_discrete_path
(self, discrete_path: List[StateSE2], num_points: int)
src/feature_builders/scope_feature_builder.py:718
↓ 3 callersMethod_step
Propagates the model forward and backwards and computes/logs losses and metrics. This is called either during training, validation o
src/models/pluto/scope_trainer.py:122
↓ 3 callersMethod_step
Propagates the model forward and backwards and computes/logs losses and metrics. This is called either during training, validation o
src/models/pluto/pluto_trainer.py:89
↓ 3 callersFunctionbuild_training_engine
Build the three core lightning modules: LightningDataModule, LightningModule and Trainer :param cfg: omegaconf dictionary :param worker:
src/custom_training/custom_training_builder.py:238
↓ 3 callersFunctionget_polyline_arc_length
Get the arc length of each point in a polyline
src/utils/vis.py:10
↓ 3 callersMethodget_reference_lines
(self, ego_state: EgoState, interval=1.0, length=100)
src/scenario_manager/route_manager.py:108
↓ 3 callersMethodglobal_to_pixel
(self, coord: np.ndarray)
src/scenario_manager/cost_map_manager.py:99
↓ 3 callersFunctionnormalize_angle
(angle: float)
src/scenario_manager/utils/route_utils.py:16
↓ 3 callersFunctionplot_box
( ax: plt.Axes, cur_location: np.ndarray, heading: float, color: str, bbox_size: Tuple[flo
src/utils/vis.py:83
↓ 3 callersMethodsearch
Apply BFS to find route to target roadblock. :param target_roadblock_id: id of target roadblock :param max_depth: maximum sea
src/scenario_manager/utils/bfs_roadblock.py:30
↓ 3 callersMethodto_vector
(feat, valid_mask)
src/models/pluto/modules/agent_encoder.py:42
↓ 3 callersMethodupdate_drivable_area_map
(self, da: OccupancyMap)
src/scenario_manager/route_manager.py:85
↓ 3 callersMethodupdate_ego_path
(self, length=50)
src/scenario_manager/scenario_manager.py:162
↓ 2 callersFunction_approximate_derivatives
Given two equal-length sequences y and x, compute an approximation to the n-th derivative of some function interpolating the (x, y) data poin
src/post_processing/evaluation/comfort_metrics.py:166
↓ 2 callersMethod_build_feature
( self, present_idx: int, ego_state_list: List[EgoState], tracked_objects_list
src/feature_builders/pluto_feature_builder.py:180
↓ 2 callersMethod_build_feature
( self, present_idx: int, ego_state_list: List[EgoState], tracked_objects_list
src/feature_builders/scope_feature_builder.py:180
↓ 2 callersFunction_extract_ego_jerk
Extract jerk of ego pose in simulation history over batch-dim :param states: array representation of ego state values :param acceleration
src/post_processing/evaluation/comfort_metrics.py:79
↓ 2 callersFunction_extract_ego_yaw_rate
Extract yaw-rate of simulation history over batch-dim :param states: array representation of ego state values :param time_steps_s: time s
src/post_processing/evaluation/comfort_metrics.py:114
↓ 2 callersMethod_ff_block
(self, x: Tensor)
src/models/pluto/layers/transformer.py:164
↓ 2 callersMethod_global_to_local
(self, global_trajectory: np.ndarray, ego_state: EgoState)
src/planners/pluto_planner.py:412
↓ 2 callersMethod_global_to_local
(self, global_trajectory: np.ndarray, ego_state: EgoState)
src/planners/scope_planner.py:413
↓ 2 callersMethod_mha_block
( self, x: Tensor, mem: Tensor, attn_mask: Optional[Tensor], key_paddi
src/models/pluto/layers/transformer.py:147
↓ 2 callersMethod_min_norm_2d
Find the minimum norm solution as combination of two points This is correct only in 2D ie. min_c |\sum c_i x_i|_2^2 st. \sum
src/utils/min_norm_solvers.py:32
↓ 2 callersMethod_plot_ego
(self, ax, ego_state: EgoState, gt=False)
src/feature_builders/nuplan_scenario_render.py:340
↓ 2 callersMethodbrake_if_emergency
( self, ego_state: EgoState, time_to_at_fault_collision: float, ego_trajectory
src/post_processing/emergency_brake.py:48
↓ 2 callersMethodbuild_cost_maps
( self, static_objects: list[StaticObject], agents: Dict[str, np.ndarray] = None,
src/scenario_manager/cost_map_manager.py:49
↓ 2 callersMethodcollate
(cls, feature_list: List[PlutoFeature])
src/features/pluto_feature.py:24
↓ 2 callersMethodcollision_check
performing batch-wise collision check using Separating Axis Theorem params: ego_states: [bs, (x, y, theta)], center of the ego
src/utils/collision_checker.py:59
↓ 2 callersFunctioncompute_agents_vertices
Args: position: (N, T, 2) angle: (N, T) shape: (N, 2) [width, length] Returns: 4 corners of oriented box (FL,
src/post_processing/common/geometry.py:15
↓ 2 callersMethodcompute_dis
(self, outputs: Dict[str, torch.Tensor], data: Dict[str, torch.Tensor])
src/metrics/mul_ade.py:175
↓ 2 callersMethodcompute_dis
(self, outputs: Dict[str, torch.Tensor], data: Dict[str, torch.Tensor])
src/metrics/nll_loss.py:93
↓ 2 callersMethodcwt_loss
(self, pred, target, device, wavelet='cgau1', mode='constant')
src/metrics/mul_ade.py:78
↓ 2 callersMethodevaluate
( self, candidate_trajectories: np.ndarray, init_ego_state: EgoState, detectio
src/post_processing/trajectory_evaluator.py:88
↓ 2 callersMethodfill_convex_polygon
(self, mask, polygon, value=1)
src/scenario_manager/cost_map_manager.py:108
↓ 2 callersMethodfill_polygon
(self, mask, polygon, value=1)
src/scenario_manager/cost_map_manager.py:104
↓ 2 callersMethodget_cached_reference_lines
(self)
src/scenario_manager/scenario_manager.py:232
↓ 2 callersFunctionget_collision_type
Classify collision between ego and the track. :param ego_state: Ego's state at the current timestamp. :param tracked_object: Tracked obje
src/post_processing/common/geometry.py:82
↓ 2 callersMethodget_ego_path_points
(self, start_progress, end_progress)
src/scenario_manager/scenario_manager.py:218
↓ 2 callersMethodget_features_from_simulation
( self, current_input: PlannerInput, initialization: PlannerInitialization )
src/feature_builders/pluto_feature_builder.py:158
↓ 2 callersMethodget_leading_objects
(self)
src/scenario_manager/scenario_manager.py:187
↓ 2 callersMethodget_object_at_frame
(self, token, frame_idx)
src/post_processing/observation/world_from_prediction.py:165
↓ 2 callersMethodget_occupancy_object
(self, token: str)
src/scenario_manager/scenario_manager.py:215
↓ 2 callersMethodget_route_lane_dicts
(self)
src/scenario_manager/scenario_manager.py:77
↓ 2 callersFunctionglobal_trajectory_to_states
( global_trajectory: npt.NDArray[np.float32], ego_history: Deque[EgoState], future_horizon: float,
src/planners/ml_planner_utils.py:21
↓ 2 callersFunctionload_checkpoint
(checkpoint: str)
src/planners/ml_planner_utils.py:58
↓ 2 callersMethodload_state_dict
Loads the schedulers state. Args: state_dict (dict): scheduler state. Should be an object returned from a call to
src/optim/warmup_cos_lr.py:26
↓ 2 callersMethodobject_in_drivable_area
(self, polygon: Polygon)
src/scenario_manager/scenario_manager.py:238
↓ 2 callersMethodrender
( self, map_api: AbstractMap, ego_state: EgoState, route_roadblock_ids: List[s
src/feature_builders/nuplan_scenario_render.py:181
↓ 2 callersMethodrender_from_simulation
( self, current_input: PlannerInput = None, initialization: PlannerInitialization = No
src/feature_builders/nuplan_scenario_render.py:88
↓ 2 callersMethodsearch
Performs dijkstra's shortest path to find a route to the target roadblock. :param target_roadblock: The target roadblock the path sho
src/scenario_manager/utils/dijkstra.py:25
↓ 2 callersFunctionshift_and_rotate_img
img: (H, W, C) shift: (H_shift, W_shift, 0) resolution: float angle: float
src/utils/utils.py:100
↓ 2 callersMethodtime_to_at_fault_collision
(self, rollout_idx: int)
src/post_processing/trajectory_evaluator.py:85
↓ 2 callersFunctionto_device
(data, device)
src/utils/utils.py:56
↓ 2 callersMethodto_device
(self, device: torch.device)
src/features/pluto_feature.py:144
↓ 2 callersMethodto_feature_tensor
(self)
src/features/pluto_feature.py:96
↓ 2 callersMethodupdate
Loads proposal state array and resets velocity, and curvature profile. :param proposal_states: array representation of proposals.
src/post_processing/forward_simulation/batch_lqr.py:149
↓ 2 callersMethodupdate_drivable_area_map
Builds occupancy map of drivable area. :param ego_state: EgoState
src/scenario_manager/scenario_manager.py:84
↓ 2 callersMethodupdate_obstacle_map
Builds occupancy map of obstacles. :param ego_state: EgoState
src/scenario_manager/scenario_manager.py:120
↓ 1 callersMethod__init__
(self, dim, num_heads, mlp_ratio, dropout)
src/models/pluto/modules/planning_decoder.py:13
↓ 1 callersMethod__init__
( self, state_channel=6, history_channel=9, dim=128, hist_steps=21,
src/models/pluto/modules/agent_encoder.py:9
↓ 1 callersMethod__init__
(self, dim, num_heads, mlp_ratio, dropout)
src/models/pluto/modules/hierachical_decoder.py:13
↓ 1 callersMethod_aggregate_scores
(self)
src/post_processing/trajectory_evaluator.py:450
↓ 1 callersMethod_build_ego_bbox
(self, xy, angle)
src/feature_builders/pluto_feature_builder.py:795
↓ 1 callersMethod_build_ego_bbox
(self, xy, angle)
src/feature_builders/scope_feature_builder.py:795
↓ 1 callersMethod_check_end_condition
Check if the search should end regardless if the goal condition is met. :param depth: The current depth to check. :param targ
src/scenario_manager/utils/bfs_roadblock.py:101
↓ 1 callersMethod_check_goal_condition
Check if the current edge is at the target roadblock at the given depth. :param current_edge: The edge to check. :param targe
src/scenario_manager/utils/dijkstra.py:124
↓ 1 callersMethod_check_goal_condition
Check if the current edge is at the target roadblock at the given depth. :param current_edge: edge to check. :param depth: cu
src/scenario_manager/utils/bfs_roadblock.py:110
↓ 1 callersMethod_compute_contrastive_loss
Compute triplet loss Args: hidden: (3*bs, D)
src/models/pluto/scope_trainer.py:309
↓ 1 callersMethod_compute_contrastive_loss
Compute triplet loss Args: hidden: (3*bs, D)
src/models/pluto/pluto_trainer.py:250
↓ 1 callersMethod_compute_initial_velocity_and_lateral_state
This method projects the initial tracking error into vehicle/Frenet frame. It also extracts initial velocity. :param current_iterati
src/post_processing/forward_simulation/batch_lqr.py:241
↓ 1 callersMethod_compute_metrics
Computes a set of planning metrics given the model's predictions and targets. :param predictions: model's predictions :param
src/models/pluto/scope_trainer.py:339
↓ 1 callersMethod_compute_metrics
Computes a set of planning metrics given the model's predictions and targets. :param predictions: model's predictions :param
src/models/pluto/pluto_trainer.py:280
↓ 1 callersMethod_compute_objectives
(self, res, data)
src/models/pluto/scope_trainer.py:143
↓ 1 callersMethod_compute_objectives
(self, res, data)
src/models/pluto/pluto_trainer.py:110
↓ 1 callersMethod_compute_reference_velocity_and_curvature_profile
This method computes reference velocity and curvature profile based on the reference trajectory. We use a lookahead time equal to sel
src/post_processing/forward_simulation/batch_lqr.py:286
↓ 1 callersMethod_construct_path
:param end_edge: The end edge to start back propagating back to the start edge. :param depth: The depth of the target edge. :
src/scenario_manager/utils/dijkstra.py:136
↓ 1 callersMethod_construct_path
Constructs a path when goal was found. :param end_edge: The end edge to start back propagating back to the start edge. :param
src/scenario_manager/utils/bfs_roadblock.py:125
↓ 1 callersMethod_edge_cost
Edge cost of given lane. :param lane: lane class :return: length of lane
src/scenario_manager/utils/dijkstra.py:104
next →1–100 of 459, ranked by callers