No version for distro humble showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

No version for distro jazzy showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

No version for distro kilted showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

No version for distro lyrical showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

No version for distro rolling showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

No version for distro galactic showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

No version for distro iron showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

No version for distro melodic showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange

No version for distro noetic showing github. Known supported distros are highlighted in the buttons above.
Package symbol

autoware_map_based_prediction package from autoware_universe repo

autoware_boundary_departure_checker autoware_component_interface_specs_universe autoware_cuda_dependency_meta autoware_deprecated_boundary_departure_checker autoware_fake_test_node autoware_glog_component autoware_goal_distance_calculator autoware_grid_map_utils autoware_obstacle_proximity_checker autoware_path_distance_calculator autoware_time_utils autoware_traffic_light_compliance_checker autoware_traffic_light_recognition_marker_publisher autoware_traffic_light_utils autoware_universe_utils tier4_api_utils autoware_autonomous_emergency_braking autoware_collision_detector autoware_control_command_gate autoware_control_performance_analysis autoware_control_validator autoware_external_cmd_selector autoware_joy_controller autoware_lane_departure_checker autoware_mpc_lateral_controller autoware_obstacle_collision_checker autoware_operation_mode_transition_manager autoware_pid_longitudinal_controller autoware_predicted_path_checker autoware_pure_pursuit autoware_shift_decider autoware_smart_mpc_trajectory_follower autoware_spheric_collision_detector autoware_stop_mode_operator autoware_trajectory_follower_base autoware_trajectory_follower_node autoware_vehicle_cmd_gate autoware_tensorrt_vad autoware_control_evaluator autoware_evaluation_adapter autoware_kinematic_evaluator autoware_localization_evaluator autoware_perception_online_evaluator autoware_planning_evaluator autoware_scenario_simulator_v2_adapter autoware_diagnostic_graph_test_examples autoware_geo_pose_projector autoware_ar_tag_based_localizer autoware_landmark_manager autoware_lidar_marker_localizer autoware_localization_error_monitor autoware_pose_covariance_modifier autoware_pose_estimator_arbiter autoware_pose_initialization_requester autoware_pose_instability_detector yabloc_common yabloc_image_processing yabloc_monitor yabloc_particle_filter yabloc_pose_initializer autoware_map_tf_generator autoware_bevfusion autoware_bytetrack autoware_camera_streampetr autoware_cluster_merger autoware_compare_map_segmentation autoware_crosswalk_traffic_light_estimator autoware_detected_object_feature_remover autoware_detected_object_validation autoware_detection_by_tracker autoware_elevation_map_loader autoware_euclidean_cluster autoware_ground_segmentation autoware_ground_segmentation_cuda autoware_image_object_locator autoware_image_projection_based_fusion autoware_lidar_apollo_instance_segmentation autoware_lidar_centerpoint autoware_lidar_frnet autoware_lidar_transfusion autoware_map_based_prediction autoware_multi_object_tracker autoware_object_merger autoware_object_sorter autoware_occupancy_grid_map_outlier_filter autoware_predicted_path_postprocessor autoware_probabilistic_occupancy_grid_map autoware_ptv3 autoware_radar_fusion_to_detected_object autoware_radar_object_tracker autoware_radar_tracks_msgs_converter autoware_raindrop_cluster_filter autoware_shape_estimation autoware_simpl_prediction autoware_simple_object_merger autoware_tensorrt_bevdet autoware_tensorrt_bevformer autoware_tensorrt_classifier autoware_tensorrt_common autoware_tensorrt_plugins autoware_tensorrt_yolox autoware_tracking_object_merger autoware_traffic_light_arbiter autoware_traffic_light_category_merger autoware_traffic_light_classifier autoware_traffic_light_fine_detector autoware_traffic_light_map_based_detector autoware_traffic_light_multi_camera_fusion autoware_traffic_light_occlusion_predictor autoware_traffic_light_pipeline autoware_traffic_light_selector autoware_traffic_light_visualization perception_utils autoware_costmap_generator autoware_diffusion_planner autoware_external_velocity_limit_selector autoware_freespace_planner autoware_freespace_planning_algorithms autoware_hazard_lights_selector autoware_in_lane_mrm_planner autoware_manual_lane_change_handler autoware_minimum_rule_based_planner autoware_mission_planner_universe autoware_path_optimizer autoware_path_smoother autoware_remaining_distance_time_calculator autoware_rtc_interface autoware_scenario_selector autoware_surround_obstacle_checker autoware_trajectory_adapter autoware_trajectory_concatenator autoware_trajectory_gate autoware_trajectory_modifier autoware_trajectory_ranker autoware_trajectory_selector autoware_trajectory_validator autoware_behavior_path_avoidance_by_lane_change_module autoware_behavior_path_bidirectional_traffic_module autoware_behavior_path_direction_change_module autoware_behavior_path_dynamic_obstacle_avoidance_module autoware_behavior_path_external_request_lane_change_module autoware_behavior_path_goal_planner_module autoware_behavior_path_lane_change_module autoware_behavior_path_planner autoware_behavior_path_planner_common autoware_behavior_path_sampling_planner_module autoware_behavior_path_side_shift_module autoware_behavior_path_start_planner_module autoware_behavior_path_static_obstacle_avoidance_module autoware_behavior_velocity_blind_spot_module autoware_behavior_velocity_crosswalk_module autoware_behavior_velocity_detection_area_module autoware_behavior_velocity_intersection_module autoware_behavior_velocity_no_drivable_lane_module autoware_behavior_velocity_no_stopping_area_module autoware_behavior_velocity_occlusion_spot_module autoware_behavior_velocity_roundabout_module autoware_behavior_velocity_rtc_interface autoware_behavior_velocity_speed_bump_module autoware_behavior_velocity_template_module autoware_behavior_velocity_traffic_light_module autoware_behavior_velocity_virtual_traffic_light_module autoware_behavior_velocity_walkway_module autoware_motion_velocity_boundary_departure_prevention_module autoware_motion_velocity_dynamic_obstacle_stop_module autoware_motion_velocity_obstacle_cruise_module autoware_motion_velocity_obstacle_slow_down_module autoware_motion_velocity_obstacle_velocity_limiter_module autoware_motion_velocity_out_of_lane_module autoware_motion_velocity_road_user_stop_module autoware_motion_velocity_run_out_module autoware_planning_validator autoware_planning_validator_intersection_collision_checker autoware_planning_validator_latency_checker autoware_planning_validator_rear_collision_checker autoware_planning_validator_test_utils autoware_planning_validator_trajectory_checker autoware_bezier_sampler autoware_frenet_planner autoware_path_sampler autoware_sampler_common autoware_calibration_status_classifier autoware_cuda_pointcloud_preprocessor autoware_cuda_utils autoware_image_transport_decompressor autoware_imu_corrector autoware_pcl_extensions autoware_pointcloud_preprocessor autoware_radar_objects_adapter autoware_radar_scan_to_pointcloud2 autoware_radar_static_pointcloud_filter autoware_radar_threshold_filter autoware_radar_tracks_noise_filter autoware_carla_interface autoware_dummy_diag_publisher autoware_dummy_infrastructure autoware_dummy_traffic_light_publisher autoware_fault_injection autoware_redundancy_command_selector autoware_vehicle_door_simulator tier4_dummy_object_rviz_plugin autoware_command_mode_decider autoware_command_mode_decider_plugins autoware_command_mode_switcher autoware_command_mode_switcher_plugins autoware_command_mode_types autoware_component_state_monitor autoware_adapi_visualizers autoware_default_adapi_universe autoware_diagnostic_graph_aggregator autoware_diagnostic_graph_merger autoware_diagnostic_graph_utils autoware_driving_mode_manager autoware_duplicated_node_checker autoware_generic_service_divider autoware_hazard_status_converter autoware_mrm_comfortable_stop_operator autoware_mrm_emergency_stop_operator autoware_mrm_handler autoware_mrm_in_lane_stop_operator autoware_mrm_reset_manager autoware_mrm_steering_hold_stop_operator autoware_pipeline_latency_monitor autoware_processing_time_checker autoware_redundancy_adapi_switcher autoware_redundancy_switcher_interface autoware_redundancy_switcher_interface_plugins autoware_system_monitor autoware_topic_relay_controller autoware_topic_state_monitor autoware_velodyne_monitor autoware_accel_brake_map_calibrator autoware_external_cmd_converter autoware_raw_vehicle_cmd_converter autoware_steer_offset_estimator autoware_bag_time_manager_rviz_plugin autoware_traffic_light_rviz_plugin tier4_active_generator_rviz_plugin tier4_adapi_rviz_plugin tier4_camera_view_rviz_plugin tier4_control_mode_rviz_plugin tier4_manual_lane_change_rviz_plugin tier4_perception_rviz_plugin tier4_planning_factor_rviz_plugin tier4_state_rviz_plugin tier4_traffic_light_rviz_plugin tier4_vehicle_rviz_plugin

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

Description
Checkout URI https://github.com/autowarefoundation/autoware_universe.git
VCS Type git
VCS Version main
Last Updated 2026-10-27
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

This package implements a map_based_prediction

Maintainers

  • Tomoya Kimura
  • Yoshi Ri
  • Takayuki Murooka
  • Kyoichi Sugahara
  • Kotaro Uetake
  • Mamoru Sobue
  • Taekjin Lee

Authors

No additional authors.

map_based_prediction

Role

map_based_prediction is a module to predict the future paths (and their probabilities) of other vehicles and pedestrians according to the shape of the map and the surrounding environment.

Assumptions

  • The following information about the target obstacle is needed
    • Label (type of person, car, etc.)
    • The object position in the current time and predicted position in the future time.
  • The following information about the surrounding environment is needed
    • Road network information with Lanelet2 format

Inner-workings / Algorithms

Flow chart

<img src="media/map_based_prediction_flow.drawio.svg" width=20%>

Path prediction for road users

Remove old object history

Store time-series data of objects to determine the vehicle’s route and to detect lane change for several duration. Object Data contains the object’s position, speed, and time information.

Get current lanelet and update Object history

Search one or more lanelets satisfying the following conditions for each target object and store them in the ObjectData.

  • The CoG of the object must be inside the lanelet.
  • The centerline of the lanelet must have two or more points.
  • The angle difference between the lanelet and the direction of the object must be within the threshold given by the parameters.
    • The angle flip is allowed, the condition is diff_yaw < threshold or diff_yaw > pi - threshold.
  • The lanelet must be reachable from the lanelet recorded in the past history.

Get predicted reference path

  • Get reference path:
    • Create a reference path for the object from the associated lanelet.
  • Predict object maneuver:
    • Generate predicted paths for the object.
    • Assign probability to each maneuver of Lane Follow, Left Lane Change, and Right Lane Change based on the object history and the reference path obtained in the first step.
    • Lane change decision is based on two domains:
      • Geometric domain: the lateral distance between the center of gravity of the object and left/right boundaries of the lane.
      • Time domain: estimated time margin for the object to reach the left/right bound.

The conditions for left lane change detection are:

  • Check if the distance to the left lane boundary is less than the distance to the right lane boundary.
  • Check if the distance to the left lane boundary is less than a dist_threshold_to_bound_.
  • Check if the lateral velocity direction is towards the left lane boundary.
  • Check if the time to reach the left lane boundary is less than time_threshold_to_bound_.

Lane change logics is illustrated in the figure below.An example of how to tune the parameters is described later.

lane change detection

  • Calculate object probability:
    • The path probability obtained above is calculated based on the current position and angle of the object.
  • Refine predicted paths for smooth movement:
    • The generated predicted paths are recomputed to take the vehicle dynamics into account.
    • The path is calculated with minimum jerk trajectory implemented by 4th/5th order spline for lateral/longitudinal motion.

Undetected lane-change path suppression

  • CCF (Collision Check Filter, a downstream planning module) follows a policy of not evaluating other vehicles’ lane-change (LC) paths; prediction omits undetected LC branches while retaining detected LC and lane-end LC needed to leave a terminating lane.
  • Applies to car, truck, bus, trailer and motorcycle: LC candidates are suppressed per current lanelet, only when that lanelet has its own lane-follow candidate and its detected maneuver is lane-follow. A current lanelet without a lane-follow candidate keeps all of its candidates.
  • History retains all future possible lanelets before suppression; surviving path confidences use the existing normalization.
  • lane_change_path_suppression.enable (bool, default true): false restores the original behavior.
  • lane_change_path_suppression.keep_when_lane_ends (bool, default true): retain LC if any following-only branch from the current lanelet ends without routing-graph followers within max(speed, 1.0 m/s) × lane_end_rescue_time_horizon, measured as the sum of centerline lengths minus the projected arc length on the current lanelet, independently of center-candidate acceptance; false disables this exception.
  • lane_change_path_suppression.lane_end_rescue_time_horizon (double, default 5.0, minimum 0.0, seconds): independent rescue horizon; vehicle prediction horizon does not affect this limit. Urban maps can have following-only lanelet chains terminate after 100–200 m at intersections or disconnected map links. The 5.0 s default restricts rescue to nearby merges a few seconds ahead instead of those distant apparent ends.
  • Routable lateral adjacency is not required: merge boundary/connectivity representations may lack a lane-change relation; requiring it would lose the rescue in those cases.
  • DEBUG logs report each LC candidate decision (suppressed, kept_detected_lc, kept_lane_end, kept_no_center), object ID, current lanelet, and terminal distance in meters (-1 means no terminal found within the rescue bound, or rescue disabled). These are suppression-stage decisions; a later center-path rejection can still restore held LC paths.
  • Suppressed LC candidates are held until pose conversion, starting-position search, prediction generation and lateral-acceleration checks finish. Held LC candidates are restored only for the current lanelets whose lane-follow prediction (from a reference path with two or more points) was not accepted; a one-point lane-follow reference still yields the straight path of the path generator as before. When every lanelet’s center survives, no second processing pass occurs.

Tuning lane change detection logic

Currently we provide three parameters to tune lane change detection:

  • dist_threshold_to_bound_: maximum distance from lane boundary allowed for lane changing vehicle
  • time_threshold_to_bound_: maximum time allowed for lane change vehicle to reach the boundary
  • cutoff_freq_of_velocity_lpf_: cutoff frequency of low pass filter for lateral velocity

You can change these parameters in rosparam in the table below.

param name default value
dist_threshold_for_lane_change_detection 1.0 [m]
time_threshold_for_lane_change_detection 5.0 [s]
cutoff_freq_of_velocity_for_lane_change_detection 0.1 [Hz]

Tuning threshold parameters

Increasing these two parameters will slow down and stabilize the lane change estimation.

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_map_based_prediction

0.53.0 (2026-09-29)

  • Merge remote-tracking branch 'origin/main' into prepare-0.53.0-changelog

  • perf(map_based_prediction): vru path-cut follow-up optimizations (#13238)

    * fix(map_based_prediction): cut at the earliest fence crossing The candidate loop stopped at the first crossed fence in R-tree order, so a different fence crossing earlier along the path was never examined and the cut landed too late. Collect every crossed fence; the segment loop already returns the earliest crossing. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): convert path-cut map geometry once at load Vegetation polygons are converted to boost polygons and validated when the map arrives; the per-cycle loops look the conversions up by id. A vegetation-free map leaves the layer null so queries short-circuit. Road boundaries are converted to 2D once per crossed boundary and crosswalk rings are cached at load. Bounds shared by two road-subtype lanelets are interior lane dividers and are dropped from the boundary layer: a path from outside the road always reaches an outer edge first. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): cheapen vegetation crossing tests Cylinder footprints sweep the centerline buffered by their radius, so segment-vs-polygon distance tests replace the per-segment convex hulls and are exact; box and polygon shapes keep the hulls but reuse each segment's end footprint as the next start. Candidates are gated by one centerline-to-polygon distance test in place of the N-footprint bounding box, and the R-tree query box is grown by the footprint radius so polygons reachable by the swept footprint are not missed. The road-boundary segment test resolves intersection points in a single sweep, keeping intersects() only as the collinear-overlap fallback. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * perf(map_based_prediction): build each predicted-path linestring once The caller converts a path to a 2D linestring once and hands it to the fence and vegetation modules; the fence-cut prefix is reused for the vegetation cut. Fences crossed by a path are converted to 2D once instead of per segment, and the road-boundary module shares the utils conversion helper. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>>

    * test(map_based_prediction): add VRU path-cut module tests Synthetic in-memory lanelet maps pin the behavior the modules must preserve: earliest-crossing cut index, the initial-overlap exemption, detection of polygons reachable only by the swept footprint, invalid map polygons skipped at load, interior lane dividers excluded from the boundary layer, the crosswalk signal exemption, and the can-stop gate. Co-Authored-By: Claude Fable 5 <<noreply@anthropic.com>> ---------Co-authored-by: Claude Fable 5 <<noreply@anthropic.com>>

  • feat(map_based_prediction): add vegetation path cutting (#13190)

    * feat(map_based_predictor): add vegitation path cut , (#3113) add path cut function by vegetation (cherry picked from commit 7be16b3d11cf67fd67fff0fecb482ed8157f3cd2)

    • chore(map_based_prediction): remove path cut debug

    * feat(map_based_prediction): judge vegetation path cut on path segments (#3221) Cherry-picked vegetation.cpp changes from tier4/autoware_universe#3221, excluding test_vegetation.cpp. (cherry picked from commit 2e365e13641e084f5d0f55194deb0a2577c751fe)

    • refactor(map_based_prediction): remove vegetation info precheck
    • perf(map_based_prediction): skip precise path cut checks by bbox
    • perf(map_based_prediction): skip vegetation cross checks by bbox
    • style(map_based_prediction): use at for indexed path access

    * fix(map_based_prediction): hold the vegetation layer as a const map vegetation_layer_ was a non-const LaneletMapUPtr, so polygonLayer.search() selected the non-const overload and returned std::vector<lanelet::Polygon3d>, which does not bind to the const lanelet::ConstPolygons3d & the crossing helpers take. The layer is only ever searched after being built, so hold it as a LaneletMapConstUPtr; search() then returns ConstPolygons3d directly and the call sites need no conversion. Co-Authored-By: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

    * fix(map_based_prediction): keep the path footprint polygon alive while iterating buildPathFootprintBBox() iterated over to_polygon2d(...).outer() directly. to_polygon2d() returns by value and outer() returns a reference into it, but in a range-for only the result of the range expression is lifetime-extended, so the Polygon2d temporary was destroyed before the loop body ran. GCC 13 reports the dangling access as -Werror=maybe-uninitialized, which broke the Jazzy CI build. Bind the footprint to a named local so it

File truncated at 100 lines see the full file

Launch files

  • launch/map_based_prediction.launch.xml
      • param_path [default: $(find-pkg-share autoware_map_based_prediction)/config/map_based_prediction.param.yaml]
      • vector_map_topic [default: /map/vector_map]
      • traffic_signals_topic [default: /perception/traffic_light_recognition/traffic_signals]
      • output_topic [default: objects]
      • input_topic [default: /perception/object_recognition/tracking/objects]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_map_based_prediction at Robotics Stack Exchange