static_link_graph_service.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 # License: BSD
00004 #   https://raw.github.com/robotics-in-concert/rocon_concert/license/LICENSE
00005 #
00006 ##############################################################################
00007 # Imports
00008 ##############################################################################
00009 
00010 import rospy
00011 import concert_service_link_graph
00012 import concert_service_utilities
00013 
00014 ##############################################################################
00015 # Main
00016 ##############################################################################
00017 
00018 if __name__ == '__main__':
00019     rospy.init_node('static_link_graph_service', anonymous=True)
00020 
00021     # this is a uuid.UUID key
00022     (name, description, priority, uuid) = concert_service_utilities.get_service_info()
00023     filename = rospy.get_param('~filename')
00024 
00025     impl_name, impl = concert_service_link_graph.load_linkgraph_from_file(filename)
00026 
00027     if not name:
00028         name = impl_name
00029 
00030     static_link_graph_service = concert_service_link_graph.StaticLinkGraphHandler(name, description, priority, uuid, impl)
00031     static_link_graph_service.spin()


concert_service_link_graph
Author(s): Daniel Stonier, Jihoon Lee
autogenerated on Thu Jun 6 2019 18:17:48