Пример #1
0
class ControlMode(State):
    def __init__(self, mode):
        State.__init__(self, outcomes=['success'])
        self.mode = mode
        self.control_mode = ControllerMode()

    def execute(self, userdata):

        # change control mode
        self.control_mode.change_control_mode_client(self.mode)
        return 'success'
Пример #2
0
class ControlMode(State):
    def __init__(self, mode):
        State.__init__(self, ['succeeded', 'aborted', 'preempted'])
        self.mode = mode
        self.control_mode = ControllerMode()

    def execute(self, userdata):

        # change control mode
        self.control_mode.change_control_mode_client(self.mode)
        rospy.loginfo('changed DP control mode to: ' + str(self.mode) + '!')
        return 'succeeded'
Пример #3
0
 def __init__(self, mode):
     State.__init__(self, ['succeeded', 'aborted', 'preempted'])
     self.mode = mode
     self.control_mode = ControllerMode()
Пример #4
0
 def __init__(self, mode):
     State.__init__(self, outcomes=['success'])
     self.mode = mode
     self.control_mode = ControllerMode()