23 from roslib.packages
import get_pkg_dir
27 from xml.etree
import ElementTree
31 autorun = ElementTree.Element(
'boot')
32 autorun.set(
'config', config)
33 tree = ElementTree.ElementTree(autorun)
35 tmp = os.path.join(get_pkg_dir(
"airbus_cobot_gui"),
'resources',
'autorun.xml')
37 tree.write(file_or_filename = tmp, encoding=
'utf8', method=
'xml')
40 if __name__ ==
"__main__":
42 rospy.init_node(
'airbus_cobot_gui_autorun_%d' % os.getpid())
44 config = rospy.get_param(
"~config",
"${airbus_cobot_gui}/resources/config/default.conf")
48 subprocess.Popen([
'rosrun',
'airbus_cobot_gui',
'autorun.py'])
def set_boot_configuration