From b2f440d07f12206691103c46bb40fb95ae9cde88 Mon Sep 17 00:00:00 2001 From: ivanpauno Date: Thu, 9 May 2019 10:02:30 -0300 Subject: [PATCH] Corrected matches_action usage in lifecycle_pub_sub example Signed-off-by: ivanpauno --- launch_ros/examples/lifecycle_pub_sub_launch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launch_ros/examples/lifecycle_pub_sub_launch.py b/launch_ros/examples/lifecycle_pub_sub_launch.py index 9755a273d..4c65e21dd 100644 --- a/launch_ros/examples/lifecycle_pub_sub_launch.py +++ b/launch_ros/examples/lifecycle_pub_sub_launch.py @@ -48,7 +48,7 @@ def main(argv=sys.argv[1:]): launch.actions.LogInfo( msg="node 'talker' reached the 'inactive' state, 'activating'."), launch.actions.EmitEvent(event=launch_ros.events.lifecycle.ChangeState( - lifecycle_node_matcher=launch.events.process.matches_action(talker_node), + lifecycle_node_matcher=launch.events.matches_action(talker_node), transition_id=lifecycle_msgs.msg.Transition.TRANSITION_ACTIVATE, )), ], @@ -72,7 +72,7 @@ def main(argv=sys.argv[1:]): # Make the talker node take the 'configure' transition. emit_event_to_request_that_talker_does_configure_transition = launch.actions.EmitEvent( event=launch_ros.events.lifecycle.ChangeState( - lifecycle_node_matcher=launch.events.process.matches_action(talker_node), + lifecycle_node_matcher=launch.events.matches_action(talker_node), transition_id=lifecycle_msgs.msg.Transition.TRANSITION_CONFIGURE, ) )