-
Couldn't load subscription status.
- Fork 91
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
Required Info:
- Operating System:
- Ubuntu 22
- Installation type:
- binaries
- Version or commit hash:
- Humble
- DDS implementation:
- Cyclone
- Client library (if applicable):
Steps to reproduce issue
from launch import LaunchDescription
from launch.actions import (
GroupAction,
SetEnvironmentVariable,
)
from launch_ros.actions import Node, RosTimer
def generate_launch_description(): # noqa: D103
ld = LaunchDescription()
ld.add_action(
GroupAction(
actions=[
SetEnvironmentVariable(name="ROS_DOMAIN_ID", value="2"),
RosTimer(
period=1.0,
actions=[
# Gets ROS_DOMAIN_ID of 0
Node(
package="demo_nodes_py",
executable="talker",
output="screen",
),
],
),
# Gets ROS_DOMAIN_ID of 2
Node(
package="demo_nodes_py",
executable="listener",
output="screen",
),
]
)
)
return ldExpected behavior
Both nodes get the same ROS_DOMAIN_ID of 2
Actual behavior
The node in RosTimer does not get ROS_DOMAIN_ID set
Additional information
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working