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

[launch_testing_ros] Fix example launch test #112

Closed
wants to merge 1 commit into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import unittest
import uuid

import launch
import launch_ros
import launch_ros.actions
import launch_testing.actions
Expand Down Expand Up @@ -51,13 +50,15 @@ def generate_test_description():
remappings=[('chatter', 'listener_chatter')]
)

# Note, if we use 'ros2 test', then this default description is injected for us
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())

return (
launch.LaunchDescription([
talker_node,
listener_node,
# Start tests right away - no need to wait for anything
launch_testing.actions.ReadyToTest(),
]),
ld,
{
'talker': talker_node,
'listener': listener_node,
Expand Down