@@ -33,6 +33,15 @@ def launch_setup(context, *args, **kwargs):
33
33
with open (vehicle_info_param_path , "r" ) as f :
34
34
vehicle_info_param = yaml .safe_load (f )["/**" ]["ros__parameters" ]
35
35
36
+ ground_segmentation_param_path = os .path .join (
37
+ get_package_share_directory ("autoware_ground_segmentation" ),
38
+ "config" ,
39
+ "ground_segmentation.param.yaml" ,
40
+ )
41
+
42
+ with open (ground_segmentation_param_path , "r" ) as f :
43
+ ground_segmentation_param = yaml .safe_load (f )["/**" ]["ros__parameters" ]
44
+
36
45
nodes = [
37
46
ComposableNode (
38
47
package = "autoware_ground_segmentation" ,
@@ -43,12 +52,9 @@ def launch_setup(context, *args, **kwargs):
43
52
("output" , LaunchConfiguration ("output/pointcloud" )),
44
53
],
45
54
parameters = [
46
- {
47
- "global_slope_max_angle_deg" : 10.0 ,
48
- "local_slope_max_angle_deg" : 30.0 ,
49
- "split_points_distance_tolerance" : 0.2 ,
50
- "split_height_distance" : 0.2 ,
51
- },
55
+ ground_segmentation_param ["common_ground_filter" ]["parameters" ],
56
+ {"input_frame" : "base_link" },
57
+ {"output_frame" : "base_link" },
52
58
vehicle_info_param ,
53
59
],
54
60
),
0 commit comments