Skip to content

Commit 262ec55

Browse files
authored
fix(probabilistic_occupancy_grid_map): fix launch config name from old one (#6663)
fix: fix launch config name from old one Signed-off-by: yoshiri <yoshiyoshidetteiu@gmail.com>
1 parent 7908a4a commit 262ec55

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

perception/probabilistic_occupancy_grid_map/launch/multi_lidar_pointcloud_based_occupancy_grid_map.launch.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ def fusion_config_sanity_check(fusion_config: dict):
4848
listed_param_names = [
4949
"raw_pointcloud_topics",
5050
"fusion_input_ogm_topics",
51-
# "each_ogm_sensor_frames",
5251
"input_ogm_reliabilities",
5352
]
5453
param_length_list = []
@@ -112,7 +111,12 @@ def launch_setup(context, *args, **kwargs):
112111
gridmap_generation_composable_nodes = []
113112

114113
number_of_nodes = len(fusion_config["raw_pointcloud_topics"])
115-
print(number_of_nodes)
114+
print(
115+
"launching multi_lidar_pointcloud_based occupancy grid map",
116+
number_of_nodes,
117+
"nodes in the container named",
118+
LaunchConfiguration("pointcloud_container_name").perform(context),
119+
)
116120

117121
for i in range(number_of_nodes):
118122
# load parameter file
@@ -151,7 +155,7 @@ def launch_setup(context, *args, **kwargs):
151155

152156
# 3. launch setting
153157
occupancy_grid_map_container = ComposableNodeContainer(
154-
name=LaunchConfiguration("container_name"),
158+
name=LaunchConfiguration("pointcloud_container_name"),
155159
namespace="",
156160
package="rclcpp_components",
157161
executable=LaunchConfiguration("container_executable"),
@@ -162,7 +166,7 @@ def launch_setup(context, *args, **kwargs):
162166

163167
load_composable_nodes = LoadComposableNodes(
164168
composable_node_descriptions=gridmap_generation_composable_nodes + gridmap_fusion_node,
165-
target_container=LaunchConfiguration("container_name"),
169+
target_container=LaunchConfiguration("pointcloud_container_name"),
166170
condition=IfCondition(LaunchConfiguration("use_pointcloud_container")),
167171
)
168172

@@ -190,7 +194,7 @@ def add_launch_arg(name: str, default_value=None):
190194
add_launch_arg("use_multithread", "false"),
191195
add_launch_arg("use_intra_process", "true"),
192196
add_launch_arg("use_pointcloud_container", "false"),
193-
add_launch_arg("container_name", "occupancy_grid_map_container"),
197+
add_launch_arg("pointcloud_container_name", "occupancy_grid_map_container"),
194198
add_launch_arg("input/obstacle_pointcloud", "no_ground/oneshot/pointcloud"),
195199
add_launch_arg("output", "occupancy_grid"),
196200
add_launch_arg(

0 commit comments

Comments
 (0)