10 A state machine to interface with ROS.
14 super(RosStateMachine, self).
__init__(*args, **kwargs)
17 self.
_pub = ProxyPublisher()
18 self.
_sub = ProxySubscriberCached()
20 def wait(self, seconds=None, condition=None):
21 if seconds
is not None:
23 if condition
is not None:
24 rate = rospy.Rate(100)
25 while not rospy.is_shutdown():
33 state._enable_ros_control()
38 state._disable_ros_control()