-
Notifications
You must be signed in to change notification settings - Fork 76
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
talker_listener_launch_test example is broken #97
Comments
Any updates here? I'm stuck to the same issue. |
I can reproduce the issue. Interestingly, if you run the test with the CLI tool
|
I guess it kind of makes sense, since the ROS node is specific to launch_ros/launch_ros/launch_ros/default_launch_description.py Lines 80 to 92 in c37340d
I think either the README should be updated to use |
Updating the launch file fixes the issue for launching with ld = launch_ros.get_default_launch_description()
ld.add_action(talker_node)
ld.add_action(listener_node)
# Start tests right away - no need to wait for anything
ld.add_action(launch_testing.actions.ReadyToTest()) But, then two nodes are created if we run with
Seems like a different approach is required. |
There's no good solution here really, besides not mixing up |
Fixes #97 Inject the ROS-specific preamble so that the test can be run as described in the README. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
See #112 for a fix of the example. Longer term, I think we need to remove the injection from the CLI tool, or be able to detect that the preamble has already been included to avoid including it more than once. |
Got burned by this last night as well. +1 for removing the injection. Reasoning:
|
The example should not be using the underlying launch_ros ROS context or ROS node since it is an implementation detail. Instead, the example initailizes it's own context and ROS node. Fixes #97. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
The example should not be using the underlying launch_ros ROS context or ROS node since it is an implementation detail. Instead, the example initailizes it's own context and ROS node. Fixes #97. Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Trying to run this launch test:
Yields:
The text was updated successfully, but these errors were encountered: