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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

Package symbol

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange

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

autoware_compare_map_segmentation package from autoware_universe repo

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

ROS Distro
github

Package Summary

Version 0.53.0
License Apache License 2.0
Build type AMENT_CMAKE
Use RECOMMENDED

Repository Summary

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

Package Description

The ROS 2 autoware_compare_map_segmentation package

Maintainers

  • amc-nu
  • Yukihiro Saito
  • Dai Nguyen
  • Yoshi Ri
  • Akihisa Nagata
  • Taekjin Lee
  • Kaan Colak

Authors

  • Open Perception
  • Julius Kammerl
  • William Woodall

autoware_compare_map_segmentation

Purpose

The autoware_compare_map_segmentation is a package that filters the ground points from the input pointcloud by using map info (e.g. pcd, elevation map or split map pointcloud from map_loader interface).

Inner-workings / Algorithms

Compare Elevation Map Filter

Compare the z of the input points with the value of elevation_map. The height difference is calculated by the binary integration of neighboring cells. Remove points whose height difference is below the height_diff_thresh.

Distance Based Compare Map Filter

This filter compares the input pointcloud with the map pointcloud using the nearestKSearch function of kdtree and removes points that are close to the map point cloud. The map pointcloud can be loaded statically at once at the beginning or dynamically as the vehicle moves.

Voxel Based Approximate Compare Map Filter

The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them.

Voxel Based Compare Map Filter

The filter loads the map pointcloud (static loading whole map at once at beginning or dynamic loading during vehicle moving) and utilizes VoxelGrid to downsample map pointcloud.

For each point of input pointcloud, the filter use getCentroidIndexAt combine with getGridCoordinates function from VoxelGrid class to check if the downsampled map point existing surrounding input points. Remove the input point which has downsampled map point in voxels containing or being close to the point.

Voxel Distance based Compare Map Filter

This filter is a combination of the distance_based_compare_map_filter and voxel_based_approximate_compare_map_filter. The filter loads the map point cloud, which can be loaded statically at the beginning or dynamically during vehicle movement, and creates a voxel grid and a k-d tree of the map point cloud. The filter uses the getCentroidIndexAt function in combination with the getGridCoordinates function from the VoxelGrid class to find input points that are inside the voxel grid and removes them. For points that do not belong to any voxel grid, they are compared again with the map point cloud using the radiusSearch function of the k-d tree and are removed if they are close enough to the map.

Lanelet Elevation Filter

The Lanelet Elevation Filter filters point clouds based on lanelet elevation information. It creates a grid-based elevation map from lanelet data and filters out points that deviate significantly from the expected road surface height. This filter is useful for removing floating objects, overpass structures, and other non-road elements that should not be considered for ground-level navigation.

The filter processes lanelet maps to extract elevation information at regular grid intervals and uses this information to validate incoming point cloud data. Points that are too far above or below the expected lanelet surface elevation are filtered out.

If incoming point cloud frame differs from target_frame, points will be transformed to target_frame before elevation check.

Inputs / Outputs

Compare Elevation Map Filter

Input

Name Type Description
~/input/points sensor_msgs::msg::PointCloud2 reference points
~/input/elevation_map grid_map::msg::GridMap elevation map

Output

Name Type Description
~/output/points sensor_msgs::msg::PointCloud2 filtered points

Parameters

Name Type Description Default value
map_layer_name string elevation map layer name elevation
map_frame float frame_id of the map that is temporarily used before elevation_map is subscribed map
height_diff_thresh float Remove points whose height difference is below this value [m] 0.15

Lanelet Elevation Filter

Input

Name Type Description
~/input/pointcloud sensor_msgs::msg::PointCloud2 input point cloud
~/input/lanelet_map autoware_map_msgs::msg::LaneletMapBin lanelet map

Output

Name Type Description
~/output/pointcloud sensor_msgs::msg::PointCloud2 filtered point cloud
~/debug/elevation_markers visualization_msgs::msg::MarkerArray elevation grid visualization

Parameters

Name Type Description Default value
grid_resolution double Grid cell size in meters for elevation processing 1.0
height_threshold double Maximum height difference from lanelet elevation (meters) 2.0
sampling_distance double Distance between sampled points along lanelet boundaries (meters) 0.5
extension_count int Number of cells to extend around original lanelet points 5
target_frame string Target coordinate frame for processing map
cache_directory string Directory for cached grid files $(find-pkg-share autoware_compare_map_segmentation)/data/lanelet_grid_cache
require_map_coverage bool If true, only keep points with direct map coverage; reject points requiring interpolation true
enable_debug bool Enable debug mode (includes elevation markers and processing time publisher) false

Other Filters

Input

File truncated at 100 lines see the full file

CHANGELOG

Changelog for package autoware_compare_map_segmentation

0.53.0 (2026-09-29)

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

  • refactor(perception): move node design files into each package (#13104) Co-authored-by: Claude Opus 5 (1M context) <<noreply@anthropic.com>>

  • chore(pre-commit): update clang-format to v22.1.5 (#13126)

    • chore(pre-commit): update clang-format to v22.1.5

    * style(pre-commit): autofix ---------

  • fix(pre-commit): update pre-commit-hooks-ros to v0.10.3 and adapt include guards (#13083)

    • chore: sync files

    * fix(pre-commit): adapt include guards to pre-commit-hooks-ros v0.10.3 ros-include-guard v0.10.3 only recognises an include guard when #endif is the last non-empty line of the file, so that feature test macros are no longer mistaken for guards. 29 headers failed that check. 25 headers wrap the guard in "// clang-format off" / "// clang-format on" because the #endif comment plus its // NOLINT exceeds the 100 column limit. Drop only the trailing "on" marker; the "off" marker then runs to end of file and still protects the line from being wrapped. 3 CUDA headers ended with "/* INDENT-ON /". Move it above the #endif so it stays paired with the "/ INDENT-OFF */" near the top of the file. autoware_behavior_path_planner/test/input.hpp closed its guard immediately after opening it, leaving the entire body unguarded. Move the #endif to the end. Also hold clang-format at v21.1.8. clang-format 22 migrates "AlignAfterOpenBracket: AlwaysBreak" to "BreakAfterOpenBracketIf: true", which forces a break after every "if (" whose condition does not fit on one line and reformats 88 files. ---------Co-authored-by: github-actions <<github-actions@github.com>> Co-authored-by: Mete Fatih Cırıt <<mfc@autoware.org>>

  • Contributors: Mete Fatih Cırıt, Ryohsuke Mitsudome, Taekjin LEE, awf-autoware-bot[bot]

0.52.0 (2026-06-30)

0.51.0 (2026-05-01)

  • Merge remote-tracking branch 'origin/main' into tmp/bot/bump_version_base

  • chore(perception): move perception node configuration file to each package (#12440) move perception node configuration file to each package

  • refactor(autoware_universe): use autoware_ament_auto_package in perception utility packages (#12281) Co-authored-by: github-actions <<github-actions@github.com>>

  • revert: feat(compare_map_filter) apply agnocast publisher to [voxel_compare_map_filter]{.title-ref} (#12346) Revert "feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)" This reverts commit d702d678392837529fad335c4fce38cfff95f64b.

  • feat(compare_map_filter): apply agnocast publisher to [voxel_based_compare_map_filter]{.title-ref} (#12304)

    • apply agnocast publisher to voxel_based_compare_map_filter
    • style(pre-commit): autofix
    • delete agnocastlib dependency
    • add agnocast dependency to voxel_based_compare_map_filter.launch.xml
    • add TODO coment
    • style(pre-commit): autofix
    • clang-format

    * dummy change for ci ---------Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>

  • fix(compare_map_segmentation): ignore Werror=array-bounds (#12316)

  • perf(perception): use emplace_back and emplace to avoid temporary object creation (#12201)

    • perf(perception): use emplace_back to avoid temporary object creation

File truncated at 100 lines see the full file

Launch files

  • launch/compare_elevation_map_filter.launch.xml
      • compare_elevation_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/compare_elevation_map_filter.param.yaml]
      • input [default: /input]
      • input_elevation_map [default: /input/elevation_map]
      • output [default: /output]
  • launch/distance_based_compare_map_filter.launch.xml
      • distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/lanelet_elevation_filter.launch.xml
      • input_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud]
      • input_lanelet_map [default: /map/vector_map]
      • output_pointcloud [default: /perception/object_recognition/detection/pointcloud_map_filtered/pointcloud_lanelet_filtered]
      • config_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/lanelet_elevation_filter.param.yaml]
  • launch/voxel_based_approximate_compare_map_filter.launch.xml
      • voxel_based_approximate_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_approximate_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]
  • launch/voxel_based_compare_map_filter.launch.xml
      • voxel_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • pose_with_covariance [default: /localization/pose_estimator/pose_with_covariance]
      • output [default: /output]
      • map_loader_service [default: /map/get_differential_pointcloud_map]
  • launch/voxel_distance_based_compare_map_filter.launch.xml
      • voxel_distance_based_compare_map_filter_param_file [default: $(find-pkg-share autoware_compare_map_segmentation)/config/voxel_distance_based_compare_map_filter.param.yaml]
      • input [default: /input]
      • input_map [default: /map]
      • output [default: /output]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged autoware_compare_map_segmentation at Robotics Stack Exchange