You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application I simulate multiple agents, each in their own domain. I'm trying to move my nodes over to be components, but am running into challenges within my launch files. When the domain ID is specified as an additional_env, only the first container loads, and any other containers fail to load their components. It seems that the service callback in load_composable_nodes.py gets stuck.
The below example works if you:
Remove additional_env arguments.
Run each container in their own launch file and run from their own ros2 launch command.
Change the ROS_DOMAIN_ID to be the same.
Required Info:
Operating System: Ubuntu 22.04, humble and rolling
Installation type: Binaries
Version or commit hash: Rolling/humble docker image pulled on 2 FEB 2023
I agree that this is likely an oversight in the way that ComposableNodeContainer and ComposableNode interact. In this case, I would expect that the domain ID is propagated correctly.
Under the hood, the ComposableNode description ends up making a service call against the ComposableNodeContainer. When the service client and server end up on different domains, then the failure occurs.
Bug report
In my application I simulate multiple agents, each in their own domain. I'm trying to move my nodes over to be components, but am running into challenges within my launch files. When the domain ID is specified as an
additional_env
, only the first container loads, and any other containers fail to load their components. It seems that the service callback inload_composable_nodes.py
gets stuck.The below example works if you:
additional_env
arguments.ros2 launch
command.ROS_DOMAIN_ID
to be the same.Required Info:
Steps to reproduce issue
Expected behavior
robot state publisher loads in both containers
Actual behavior
robot state publisher loads in only one of the containers
Additional information
If there are alternative ways of doing this, I'm open to that as well.
The text was updated successfully, but these errors were encountered: