airbus_cobot_gui_node.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 ################################################################################
3 #
4 # Copyright Airbus Group SAS 2015
5 # All rigths reserved.
6 #
7 # File Name : airbus_cobot_gui_node.py
8 # Authors : Martin Matignon
9 #
10 # If you find any bug or if you have any question please contact
11 # Adolfo Suarez Roos <adolfo.suarez@airbus.com>
12 # Martin Matignon <martin.matignon.external@airbus.com>
13 #
14 #
15 ################################################################################
16 
17 ## @package: airbus_cobot_gui_node
18 ##
19 ## @version 2.0
20 ## @author Matignon Martin
21 ## @date Last modified 21/02/2014
22 import rospy
23 from roslib.packages import get_pkg_dir
24 import sys
25 import os
26 import subprocess
27 from xml.etree import ElementTree
28 
30 
31  autorun = ElementTree.Element('boot')
32  autorun.set('config', config)
33  tree = ElementTree.ElementTree(autorun)
34 
35  tmp = os.path.join(get_pkg_dir("airbus_cobot_gui"),'resources','autorun.xml')
36 
37  tree.write(file_or_filename = tmp, encoding='utf8', method='xml')
38 
39 ##@cond UNITEST
40 if __name__ == "__main__":
41 
42  rospy.init_node('airbus_cobot_gui_autorun_%d' % os.getpid())
43 
44  config = rospy.get_param("~config", "${airbus_cobot_gui}/resources/config/default.conf")
45 
47 
48  subprocess.Popen(['rosrun', 'airbus_cobot_gui','autorun.py'])
49 
50 #@endcond
51 


airbus_cobot_gui
Author(s):
autogenerated on Thu Dec 17 2015 11:42:05