gazebo_services.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import rospy
00004 from std_srvs.srv import *
00005 
00006 class gazebo_services():
00007 
00008         def __init__(self):
00009                 self.init_srv = rospy.Service('driver/init', Trigger, self.srv_cb)
00010                 self.recover_srv = rospy.Service('driver/recover', Trigger, self.srv_cb)
00011                 self.halt_srv = rospy.Service('driver/halt', Trigger, self.srv_cb)
00012                 self.shutdown_srv = rospy.Service('driver/shutdown', Trigger, self.srv_cb)
00013 
00014         def srv_cb(self, req):
00015                 resp = TriggerResponse()
00016                 resp.success = True
00017                 return resp
00018 
00019 
00020 if __name__ == "__main__":
00021    rospy.init_node('gazebo_services')
00022    gazebo_services()
00023    rospy.loginfo("gazebo_services running")
00024    rospy.spin()
00025 


cob_controller_configuration_gazebo
Author(s): Florian Weisshardt
autogenerated on Wed Dec 14 2016 04:18:43