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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

Package symbol

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange

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

autoware_obstacle_proximity_checker 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_polar_grid 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_pose2twist 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_diagnostics 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_monitor 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_datetime_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-08
Dev Status UNKNOWN
Released UNRELEASED
Contributing Help Wanted (-)
Good First Issues (-)
Pull Requests to Review (-)

Package Description

Library for checking nearby obstacles around the ego vehicle

Maintainers

  • Alqudah Mohammad
  • Takumi Odashima

Authors

  • Satoshi Ota

Obstacle Proximity Checker

Purpose

This package provides a reusable library for detecting obstacles in close proximity to the ego vehicle. It computes the minimum distance between an expanded ego footprint and nearby point cloud points or dynamic object polygons, and reports whether any obstacle is within a caller-defined distance threshold.

The core logic was extracted from autoware_surround_obstacle_checker so it can be shared across planning modules. Current consumers include:

Inner-workings / Algorithms

Get distance to nearest obstacle

Calculate the distance between the ego vehicle and the nearest obstacle. The minimum distance is computed between ego vehicle footprint and:

  • all points in the input point cloud
  • the polygons of enabled dynamic objects

The ego footprint is created based on vehicle info and user defined margins per obstacle type. For each given obstacle type (e.g car, pedestrian, pointcloud, etc) the following margins are defined:

  • surround_check_front_distance
  • surround_check_side_distance
  • surround_check_back_distance

Obstacle detection

An obstacle is considered nearby when:

nearest_distance < contact_distance_threshold

contact_distance_threshold is provided by the caller on each check() call. This allows callers to implement distance hysteresis (for example, a tight threshold when entering stop and a wider threshold when clearing stop).

The library does not manage:

  • ego stopped checks
  • state machines (PASS / STOP)
  • time-based hysteresis
  • ROS subscriptions, publishers, or TF transforms

Those responsibilities remain in the calling node or plugin.

API

Input (Inputs)

Field Type Description
ego_pose geometry_msgs::msg::Pose Ego pose used for dynamic object checks
pointcloud_in_base_link pcl::PointCloud<pcl::PointXYZ>::ConstPtr Obstacle point cloud in base_link
objects autoware_perception_msgs::msg::PredictedObjects::ConstSharedPtr Dynamic objects

Callers must transform the point cloud to base_link before passing it to the library.

Output (CheckResult)

Field Type Description
is_obstacle_found bool true if the nearest obstacle is within contact_distance_threshold
nearest_obstacle std::optional<ProximityObstacle> Nearest obstacle and its distance, if any

ProximityObstacle contains:

Field Type Description
is_point_cloud bool true if the nearest obstacle came from a point cloud
nearest_distance double Minimum distance to the ego footprint [m]
nearest_point geometry_msgs::msg::Point Nearest point in map coordinates
uuid unique_identifier_msgs::msg::UUID Object UUID, or empty for point clouds

Parameters (Parameters)

Name Type Description
pointcloud_enable_check bool Enable point cloud proximity checks
object_type_enable_check unordered_map<string, bool> Enable checks per object label (car, truck, etc.)
obstacle_types_map unordered_map<string, ObstacleTypeParameters> Per-type footprint margins

ObstacleTypeParameters fields:

Name Type Description Typical value
surround_check_front_distance double Front margin added to the ego footprint [m] 0.5
surround_check_side_distance double Side margin added to the ego footprint [m] 0.0–1.0
surround_check_back_distance double Rear margin added to the ego footprint [m] 0.0–0.5

Supported object labels:

unknown, car, truck, bus, trailer, motorcycle, bicycle, pedestrian, animal, hazard, over_drivable, under_drivable, pointcloud

Assumptions / Known limits

  • Point clouds must already be transformed to base_link.
  • The library performs geometric proximity checks only. Stop/release decisions, velocity limits, and trajectory modification are handled by callers.
CHANGELOG

Changelog for package autoware_obstacle_proximity_checker

0.53.0 (2026-09-29)

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

  • feat(trajectory_modifier, minimum_rule_based_planner): improve obstacle stop feature (#13255)

    • fix(trajectory_modifier): fix obstacle stop unstable stop wall (#3196)
    • fix stop wall appears behind ego
    • always publish modifier debug markers
    • fix extend_trajectory() function
    • use path curvature at end instead of relying on trajecory point orientations
    • for low end speed trajectory, default to straight extension
    • fix insert_stop_point logic to prevent wrong orientation stop pose
    • introduce minimum stop margin below which duplicate_check_threshold is ignored

    * handle zero stop_point_arc_length in insert_stop_point function ---------

    * refactor(obstacle_stop): optimize collision check logic (#3024) refactor obstacle stop utility function get_nearest_object_collision, update default param values

    • feat(trajectory_modifier): remove max object velocity threshold for obstacle stop (#3234)
    • remove max_velocity_th param, fix collision check logic
    • tune rss params

    * apply pre-commit checks ---------

    • feat(trajectory_modifier, backup_planner): enable filtering objects by type and shape (#3255)
    • enable filtering objects by type and shape
    • update obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • update surround_obstacle_stop params in modifier and backup planner to specify enabled types per shape
    • modify ObjectFilter code in obstacle_stop_utils to support filtering by type and shape
    • modify ObstacleProximityChecker class to support filtering by type and shape
    • fix ObstacleTracker logic for ignoring orientation change

    * Update planning/autoware_trajectory_modifier/include/autoware/trajectory_modifier/trajectory_modifier_utils/obstacle_stop_utils.hpp Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * apply pre-commit checks ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

    * fix cherry-pick errors ---------Co-authored-by: Maxime CLEMENT <<78338830+maxime-clem@users.noreply.github.com>>

  • chore(common): update package maintainers (#13182)

  • feat: support new object classification labels (#12956)

    • fix(obstacle_proximity_checker): support new object classification labels
    • feat(collision_detector): support new object classification labels
    • feat(surround_obstacle_checker): support new object classification labels

    * fix: apply pre-commit ---------

  • feat(trajectory_modifier): support new object classes in trajectory_modifier (#12910)

    • support HAZARD & ANIMAL object classes in modifier obstacle stop

    * add missing object types for surround_obstacle_stop ---------

  • feat(trajectory_modifier): add surround obstacle stop plugin to trajectory modifier (#12894)

    • extract core logic from surround_obstacle_checker to new common package obstacle_proximit_checker
    • add new modifier plugin surround_obstacle_stop which uses common package obstacle_proximity_checker
    • apply pre-commit checks
    • refactor implementation, add integration test for surround_obstacle_stop

File truncated at 100 lines see the full file

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_obstacle_proximity_checker at Robotics Stack Exchange