Skip to content

Commit

Permalink
change state initialization logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Jun 15, 2018
1 parent 65c2b53 commit 6955bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launch_ros/launch_ros/actions/lifecycle_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def __init__(self, *, node_name: Text, **kwargs) -> None:
"""
super().__init__(node_name=node_name, **kwargs)
self.__rclpy_subscription = None
# first item is unknown state
self.__current_state = next(iter(ChangeState.valid_states.values()))
self.__current_state = \
ChangeState.valid_states[lifecycle_msgs.msg.State.PRIMARY_STATE_UNKNOWN]

def _on_transition_event(self, context, msg):
try:
Expand Down

0 comments on commit 6955bc8

Please sign in to comment.