4 from flexbe_msgs.msg
import CommandFeedback, OutcomeRequest
11 A state for that a desired outcome can be declared. 12 If any outcome is declared, this outcome is forced. 16 super(ManuallyTransitionableState, self).
__init__(*args, **kwargs)
28 self._pub.publish(self.
_feedback_topic, CommandFeedback(command=
"transition",
29 args=[command_msg.target, self.
name]))
30 if command_msg.target != self.
name:
31 Logger.logwarn(
"Requested outcome for state %s but active state is %s" %
32 (command_msg.target, self.
name))
35 outcome = self.
outcomes[command_msg.outcome]
36 Logger.localinfo(
"--> Manually triggered outcome %s of state %s" % (outcome, self.
name))
def __init__(self, args, kwargs)
def _manually_transitionable_execute(self, args, kwargs)
def _enable_ros_control(self)
def _disable_ros_control(self)