Skip to content

Commit

Permalink
refactor: change node parameter name
Browse files Browse the repository at this point in the history
Signed-off-by: yoshiri <[email protected]>
  • Loading branch information
YoshiRi committed Dec 20, 2023
1 parent 9a95283 commit 4624162
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ def launch_setup(context, *args, **kwargs):
# set concat filter as a component

# separate components for backward compatibility
merge_pointcloud_sync_and_concatenate_nodes_str: str = LaunchConfiguration(
"merge_pointcloud_sync_and_concatenate_nodes"
separate_pointcloud_sync_and_concatenate_nodes_str: str = LaunchConfiguration(
"concatenate_data__separate_pointcloud_sync_and_concatenate_nodes"
).perform(context)
merge_pointcloud_sync_and_concatenate_nodes: bool = (
merge_pointcloud_sync_and_concatenate_nodes_str.lower() == "true"
separate_pointcloud_sync_and_concatenate_nodes: bool = (
separate_pointcloud_sync_and_concatenate_nodes_str.lower() == "true"
)

if merge_pointcloud_sync_and_concatenate_nodes:
if not separate_pointcloud_sync_and_concatenate_nodes:
# legacy mode for backward compatibility. Not used in default.
sync_and_concat_component = ComposableNode(
package="pointcloud_preprocessor",
Expand Down Expand Up @@ -141,7 +141,7 @@ def add_launch_arg(name: str, default_value=None):
add_launch_arg("use_intra_process", "False")
add_launch_arg("use_pointcloud_container", "False")
add_launch_arg("container_name", "pointcloud_preprocessor_container")
add_launch_arg("merge_pointcloud_sync_and_concatenate_nodes", "False")
add_launch_arg("concatenate_data__separate_pointcloud_sync_and_concatenate_nodes", "True")

set_container_executable = SetLaunchConfiguration(
"container_executable",
Expand Down

0 comments on commit 4624162

Please sign in to comment.