17 import sys,os,platform
22 sysinfo = platform.uname()
27 os.system(
"rd /S /Q SimpleService")
28 os.system(
"rd /S /Q SimpleService__POA")
29 os.system(
"omniidl.exe -bpython MyService.idl")
30 os.system(
"start python ..\\..\\..\\bin\\rtm-naming.py")
31 os.system(
"start python MyServiceConsumer.py")
32 os.system(
"start python MyServiceProvider.py")
34 os.system(
"python Connector.py")
37 os.system(
'rm -rf SimpleService*')
38 os.system(
'omniidl -bpython MyService.idl')
39 status,term=commands.getstatusoutput(
"which xterm")
42 status,term=commands.getstatusoutput(
"which kterm")
46 status,term=commands.getstatusoutput(
"which uxterm")
50 status,term=commands.getstatusoutput(
"which gnome-terminal")
54 print "No terminal program (kterm/xterm/gnome-terminal) exists." 59 if os.path.exists(os.path.join(p,
"OpenRTM_aist")):
60 path = os.path.join(p,
"OpenRTM_aist",
"utils",
"rtm-naming")
63 print "rtm-naming directory not exist." 66 os.system(
'python %s/rtm-naming.py &'%path)
67 os.system(
'%s python MyServiceConsumer.py &'%term)
68 os.system(
'%s python MyServiceProvider.py &'%term)
70 os.system(
"python Connector.py")