[openrtm-commit:00888] r349 - in trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python: resource/100/Doc/author resource/100/Doc/authorLong resource/100/Doc/full resource/100/Doc/refer resource/100/aist/AIST1 resource/100/aist/AIST2 resource/100/aist/AIST3 resource/100/aist/AIST4 resource/100/base/service1 resource/100/base/service2 resource/100/build/cmake1 resource/100/build/cmake2 resource/100/idlinherit/inherit1 resource/100/idlinherit/inherit2 resource/100/idltype/type1 resource/100/idltype/type2 resource/100/idltype/type3 resource/100/module/serviceM resource/100/module/serviceM2 resource/100/module/serviceMC resource/100/module/serviceMC2 src/jp/go/aist/rtm/rtcbuilder/python/template/python
openrtm @ openrtm.org
openrtm @ openrtm.org
2012年 9月 4日 (火) 22:15:04 JST
Author:
Date: 2012-09-04 22:15:03 +0900 (Tue, 04 Sep 2012)
New Revision: 349
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/author/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/authorLong/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/full/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/refer/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST1/test.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST2/test.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST3/test.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST4/test.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service1/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service2/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake1/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type1/ModuleName.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/test.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type3/test.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC2/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/Py_RTC.py.vsl
Log:
Add import IDL class
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/author/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/author/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/author/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -13,6 +13,8 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
+import DAQService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -270,13 +272,10 @@
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/authorLong/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/authorLong/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/authorLong/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -15,6 +15,8 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
+import DAQService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/full/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/full/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/full/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -14,6 +14,8 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
+import DAQService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -414,13 +416,10 @@
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/refer/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/refer/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/refer/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -14,6 +14,8 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
+import DAQService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -279,13 +281,10 @@
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST1/test.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST1/test.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST1/test.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,7 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -240,13 +241,10 @@
manager.registerFactory(profile,
test,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
testInit(manager)
-
# Create a component
comp = manager.createComponent("test")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST2/test.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST2/test.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST2/test.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,7 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
# </rtc-template>
@@ -250,13 +251,10 @@
manager.registerFactory(profile,
test,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
testInit(manager)
-
# Create a component
comp = manager.createComponent("test")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST3/test.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST3/test.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST3/test.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,7 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -259,13 +260,10 @@
manager.registerFactory(profile,
test,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
testInit(manager)
-
# Create a component
comp = manager.createComponent("test")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST4/test.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST4/test.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST4/test.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,7 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -248,13 +249,10 @@
manager.registerFactory(profile,
test,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
testInit(manager)
-
# Create a component
comp = manager.createComponent("test")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service1/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service1/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service1/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,7 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -260,13 +261,10 @@
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service2/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service2/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service2/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,8 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
+import DAQService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -269,13 +271,10 @@
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake1/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake1/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake1/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,8 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
+import DAQService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,8 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyServiceChildMulti_idl
+import MyServiceChildWithType_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyServiceChildMulti_idl_example import *
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -1,35 +1,26 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
\file foo.py
\brief test module
\date $Date$
-
-
"""
import sys
import time
sys.path.append(".")
-
# Import RTM module
import RTC
import OpenRTM_aist
-
+import MyServiceChildMulti_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyServiceChildMulti_idl_example import *
-
# </rtc-template>
-
# Import Service stub modules
# <rtc-template block="consumer_import">
import _GlobalIDL, _GlobalIDL__POA
-
# </rtc-template>
-
-
# This module's spesification
# <rtc-template block="module_spec">
foo_spec = ["implementation_id", "foo",
@@ -44,7 +35,6 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
-
class foo(OpenRTM_aist.DataFlowComponentBase):
"""
@@ -58,30 +48,23 @@
\param manager Maneger Object
"""
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
-
"""
"""
self._MyServiceProviderPort = OpenRTM_aist.CorbaPort("MyServiceProvider")
"""
"""
self._MyServiceRequirePort = OpenRTM_aist.CorbaPort("MyServiceRequire")
-
"""
"""
self._MyServiceProvider = MyServiceChild_i()
-
"""
"""
self._MyServiceRequire = OpenRTM_aist.CorbaConsumer(interfaceType=_GlobalIDL.MyServiceChild)
-
# initialize of configuration-data.
# <rtc-template block="init_conf_param">
# </rtc-template>
-
-
def onInitialize(self):
"""
@@ -262,29 +245,19 @@
#
# return RTC.RTC_OK
-
-
-
def fooInit(manager):
profile = OpenRTM_aist.Properties(defaults_str=foo_spec)
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
-
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
mgr.activateManager()
mgr.runManager()
-
if __name__ == "__main__":
main()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -1,36 +1,28 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
\file foo.py
\brief test module
\date $Date$
-
-
"""
import sys
import time
sys.path.append(".")
-
# Import RTM module
import RTC
import OpenRTM_aist
-
+import MyServiceChildMulti_idl
+import MyServiceChildWithType_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyServiceChildMulti_idl_example import *
from MyServiceChildWithType_idl_example import *
-
# </rtc-template>
-
# Import Service stub modules
# <rtc-template block="consumer_import">
import _GlobalIDL, _GlobalIDL__POA
-
# </rtc-template>
-
-
# This module's spesification
# <rtc-template block="module_spec">
foo_spec = ["implementation_id", "foo",
@@ -45,7 +37,6 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
-
class foo(OpenRTM_aist.DataFlowComponentBase):
"""
@@ -59,15 +50,12 @@
\param manager Maneger Object
"""
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
-
"""
"""
self._MyServiceProviderPort = OpenRTM_aist.CorbaPort("MyServiceProvider")
"""
"""
self._MyServiceRequirePort = OpenRTM_aist.CorbaPort("MyServiceRequire")
-
"""
"""
self._MyServiceProvider = MyServiceChild_i()
@@ -81,13 +69,10 @@
"""
"""
self._MyServiceRequire2 = OpenRTM_aist.CorbaConsumer(interfaceType=_GlobalIDL.MyServiceWithTypeChild)
-
# initialize of configuration-data.
# <rtc-template block="init_conf_param">
# </rtc-template>
-
-
def onInitialize(self):
"""
@@ -270,29 +255,19 @@
#
# return RTC.RTC_OK
-
-
-
def fooInit(manager):
profile = OpenRTM_aist.Properties(defaults_str=foo_spec)
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
-
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
mgr.activateManager()
mgr.runManager()
-
if __name__ == "__main__":
main()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type1/ModuleName.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type1/ModuleName.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type1/ModuleName.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,7 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import TestIDL_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from TestIDL_idl_example import *
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/test.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/test.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/test.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,7 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
@@ -240,13 +241,10 @@
manager.registerFactory(profile,
test,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
testInit(manager)
-
# Create a component
comp = manager.createComponent("test")
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type3/test.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type3/test.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type3/test.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -12,6 +12,7 @@
# Import RTM module
import RTC
import OpenRTM_aist
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -1,33 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
\file foo.py
\brief ModuleDescription
\date $Date$
-
-
"""
import sys
import time
sys.path.append(".")
-
# Import RTM module
import RTC
import OpenRTM_aist
-
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
-
# </rtc-template>
-
# Import Service stub modules
# <rtc-template block="consumer_import">
# </rtc-template>
-
-
# This module's spesification
# <rtc-template block="module_spec">
foo_spec = ["implementation_id", "foo",
@@ -42,7 +34,6 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
-
class foo(OpenRTM_aist.DataFlowComponentBase):
"""
@@ -56,24 +47,17 @@
\param manager Maneger Object
"""
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
-
"""
"""
self._sv_namePort = OpenRTM_aist.CorbaPort("sv_name")
-
"""
"""
self._if_name = MyService_i()
-
-
# initialize of configuration-data.
# <rtc-template block="init_conf_param">
# </rtc-template>
-
-
def onInitialize(self):
"""
@@ -252,29 +236,19 @@
#
# return RTC.RTC_OK
-
-
-
def fooInit(manager):
profile = OpenRTM_aist.Properties(defaults_str=foo_spec)
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
-
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
mgr.activateManager()
mgr.runManager()
-
if __name__ == "__main__":
main()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -1,34 +1,27 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
\file foo.py
\brief ModuleDescription
\date $Date$
-
-
"""
import sys
import time
sys.path.append(".")
-
# Import RTM module
import RTC
import OpenRTM_aist
-
+import MyService_idl
+import DAQService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
from MyService_idl_example import *
from DAQService_idl_example import *
-
# </rtc-template>
-
# Import Service stub modules
# <rtc-template block="consumer_import">
# </rtc-template>
-
-
# This module's spesification
# <rtc-template block="module_spec">
foo_spec = ["implementation_id", "foo",
@@ -43,7 +36,6 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
-
class foo(OpenRTM_aist.DataFlowComponentBase):
"""
@@ -57,12 +49,9 @@
\param manager Maneger Object
"""
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
-
"""
"""
self._sv_namePort = OpenRTM_aist.CorbaPort("sv_name")
-
"""
"""
self._if_name1 = MyService_i()
@@ -70,14 +59,10 @@
"""
self._if_name2 = DAQService_i()
-
-
# initialize of configuration-data.
# <rtc-template block="init_conf_param">
# </rtc-template>
-
-
def onInitialize(self):
"""
@@ -257,29 +242,19 @@
#
# return RTC.RTC_OK
-
-
-
def fooInit(manager):
profile = OpenRTM_aist.Properties(defaults_str=foo_spec)
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
-
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
mgr.activateManager()
mgr.runManager()
-
if __name__ == "__main__":
main()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -1,34 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
\file foo.py
\brief ModuleDescription
\date $Date$
-
-
"""
import sys
import time
sys.path.append(".")
-
# Import RTM module
import RTC
import OpenRTM_aist
-
+import MyService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
-
# </rtc-template>
-
# Import Service stub modules
# <rtc-template block="consumer_import">
import SimpleService, SimpleService__POA
-
# </rtc-template>
-
-
# This module's spesification
# <rtc-template block="module_spec">
foo_spec = ["implementation_id", "foo",
@@ -43,7 +34,6 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
-
class foo(OpenRTM_aist.DataFlowComponentBase):
"""
@@ -57,24 +47,17 @@
\param manager Maneger Object
"""
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
-
"""
"""
self._sv_namePort = OpenRTM_aist.CorbaPort("sv_name")
-
-
"""
"""
self._if_name = OpenRTM_aist.CorbaConsumer(interfaceType=SimpleService.MyService)
-
# initialize of configuration-data.
# <rtc-template block="init_conf_param">
# </rtc-template>
-
-
def onInitialize(self):
"""
@@ -253,29 +236,19 @@
#
# return RTC.RTC_OK
-
-
-
def fooInit(manager):
profile = OpenRTM_aist.Properties(defaults_str=foo_spec)
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
-
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
mgr.activateManager()
mgr.runManager()
-
if __name__ == "__main__":
main()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC2/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC2/foo.py 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC2/foo.py 2012-09-04 13:15:03 UTC (rev 349)
@@ -1,35 +1,27 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
\file foo.py
\brief ModuleDescription
\date $Date$
-
-
"""
import sys
import time
sys.path.append(".")
-
# Import RTM module
import RTC
import OpenRTM_aist
-
+import MyService_idl
+import DAQService_idl
# Import Service implementation class
# <rtc-template block="service_impl">
-
# </rtc-template>
-
# Import Service stub modules
# <rtc-template block="consumer_import">
import SimpleService, SimpleService__POA
import _GlobalIDL, _GlobalIDL__POA
-
# </rtc-template>
-
-
# This module's spesification
# <rtc-template block="module_spec">
foo_spec = ["implementation_id", "foo",
@@ -44,7 +36,6 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
-
class foo(OpenRTM_aist.DataFlowComponentBase):
"""
@@ -58,27 +49,20 @@
\param manager Maneger Object
"""
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
-
-
"""
"""
self._sv_namePort = OpenRTM_aist.CorbaPort("sv_name")
-
-
"""
"""
self._if_name1 = OpenRTM_aist.CorbaConsumer(interfaceType=SimpleService.MyService)
"""
"""
self._if_name2 = OpenRTM_aist.CorbaConsumer(interfaceType=_GlobalIDL.DAQService)
-
# initialize of configuration-data.
# <rtc-template block="init_conf_param">
# </rtc-template>
-
-
def onInitialize(self):
"""
@@ -258,29 +242,19 @@
#
# return RTC.RTC_OK
-
-
-
def fooInit(manager):
profile = OpenRTM_aist.Properties(defaults_str=foo_spec)
manager.registerFactory(profile,
foo,
OpenRTM_aist.Delete)
-
def MyModuleInit(manager):
fooInit(manager)
-
# Create a component
comp = manager.createComponent("foo")
-
-
-
def main():
mgr = OpenRTM_aist.Manager.init(sys.argv)
mgr.setModuleInitProc(MyModuleInit)
mgr.activateManager()
mgr.runManager()
-
if __name__ == "__main__":
main()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/Py_RTC.py.vsl
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/Py_RTC.py.vsl 2012-09-02 04:33:43 UTC (rev 348)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/src/jp/go/aist/rtm/rtcbuilder/python/template/python/Py_RTC.py.vsl 2012-09-04 13:15:03 UTC (rev 349)
@@ -25,6 +25,9 @@
import RTC
import OpenRTM_aist
+#foreach($IdlFile in ${allIdlFileParam})import ${tmpltHelper.getFilenameNoExt(${IdlFile.IdlFile})}_idl
+#end
+
# Import Service implementation class
# <rtc-template block="service_impl">
#foreach($providerIdlFile in ${rtcParam.providerIdlPathes})
More information about the openrtm-commit
mailing list