export.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import rospy
00004 import world_canvas_msgs.srv
00005 
00006 
00007 if __name__ == '__main__':
00008     rospy.init_node('export')
00009     
00010     file = rospy.get_param('~file')
00011 
00012     rospy.loginfo("Waiting for yaml_export service...")
00013     rospy.wait_for_service('yaml_export')
00014 
00015     rospy.loginfo("Export annotations to file '%s'", file)
00016     export_srv = rospy.ServiceProxy('yaml_export', world_canvas_msgs.srv.YAMLExport)
00017     response = export_srv(file)
00018 
00019     if response.result == True:
00020         rospy.loginfo("Database successfully exported to file '%s'", file)
00021     else:
00022         rospy.logerr("Export database failed; %s", response.message)


world_canvas_server
Author(s): Jorge Santos Simón
autogenerated on Thu Jun 6 2019 21:25:06