#!/usr/bin/env python
import rospy
import smach

import smach_ros


class QKDState(smach.State):

    def __init__(self):
        smach.State.__init__(self, outcomes=['succeeded', 'failed'])
        self.is_succeeded = False

    def execute(self, userdata):
        rospy.loginfo('[QMR] QKD session')
        # code

        if self.is_succeeded:
            return 'succeeded'
        else:
            return 'failed'
