MCPcopy Create free account

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

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

↓ 1 callersMethod_evaluate_drivable_area_compliance
(self)
src/post_processing/trajectory_evaluator.py:403
↓ 1 callersMethod_evaluate_driving_direction_compliance
(self)
src/post_processing/trajectory_evaluator.py:381
↓ 1 callersMethod_evaluate_is_comfortable
(self)
src/post_processing/trajectory_evaluator.py:431
↓ 1 callersMethod_evaluate_no_at_fault_collisions
(self)
src/post_processing/trajectory_evaluator.py:231
↓ 1 callersMethod_evaluate_progress
(self)
src/post_processing/trajectory_evaluator.py:414
↓ 1 callersMethod_evaluate_speed_limit_compliance
(self)
src/post_processing/trajectory_evaluator.py:437
↓ 1 callersMethod_evaluate_time_to_collision
(self)
src/post_processing/trajectory_evaluator.py:295
↓ 1 callersFunction_fit_initial_curvature_and_curvature_rate_profile
Estimates initial curvature (curvature_0) and curvature rate ({curvature_rate_0, ...}) using least squares with curvature rate regularization
src/post_processing/forward_simulation/batch_lqr_utils.py:148
↓ 1 callersFunction_fit_initial_velocity_and_acceleration_profile
Estimates initial velocity (v_0) and acceleration ({a_0, ...}) using least squares with jerk penalty regularization. :param xy_displacements:
src/post_processing/forward_simulation/batch_lqr_utils.py:78
↓ 1 callersMethod_generate_agent_from_idx
( self, agent, idx, scale_coeff, path_point, shape_scale=[0.9, 1.1] )
src/data_augmentation/contrastive_scenario_generator.py:254
↓ 1 callersMethod_generate_agent_from_idx
( self, agent, idx, scale_coeff, path_point, shape_scale=[0.9, 1.1] )
src/data_augmentation/scope_scenario_generator.py:256
↓ 1 callersMethod_generate_ebrake_trajectory
( self, origin_trajectory: np.ndarray, ego_state: EgoState, soft_brake=False )
src/post_processing/emergency_brake.py:70
↓ 1 callersMethod_get_agent_features
( self, query_xy: Point2D, present_idx: int, tracked_objects_list: List[Tracke
src/feature_builders/pluto_feature_builder.py:423
↓ 1 callersMethod_get_agent_features
( self, query_xy: Point2D, present_idx: int, tracked_objects_list: List[Tracke
src/feature_builders/scope_feature_builder.py:423
↓ 1 callersMethod_get_agent_info
predictions: (n_agent, 80, 2 or 3)
src/planners/pluto_planner.py:324
↓ 1 callersMethod_get_agent_info
predictions: (n_agent, 80, 2 or 3)
src/planners/scope_planner.py:325
↓ 1 callersMethod_get_candidate_starting_lane
(self, ego_state: EgoState)
src/scenario_manager/route_manager.py:313
↓ 1 callersMethod_get_crosswalk_edges
( self, crosswalk: PolygonMapObject, sample_points: int = 21 )
src/feature_builders/pluto_feature_builder.py:722
↓ 1 callersMethod_get_crosswalk_edges
( self, crosswalk: PolygonMapObject, sample_points: int = 21 )
src/feature_builders/scope_feature_builder.py:722
↓ 1 callersMethod_get_dynamic_agents_from_prediction
( self, agents_info: Dict[str, np.ndarray], )
src/post_processing/observation/world_from_prediction.py:119
↓ 1 callersMethod_get_ego_baseline_path
(self, reference_lines, ego_state: EgoState)
src/planners/pluto_planner.py:389
↓ 1 callersMethod_get_ego_baseline_path
(self, reference_lines, ego_state: EgoState)
src/planners/scope_planner.py:390
↓ 1 callersMethod_get_ego_current_state
(self, ego_state: EgoState, prev_state: EgoState)
src/feature_builders/pluto_feature_builder.py:361
↓ 1 callersMethod_get_ego_current_state
(self, ego_state: EgoState, prev_state: EgoState)
src/feature_builders/scope_feature_builder.py:361
↓ 1 callersMethod_get_ego_features
note that rear axle velocity and acceleration are in ego local frame, and need to be transformed to the global frame.
src/feature_builders/pluto_feature_builder.py:383
↓ 1 callersMethod_get_ego_features
note that rear axle velocity and acceleration are in ego local frame, and need to be transformed to the global frame.
src/feature_builders/scope_feature_builder.py:383
↓ 1 callersMethod_get_interaction_label
(self, ego, agents)
src/feature_builders/pluto_feature_builder.py:737
↓ 1 callersMethod_get_interaction_label
(self, ego, agents)
src/feature_builders/scope_feature_builder.py:737
↓ 1 callersMethod_get_intersecting_lanes
Returns on-route lanes and heading errors where ego-vehicle intersects. :param ego_state: state of ego-vehicle :return: tuple
src/scenario_manager/route_manager.py:269
↓ 1 callersMethod_get_lane_angle_error
(self, lane: LaneGraphEdgeMapObject, ego_state: EgoState)
src/scenario_manager/route_manager.py:339
↓ 1 callersMethod_get_map_features
( self, map_api: AbstractMap, query_xy: Point2D, route_roadblock_ids: List[str
src/feature_builders/pluto_feature_builder.py:536
↓ 1 callersMethod_get_map_features
( self, map_api: AbstractMap, query_xy: Point2D, route_roadblock_ids: List[str
src/feature_builders/scope_feature_builder.py:536
↓ 1 callersMethod_get_reference_line_feature
( self, scenario_manager: ScenarioManager, ego_features )
src/feature_builders/pluto_feature_builder.py:671
↓ 1 callersMethod_get_reference_line_feature
( self, scenario_manager: ScenarioManager, ego_features )
src/feature_builders/scope_feature_builder.py:671
↓ 1 callersMethod_get_route_red_traffic_lights
( self, traffic_light_data: List[TrafficLightStatusData], route_lane_dict: Dict[str, L
src/post_processing/observation/world_from_prediction.py:144
↓ 1 callersMethod_get_starting_lane
Returns the most suitable starting lane, in ego's vicinity. :param ego_state: state of ego-vehicle :return: lane object (on-r
src/scenario_manager/route_manager.py:239
↓ 1 callersMethod_get_static_objects_features
( self, ego_state: EgoState, scenario_manager: ScenarioManager, tracked_object
src/feature_builders/pluto_feature_builder.py:494
↓ 1 callersMethod_get_static_objects_features
( self, ego_state: EgoState, scenario_manager: ScenarioManager, tracked_object
src/feature_builders/scope_feature_builder.py:494
↓ 1 callersMethod_get_static_obstacles
(self, ego_state: EgoState, detections: DetectionsTracks)
src/post_processing/observation/world_from_prediction.py:99
↓ 1 callersFunction_get_xy_heading_displacements_from_poses
Returns position and heading displacements given a pose trajectory. :param poses: <np.ndarray: num_poses, 3> A trajectory of poses (x, y, hea
src/post_processing/forward_simulation/batch_lqr_utils.py:40
↓ 1 callersMethod_lateral_lqr_controller
This lateral controller determines a steering_rate input to minimize lateral errors at a lookahead time. It requires a velocity seque
src/post_processing/forward_simulation/batch_lqr.py:385
↓ 1 callersMethod_local_to_global
(self, local_trajectory: np.ndarray, ego_state: EgoState)
src/planners/pluto_planner.py:401
↓ 1 callersMethod_local_to_global
(self, local_trajectory: np.ndarray, ego_state: EgoState)
src/planners/scope_planner.py:402
↓ 1 callersMethod_log_step
Logs the artifacts from a training/validation/test step. :param loss: scalar loss value :type objectives: [type] :pa
src/models/pluto/scope_trainer.py:370
↓ 1 callersMethod_log_step
Logs the artifacts from a training/validation/test step. :param loss: scalar loss value :type objectives: [type] :pa
src/models/pluto/pluto_trainer.py:311
↓ 1 callersMethod_longitudinal_lqr_controller
This longitudinal controller determines an acceleration input to minimize velocity error at a lookahead time. :param initial_velocity
src/post_processing/forward_simulation/batch_lqr.py:351
↓ 1 callersFunction_make_banded_difference_matrix
Returns a banded difference matrix with specified number_rows. When applied to a vector [x_1, ..., x_N], it returns [x_2 - x_1, ..., x_N - x_
src/post_processing/forward_simulation/batch_lqr_utils.py:64
↓ 1 callersMethod_next_point
(cur_val, grad, n)
src/utils/min_norm_solvers.py:76
↓ 1 callersFunction_phase_unwrap
Returns an array of heading angles equal mod 2 pi to the input heading angles, and such that the difference between successive output angles
src/post_processing/evaluation/comfort_metrics.py:143
↓ 1 callersMethod_plot_candidate_trajectories
(self, ax, candidate_trajectories: np.ndarray)
src/feature_builders/nuplan_scenario_render.py:415
↓ 1 callersMethod_plot_history
(self, ax)
src/feature_builders/nuplan_scenario_render.py:476
↓ 1 callersMethod_plot_map
( self, ax, map_api: AbstractMap, query_point: Point2D, traffic_light_
src/feature_builders/nuplan_scenario_render.py:280
↓ 1 callersMethod_plot_mission_goal
(self, ax, mission_goal: StateSE2)
src/feature_builders/nuplan_scenario_render.py:472
↓ 1 callersMethod_plot_planning
(self, ax, planning_trajectory: np.ndarray)
src/feature_builders/nuplan_scenario_render.py:404
↓ 1 callersMethod_plot_polyline
(self, ax, polyline, cmap="spring", **kwargs)
src/feature_builders/nuplan_scenario_render.py:441
↓ 1 callersMethod_plot_prediction
(self, ax, predictions: np.ndarray)
src/feature_builders/nuplan_scenario_render.py:435
↓ 1 callersMethod_plot_reference_lines
(self, ax, ref_lines)
src/feature_builders/nuplan_scenario_render.py:455
↓ 1 callersMethod_plot_rollout_trajectories
(self, ax, candidate_trajectories: np.ndarray)
src/feature_builders/nuplan_scenario_render.py:427
↓ 1 callersMethod_plot_tracked_object
(self, ax, track: TrackedObject, agent_attn_weights=None)
src/feature_builders/nuplan_scenario_render.py:371
↓ 1 callersMethod_projection2simplex
Given y, it solves argmin_z |y-z|_2 st \sum z = 1 , 1 >= z_i >= 0 for all i
src/utils/min_norm_solvers.py:60
↓ 1 callersMethod_reset
( self, candidate_trajectories: np.ndarray, init_ego_state: EgoState, detectio
src/post_processing/trajectory_evaluator.py:123
↓ 1 callersMethod_run_planning_once
(self, current_input: PlannerInput)
src/planners/pluto_planner.py:175
↓ 1 callersMethod_run_planning_once
(self, current_input: PlannerInput)
src/planners/scope_planner.py:177
↓ 1 callersMethod_solve_one_step_lateral_lqr
This function uses LQR to find an optimal input to minimize tracking error in one step of dynamics. The dynamics are next_state = A @
src/post_processing/forward_simulation/batch_lqr.py:498
↓ 1 callersMethod_solve_one_step_longitudinal_lqr
This function uses LQR to find an optimal input to minimize tracking error in one step of dynamics. The dynamics are next_state = A @
src/post_processing/forward_simulation/batch_lqr.py:474
↓ 1 callersMethod_stopping_controller
Apply proportional controller when at near-stop conditions. :param initial_velocity: [m/s] The current velocity of ego. :para
src/post_processing/forward_simulation/batch_lqr.py:335
↓ 1 callersMethod_trim_candidates
candidate_trajectories: (n_ref, n_mode, 80, 3) probability: (n_ref, n_mode)
src/planners/pluto_planner.py:278
↓ 1 callersMethod_trim_candidates
candidate_trajectories: (n_ref, n_mode, 80, 3) probability: (n_ref, n_mode)
src/planners/scope_planner.py:279
↓ 1 callersMethod_trim_discrete_path
( self, ego_state: EgoState, discrete_path: List[StateSE2], length=100 )
src/scenario_manager/route_manager.py:215
↓ 1 callersMethod_update_commands
This function applies some first order control delay/a low pass filter to acceleration/steering. :param state: Ego state :pa
src/post_processing/forward_simulation/batch_kinematic_bicycle.py:87
↓ 1 callersMethod_update_ego_footprints
(self)
src/post_processing/trajectory_evaluator.py:181
↓ 1 callersMethod_update_ego_rollout
( self, init_ego_state: EgoState, candidate_trajectories: np.ndarray )
src/post_processing/trajectory_evaluator.py:161
↓ 1 callersMethodbuild_bbox_from_center
params: center: [bs, N, (x, y)] heading: [bs, N] width: [bs, N] length: [bs, N] retur
src/utils/collision_checker.py:30
↓ 1 callersFunctionbuild_custom_trainer
Builds the lightning trainer from the config. :param cfg: omegaconf dictionary :return: built object.
src/custom_training/custom_training_builder.py:179
↓ 1 callersFunctionbuild_lightning_datamodule
Build the lightning datamodule from the config. :param cfg: Omegaconf dictionary. :param model: NN model used for training. :param wo
src/custom_training/custom_training_builder.py:91
↓ 1 callersFunctionbuild_lightning_module
Builds the lightning module from the config. :param cfg: omegaconf dictionary :param torch_module_wrapper: NN model used for training
src/custom_training/custom_training_builder.py:141
↓ 1 callersFunctionbuild_mlp
(c_in, channels, norm=None, activation="relu")
src/models/pluto/layers/common_layers.py:4
↓ 1 callersMethodcalculate_additional_ego_states
( self, current_state: EgoState, prev_state: EgoState, dt=0.1 )
src/feature_builders/pluto_feature_builder.py:807
↓ 1 callersMethodcalculate_additional_ego_states
( self, current_state: EgoState, prev_state: EgoState, dt=0.1 )
src/feature_builders/scope_feature_builder.py:807
↓ 1 callersFunctionclean_up_s3_artifacts
Cleanup lingering s3 artifacts that are written locally. This happens because some minor write-to-s3 functionality isn't yet implemented.
run_simulation.py:104
↓ 1 callersMethoddeserialize
(cls, data: Dict[str, Any])
src/features/pluto_feature.py:154
↓ 1 callersFunctiondistributed_weighted_sampler_init
Initiliazes WeightedSampler object with sampling weights for each scenario_type and returns it. :param scenario_dataset: ScenarioDataset obje
src/custom_training/custom_datamodule.py:64
↓ 1 callersMethoddwt_loss
(self, details, target, probabilities, device, wavelet='haar', mode='constant', approximation_norm=False)
src/metrics/mul_ade.py:119
↓ 1 callersFunctionego_is_comfortable
Accumulates all within-bound comfortability metrics :param states: array representation of ego state values :param time_point_s: time ste
src/post_processing/evaluation/comfort_metrics.py:341
↓ 1 callersFunctionego_rear_to_center
(rear_xy, heading, rear_to_center=1.461)
src/post_processing/common/geometry.py:64
↓ 1 callersFunctionego_state_to_state_array
Converts an ego state into an array representation (drops time-stamps and vehicle parameters) :param ego_state: ego state class :return:
src/post_processing/common/enum.py:157
↓ 1 callersFunctioneigsorted
(cov)
src/utils/vis.py:345
↓ 1 callersMethodfind_all_candidate_routes
( self, ego_state: EgoState, lane: LaneGraphEdgeMapObject, maximum_length=100,
src/scenario_manager/route_manager.py:145
↓ 1 callersMethodfind_min_norm_element
Given a list of vectors (vecs), this method finds the minimum norm element in the convex hull as min |u|_2 st. u = \sum c_i vecs[i] a
src/utils/min_norm_solvers.py:92
↓ 1 callersMethodforward
Propagates a batch of features through the model. :param features: features batch :return: model's predictions
src/models/pluto/scope_trainer.py:451
↓ 1 callersMethodforward
Propagates a batch of features through the model. :param features: features batch :return: model's predictions
src/models/pluto/pluto_trainer.py:392
↓ 1 callersMethodforward_post
( self, tgt, memory, tgt_mask: Optional[Tensor] = None, memory_mask: O
src/models/pluto/layers/transformer.py:200
↓ 1 callersMethodforward_pre
( self, tgt, memory, tgt_mask: Optional[Tensor] = None, memory_mask: O
src/models/pluto/layers/transformer.py:231
↓ 1 callersMethodgenerate_negative_sample
(self, data)
src/data_augmentation/contrastive_scenario_generator.py:139
↓ 1 callersMethodgenerate_negative_sample
(self, data)
src/data_augmentation/scope_scenario_generator.py:141
↓ 1 callersMethodgenerate_positive_sample
(self, data)
src/data_augmentation/contrastive_scenario_generator.py:78
↓ 1 callersMethodgenerate_positive_sample
(self, data)
src/data_augmentation/scope_scenario_generator.py:79
↓ 1 callersFunctionget_activation
(activation: str)
src/models/pluto/layers/common_layers.py:41
↓ 1 callersFunctionget_current_roadblock_candidates
Determines a set of roadblock candidate where ego is located :param ego_state: class containing ego state :param map_api: map object
src/scenario_manager/utils/route_utils.py:20
↓ 1 callersMethodget_ego_path
(self, ego_state: EgoState, search_depth=15)
src/scenario_manager/route_manager.py:88
← previousnext →101–200 of 459, ranked by callers