Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add glog_component to aip_xx1_launch #184

Merged
merged 6 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions aip_xx1_launch/launch/pointcloud_preprocessor.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,19 @@ def launch_setup(context, *args, **kwargs):
extra_arguments=[{"use_intra_process_comms": LaunchConfiguration("use_intra_process")}],
)

glog_component = ComposableNode(
package="glog_component",
plugin="GlogComponent",
name="glog_component",
)

# set container to run all required components in the same process
container = ComposableNodeContainer(
name=LaunchConfiguration("container_name"),
namespace="",
package="rclcpp_components",
executable=LaunchConfiguration("container_executable"),
composable_node_descriptions=[],
composable_node_descriptions=[glog_component],
Copy link
Contributor

@badai-nguyen badai-nguyen Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
I found that the container including glog_component wasn't executed.
The reason is theLaunchConfiguration("use_pointcloud_container")=True so only concat_loader will be executed. I think you should add glog_component into concat_loader instead.

    # load concat or passthrough filter
    concat_loader = LoadComposableNodes(
        composable_node_descriptions=[glog_component, concat_component],
        target_container=target_container,
        condition=IfCondition(LaunchConfiguration("use_concat_filter")),
    )

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I add glog_component to concat_loader 🙇

9d8ed6a

condition=UnlessCondition(LaunchConfiguration("use_pointcloud_container")),
output="screen",
)
Expand All @@ -76,7 +82,7 @@ def launch_setup(context, *args, **kwargs):

# load concat or passthrough filter
concat_loader = LoadComposableNodes(
composable_node_descriptions=[concat_component],
composable_node_descriptions=[concat_component, glog_component],
target_container=target_container,
condition=IfCondition(LaunchConfiguration("use_concat_filter")),
)
Expand Down
1 change: 1 addition & 0 deletions aip_xx1_launch/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<buildtool_depend>ament_cmake_auto</buildtool_depend>

<exec_depend>common_sensor_launch</exec_depend>
<exec_depend>glog_component</exec_depend>
<exec_depend>gnss_poser</exec_depend>
<exec_depend>pacmod3</exec_depend>
<exec_depend>pointcloud_preprocessor</exec_depend>
Expand Down