@@ -82,6 +82,12 @@ def create_additional_pipeline(self, lidar_name):
82
82
"margin_min_z"
83
83
]
84
84
)
85
+ # Get the plugin name from the full plugin path
86
+ ground_segmentation_plugin_name = self .ground_segmentation_param [
87
+ f"{ lidar_name } _ground_filter"
88
+ ]["plugin" ]
89
+ ground_segmentation_plugin_name = ground_segmentation_plugin_name .split ("::" )[- 1 ]
90
+
85
91
components = []
86
92
components .append (
87
93
ComposableNode (
@@ -110,7 +116,7 @@ def create_additional_pipeline(self, lidar_name):
110
116
components .append (
111
117
ComposableNode (
112
118
package = "ground_segmentation" ,
113
- plugin = self . ground_segmentation_param [ f" { lidar_name } _ground_filter" ][ "plugin" ] ,
119
+ plugin = "autoware::ground_segmentation::" + ground_segmentation_plugin_name ,
114
120
name = f"{ lidar_name } _ground_filter" ,
115
121
remappings = [
116
122
("input" , f"{ lidar_name } /range_cropped/pointcloud" ),
@@ -203,7 +209,7 @@ def create_ransac_pipeline(self):
203
209
components .append (
204
210
ComposableNode (
205
211
package = "ground_segmentation" ,
206
- plugin = "autoware::ground_segmentation::RANSACGroundFilterComponent" ,
212
+ plugin = "autoware::ground_segmentation::" + " RANSACGroundFilterComponent" ,
207
213
name = "ransac_ground_filter" ,
208
214
namespace = "plane_fitting" ,
209
215
remappings = [
@@ -228,6 +234,12 @@ def create_common_pipeline(self, input_topic, output_topic):
228
234
self .vehicle_info ["min_height_offset" ]
229
235
+ self .ground_segmentation_param ["common_crop_box_filter" ]["parameters" ]["margin_min_z" ]
230
236
)
237
+ # Get the plugin name from the full plugin path
238
+ ground_segmentation_plugin_name = self .ground_segmentation_param ["common_ground_filter" ][
239
+ "plugin"
240
+ ]
241
+ ground_segmentation_plugin_name = ground_segmentation_plugin_name .split ("::" )[- 1 ]
242
+
231
243
components = []
232
244
components .append (
233
245
ComposableNode (
@@ -256,7 +268,7 @@ def create_common_pipeline(self, input_topic, output_topic):
256
268
components .append (
257
269
ComposableNode (
258
270
package = "ground_segmentation" ,
259
- plugin = self . ground_segmentation_param [ "common_ground_filter" ][ "plugin" ] ,
271
+ plugin = "autoware::ground_segmentation::" + ground_segmentation_plugin_name ,
260
272
name = "common_ground_filter" ,
261
273
remappings = [
262
274
("input" , "range_cropped/pointcloud" ),
0 commit comments