Skip to content

Commit

Permalink
fix(common_sensor_launch): fix use_container bug (#226)
Browse files Browse the repository at this point in the history
Signed-off-by: badai-nguyen <[email protected]>
  • Loading branch information
badai-nguyen authored Mar 21, 2024
1 parent c47e3e8 commit fb718d6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions common_sensor_launch/launch/nebula_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,20 +262,14 @@ def create_parameter_dict(*args):
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)

target_container = (
container
if UnlessCondition(LaunchConfiguration("use_pointcloud_container")).evaluate(context)
else LaunchConfiguration("container_name")
)

driver_component_loader = LoadComposableNodes(
composable_node_descriptions=[driver_component],
target_container=container,
condition=IfCondition(LaunchConfiguration("launch_driver")),
)
blockage_diag_loader = LoadComposableNodes(
composable_node_descriptions=[blockage_diag_component],
target_container=target_container,
target_container=container,
condition=IfCondition(LaunchConfiguration("enable_blockage_diag")),
)

Expand Down

0 comments on commit fb718d6

Please sign in to comment.