Skip to content

Commit

Permalink
Merge pull request ros2#21 from ros2/ivanpauno/correct-lifecycle-pub-…
Browse files Browse the repository at this point in the history
…sub-launch-example

Corrected matches_action usage in lifecycle_pub_sub example
  • Loading branch information
ivanpauno committed May 10, 2019
2 parents 2bd186b + b2f440d commit 9a6ed82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launch_ros/examples/lifecycle_pub_sub_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)),
],
Expand All @@ -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,
)
)
Expand Down

0 comments on commit 9a6ed82

Please sign in to comment.