@@ -112,7 +112,12 @@ def launch_setup(context, *args, **kwargs):
112
112
gridmap_generation_composable_nodes = []
113
113
114
114
number_of_nodes = len (fusion_config ["raw_pointcloud_topics" ])
115
- print (number_of_nodes )
115
+ print (
116
+ "launching multi_lidar_pointcloud_based occupancy grid map" ,
117
+ number_of_nodes ,
118
+ "nodes in the container named" ,
119
+ LaunchConfiguration ("pointcloud_container_name" ).perform (context ),
120
+ )
116
121
117
122
for i in range (number_of_nodes ):
118
123
# load parameter file
@@ -151,7 +156,7 @@ def launch_setup(context, *args, **kwargs):
151
156
152
157
# 3. launch setting
153
158
occupancy_grid_map_container = ComposableNodeContainer (
154
- name = LaunchConfiguration ("container_name " ),
159
+ name = LaunchConfiguration ("pointcloud_container_name " ),
155
160
namespace = "" ,
156
161
package = "rclcpp_components" ,
157
162
executable = LaunchConfiguration ("container_executable" ),
@@ -162,7 +167,7 @@ def launch_setup(context, *args, **kwargs):
162
167
163
168
load_composable_nodes = LoadComposableNodes (
164
169
composable_node_descriptions = gridmap_generation_composable_nodes + gridmap_fusion_node ,
165
- target_container = LaunchConfiguration ("container_name " ),
170
+ target_container = LaunchConfiguration ("pointcloud_container_name " ),
166
171
condition = IfCondition (LaunchConfiguration ("use_pointcloud_container" )),
167
172
)
168
173
@@ -190,7 +195,7 @@ def add_launch_arg(name: str, default_value=None):
190
195
add_launch_arg ("use_multithread" , "false" ),
191
196
add_launch_arg ("use_intra_process" , "true" ),
192
197
add_launch_arg ("use_pointcloud_container" , "false" ),
193
- add_launch_arg ("container_name " , "occupancy_grid_map_container" ),
198
+ add_launch_arg ("pointcloud_container_name " , "occupancy_grid_map_container" ),
194
199
add_launch_arg ("input/obstacle_pointcloud" , "no_ground/oneshot/pointcloud" ),
195
200
add_launch_arg ("output" , "occupancy_grid" ),
196
201
add_launch_arg (
0 commit comments