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),
22 rospy.loginfo(
'{} | Empty service called'.format(self.
_name))
23 return EmptyResponse()
26 if __name__ ==
'__main__':
27 rospy.init_node(
'sample_service_radio_buttons')