Skip to content

Commit

Permalink
refactor(occupancy_grid_map): add occupancy_grid_map method/param var…
Browse files Browse the repository at this point in the history
… to launcher (#294)

add occcupancy_grid_map method/param var to launcher and use those ones in autoware_launch by default

Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
  • Loading branch information
soblin authored Apr 19, 2023
1 parent d33c570 commit fa42762
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**:
ros__parameters:
map_frame: "map"
base_link_frame: "base_link"
# center of the grid map
gridmap_origin_frame: "base_link"
# ray-tracing center: main sensor frame is preferable like: "velodyne_top"
scan_origin_frame: "base_link"

use_height_filter: true
enable_single_frame_mode: false
map_length: 100.0
map_width: 100.0
map_resolution: 0.5
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**:
ros__parameters:
map_length: 100.0 # [m]
map_resolution: 0.5 # [m]

use_height_filter: true
enable_single_frame_mode: false
# use sensor pointcloud to filter obstacle pointcloud
filter_obstacle_pointcloud_by_raw_pointcloud: false

# grid map coordinate
map_frame: "map"
base_link_frame: "base_link"
# center of the grid map
gridmap_origin_frame: "base_link"
# ray-tracing center: main sensor frame is preferable like: "velodyne_top"
scan_origin_frame: "base_link"
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?xml version="1.0"?>
<launch>
<arg name="occupancy_grid_map_method" default="pointcloud_based_occupancy_grid_map" description="options: pointcloud_based_occupancy_grid_map, laserscan_based_occupancy_grid_map"/>

<include file="$(find-pkg-share tier4_perception_launch)/launch/perception.launch.xml">
<arg name="mode" value="$(var perception_mode)"/>
<arg name="vehicle_param_file" value="$(find-pkg-share $(var vehicle_model)_description)/config/vehicle_info.param.yaml"/>
Expand Down Expand Up @@ -31,5 +33,7 @@
name="obstacle_segmentation_ground_segmentation_elevation_map_param_path"
value="$(find-pkg-share autoware_launch)/config/perception/obstacle_segmentation/ground_segmentation/elevation_map_parameters.yaml"
/>
<arg name="occupancy_grid_map_method" value="$(var occupancy_grid_map_method)"/>
<arg name="occupancy_grid_map_param_path" value="$(find-pkg-share autoware_launch)/config/perception/occupancy_grid_map/$(var occupancy_grid_map_method).param.yaml"/>
</include>
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@
/>
<arg name="pose_initializer_common_param_path" value="$(find-pkg-share autoware_launch)/config/localization/pose_initializer_common.param.yaml"/>
<arg name="pose_initializer_param_path" value="$(find-pkg-share autoware_launch)/config/localization/pose_initializer.planning_simulator.param.yaml"/>
<arg name="laserscan_based_occupancy_grid_map_param_path" value="$(find-pkg-share autoware_launch)/config/perception/occupancy_grid_map/laserscan_based_occupancy_grid_map.param.yaml"/>
</include>
</launch>

0 comments on commit fa42762

Please sign in to comment.