4 from resized_image_client
import ResizedImageClient
5 from std_msgs.msg
import Float64
16 def __init__(self, node, ping_node, x=0.1, y=0.1, mps=1.0):
17 ResizedImageClient.__init__(self, node, x, y, mps)
20 self.
mode = TrafficMode.narrow
32 self.
mode = TrafficMode.error
34 self.
mode = TrafficMode.wide
36 self.
mode = TrafficMode.normal
38 self.
mode = TrafficMode.narrow
41 if self.
mode == TrafficMode.error:
45 elif self.
mode == TrafficMode.narrow:
49 elif self.
mode == TrafficMode.normal:
53 elif self.
mode == TrafficMode.wide:
61 if __name__ ==
'__main__':
62 rospy.init_node(
'rosping_resized_image_client')
63 image_node = rospy.get_param(
'image_node',
'/head_resized')
64 delay_node = rospy.get_param(
'delay_node',
'/ping/delay')
def __init__(self, node, ping_node, x=0.1, y=0.1, mps=1.0)