41 from topic_tools.srv
import MuxAdd
42 from topic_tools.srv
import MuxDelete
43 from topic_tools.srv
import MuxList
44 from topic_tools.srv
import MuxSelect
48 rospy.init_node(
'chatter')
50 rospy.wait_for_service(
'mux/add', 5)
51 rospy.wait_for_service(
'mux/delete', 5)
52 rospy.wait_for_service(
'mux/list', 5)
53 rospy.wait_for_service(
'mux/select', 5)
55 add_srv = rospy.ServiceProxy(
'mux/add', MuxAdd)
56 delete_srv = rospy.ServiceProxy(
'mux/delete', MuxDelete)
57 list_srv = rospy.ServiceProxy(
'mux/list', MuxList)
58 select_srv = rospy.ServiceProxy(
'mux/select', MuxSelect)
60 b_pub = rospy.Publisher(
'b', String)
69 while not rospy.is_shutdown():
73 if __name__ ==
"__main__":