Skip to content

Commit

Permalink
chore(ndt scan matcher): rename config path (#6333)
Browse files Browse the repository at this point in the history
* refactor(tier4_localization_launch): use util.launch.xml instead of util.launch.py

Signed-off-by: Yamato Ando <[email protected]>

* style(pre-commit): autofix

* chore(ndt_scan_matcher): rename config path

Signed-off-by: Yamato Ando <[email protected]>

* rename path

Signed-off-by: Yamato Ando <[email protected]>

---------

Signed-off-by: Yamato Ando <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
YamatoAndo and pre-commit-ci[bot] authored Feb 7, 2024
1 parent 0ed18a4 commit e6df544
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions launch/tier4_localization_launch/launch/localization.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
<arg name="twist_source"/>
<arg name="system_run_mode"/>

<!-- parameter paths for ndt -->
<arg name="ndt_scan_matcher/pointcloud_preprocessor/crop_box_filter_measurement_range_param_path"/>
<arg name="ndt_scan_matcher/pointcloud_preprocessor/voxel_grid_downsample_filter_param_path"/>
<arg name="ndt_scan_matcher/pointcloud_preprocessor/random_downsample_filter_param_path"/>
<arg name="ndt_scan_matcher/ndt_scan_matcher_param_path"/>

<!-- Parameter files -->
<arg name="crop_box_filter_measurement_range_param_path"/>
<arg name="voxel_grid_downsample_filter_param_path"/>
<arg name="random_downsample_filter_param_path"/>
<arg name="ndt_scan_matcher_param_path"/>
<arg name="localization_error_monitor_param_path"/>
<arg name="ekf_localizer_param_path"/>
<arg name="pose_initializer_param_path"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<arg name="client_map_loader" value="/map/get_differential_pointcloud_map"/>

<arg name="param_file" value="$(var ndt_scan_matcher_param_path)"/>
<arg name="param_file" value="$(var ndt_scan_matcher/ndt_scan_matcher_param_path)"/>
</include>
</group>
</launch>
6 changes: 3 additions & 3 deletions launch/tier4_localization_launch/launch/util/util.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@

<load_composable_node target="$(var lidar_container_name)">
<composable_node pkg="pointcloud_preprocessor" plugin="pointcloud_preprocessor::CropBoxFilterComponent" name="crop_box_filter_measurement_range">
<param from="$(var crop_box_filter_measurement_range_param_path)"/>
<param from="$(var ndt_scan_matcher/pointcloud_preprocessor/crop_box_filter_measurement_range_param_path)"/>
<remap from="input" to="$(var input_pointcloud)"/>
<remap from="output" to="measurement_range/pointcloud"/>
<extra_arg name="use_intra_process_comms" value="$(var use_intra_process)"/>
</composable_node>

<composable_node pkg="pointcloud_preprocessor" plugin="pointcloud_preprocessor::VoxelGridDownsampleFilterComponent" name="voxel_grid_downsample_filter">
<param from="$(var voxel_grid_downsample_filter_param_path)"/>
<param from="$(var ndt_scan_matcher/pointcloud_preprocessor/voxel_grid_downsample_filter_param_path)"/>
<remap from="input" to="measurement_range/pointcloud"/>
<remap from="output" to="voxel_grid_downsample/pointcloud"/>
<extra_arg name="use_intra_process_comms" value="$(var use_intra_process)"/>
</composable_node>

<composable_node pkg="pointcloud_preprocessor" plugin="pointcloud_preprocessor::RandomDownsampleFilterComponent" name="random_downsample_filter">
<param from="$(var random_downsample_filter_param_path)"/>
<param from="$(var ndt_scan_matcher/pointcloud_preprocessor/random_downsample_filter_param_path)"/>
<remap from="input" to="voxel_grid_downsample/pointcloud"/>
<remap from="output" to="$(var output/pointcloud)"/>
<extra_arg name="use_intra_process_comms" value="$(var use_intra_process)"/>
Expand Down

0 comments on commit e6df544

Please sign in to comment.