5 from flexbe_msgs.msg
import CommandFeedback, OutcomeRequest
12 A state for that a desired outcome can be declared. 13 If any outcome is declared, this outcome is forced. 17 super(ManuallyTransitionableState, self).
__init__(*args, **kwargs)
27 self.
_pub = ProxyPublisher()
28 self.
_sub = ProxySubscriberCached()
34 self._pub.publish(self.
_feedback_topic, CommandFeedback(command=
"transition", args=[command_msg.target, self.
name]))
35 if command_msg.target != self.
name:
36 rospy.logwarn(
"--> Requested outcome for state " + command_msg.target +
" but active state is " + self.
name)
40 rospy.loginfo(
"--> Manually triggered outcome " + outcome +
" of state " + self.
name)
def __init__(self, args, kwargs)
def _manually_transitionable_execute(self, args, kwargs)
def _enable_ros_control(self)
def _disable_ros_control(self)