Go to the documentation of this file. 5 from std_srvs.srv
import Empty
6 from std_srvs.srv
import EmptyResponse
12 rospy.Service(
'dummy/buttonA', Empty, self.
_empty_cb),
13 rospy.Service(
'dummy/buttonB', Empty, self.
_empty_cb),
14 rospy.Service(
'dummy/buttonC', Empty, self.
_empty_cb),
15 rospy.Service(
'dummy/buttonD', Empty, self.
_empty_cb),
16 rospy.Service(
'dummy/buttonE', Empty, self.
_empty_cb),
17 rospy.Service(
'dummy/buttonF', Empty, self.
_empty_cb),
21 rospy.loginfo(
'Empty service called')
22 return EmptyResponse()
25 if __name__ ==
'__main__':
26 rospy.init_node(
'sample_service_radio_buttons')