Skip to content

Commit

Permalink
fix(tier4_perception_launch): fix missing container argument (#2087)
Browse files Browse the repository at this point in the history
* fix(tier4_perception_launch): fix missing container argument

Signed-off-by: Kaan Colak <kcolak@leodrive.ai>

* fix(tier4_perception_launch): rm unused param

Signed-off-by: Kaan Colak <kcolak@leodrive.ai>

Signed-off-by: Kaan Colak <kcolak@leodrive.ai>
  • Loading branch information
kaancolak authored Oct 25, 2022
1 parent 023f6fa commit 41f47be
Showing 1 changed file with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
from launch.actions import DeclareLaunchArgument
from launch.actions import SetLaunchConfiguration
from launch.conditions import IfCondition
from launch.conditions import LaunchConfigurationEquals
from launch.conditions import LaunchConfigurationNotEquals
from launch.conditions import UnlessCondition
from launch.substitutions import LaunchConfiguration
from launch_ros.actions import ComposableNodeContainer
Expand Down Expand Up @@ -62,26 +60,27 @@ def add_launch_arg(name: str, default_value=None):
]

occupancy_grid_map_container = ComposableNodeContainer(
condition=LaunchConfigurationEquals("container", ""),
name="occupancy_grid_map_container",
name=LaunchConfiguration("container_name"),
namespace="",
package="rclcpp_components",
executable=LaunchConfiguration("container_executable"),
composable_node_descriptions=composable_nodes,
condition=UnlessCondition(LaunchConfiguration("use_pointcloud_container")),
output="screen",
)

load_composable_nodes = LoadComposableNodes(
condition=LaunchConfigurationNotEquals("container", ""),
composable_node_descriptions=composable_nodes,
target_container=LaunchConfiguration("container"),
target_container=LaunchConfiguration("container_name"),
condition=IfCondition(LaunchConfiguration("use_pointcloud_container")),
)

return LaunchDescription(
[
add_launch_arg("container", ""),
add_launch_arg("use_multithread", "false"),
add_launch_arg("use_intra_process", "false"),
add_launch_arg("use_multithread", "False"),
add_launch_arg("use_intra_process", "True"),
add_launch_arg("use_pointcloud_container", "False"),
add_launch_arg("container_name", "occupancy_grid_map_container"),
add_launch_arg("input/obstacle_pointcloud", "no_ground/oneshot/pointcloud"),
add_launch_arg("input/raw_pointcloud", "concatenated/pointcloud"),
add_launch_arg("output", "occupancy_grid"),
Expand Down

0 comments on commit 41f47be

Please sign in to comment.