[openrtm-commit:01829] r574 - in trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python: resource/100/ConfigSet/ConfigSetType resource/100/ConfigSet/configset1 resource/100/ConfigSet/configset2 resource/100/ConfigSet/configset3 resource/100/ConfigSet/configset4 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/aist/AIST6 resource/100/base/inport1 resource/100/base/inport2 resource/100/base/name resource/100/base/name2 resource/100/base/outport1 resource/100/base/outport2 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/impl/all resource/100/impl/execute resource/100/impl/finalize resource/100/impl/initialize resource/100/module/serviceM resource/100/module/serviceM2 resource/100/module/serviceMC resource/100/module/serviceMC2 test/jp/go/aist/rtm/rtcbuilder/python/_test/_100
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 3月 7日 (月) 20:12:55 JST
Author: ga
Date: 2016-03-07 20:12:55 +0900 (Mon, 07 Mar 2016)
New Revision: 574
Modified:
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/ConfigSetType/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset1/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset2/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset3/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset4/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/author/MyService_idl_example.py
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/MyService_idl_example.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/MyService_idl_example.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/MyService_idl_example.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/MyService_idl_example.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/MyService_idl_example.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/MyService_idl_example.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/aist/AIST6/test.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/inport1/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/inport2/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/name/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/name2/Foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/outport1/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/outport2/foo.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/MyService_idl_example.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/MyServiceChildMulti_idl_example.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/MyServiceChildWithType_idl_example.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/MyServiceChildMulti_idl_example.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/inherit1/idlcompile.bat
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/idlcompile.sh
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/MyServiceChildMulti_idl_example.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/MyServiceChildWithType_idl_example.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/type1/TestIDL_idl_example.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/MyService_idl_example.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/MyService_idl_example.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/impl/all/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/execute/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/finalize/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/initialize/foo.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM/MyService_idl_example.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/DAQService_idl_example.py
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/MyService_idl_example.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/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/AISTTest.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/BaseTest.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/BuildTest.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/ConfigSetTest.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyDocTest.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyIDLInheritTest.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyIDLType.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyImplTest.java
trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyModuleTest.java
Log:
Modified unit test results
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/ConfigSetType/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/ConfigSetType/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/ConfigSetType/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -37,20 +37,34 @@
"conf.default.double_param", "4.11",
"conf.default.str_param0", "hoge",
"conf.default.str_param1", "dara",
+ "conf.default.__short_param", "short",
+ "conf.default.__int_param", "int",
+ "conf.default.__long_param", "long",
+ "conf.default.__float_param", "float",
+ "conf.default.__double_param", "double",
+ "conf.default.__str_param0", "string",
+ "conf.default.__str_param1", "string",
+ "conf.__type__.short_param", "short",
+ "conf.__type__.int_param", "int",
+ "conf.__type__.long_param", "long",
+ "conf.__type__.float_param", "float",
+ "conf.__type__.double_param", "double",
+ "conf.__type__.str_param0", "string",
+ "conf.__type__.str_param1", "string",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -100,15 +114,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
self.bindParameter("short_param", self._short_param, "0")
self.bindParameter("int_param", self._int_param, "1")
@@ -130,156 +144,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset1/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset1/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset1/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -31,20 +31,22 @@
"language", "Python",
"lang_type", "SCRIPT",
"conf.default.int_param0", "0",
+ "conf.default.__int_param0", "int",
+ "conf.__type__.int_param0", "int",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -58,15 +60,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
self.bindParameter("int_param0", self._int_param0, "0")
@@ -82,156 +84,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
@@ -239,13 +241,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/ConfigSet/configset2/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset2/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset2/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -32,20 +32,24 @@
"lang_type", "SCRIPT",
"conf.default.int_param0", "0",
"conf.default.int_param1", "1",
+ "conf.default.__int_param0", "int",
+ "conf.default.__int_param1", "int",
+ "conf.__type__.int_param0", "int",
+ "conf.__type__.int_param1", "int",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -65,15 +69,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
self.bindParameter("int_param0", self._int_param0, "0")
self.bindParameter("int_param1", self._int_param1, "1")
@@ -90,156 +94,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
@@ -247,13 +251,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/ConfigSet/configset3/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset3/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset3/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -35,20 +35,30 @@
"conf.default.double_param0", "0.11",
"conf.default.str_param0", "hoge",
"conf.default.str_param1", "dara",
+ "conf.default.__int_param0", "int",
+ "conf.default.__int_param1", "int",
+ "conf.default.__double_param0", "double",
+ "conf.default.__str_param0", "String",
+ "conf.default.__str_param1", "String",
+ "conf.__type__.int_param0", "int",
+ "conf.__type__.int_param1", "int",
+ "conf.__type__.double_param0", "double",
+ "conf.__type__.str_param0", "String",
+ "conf.__type__.str_param1", "String",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -86,15 +96,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
self.bindParameter("int_param0", self._int_param0, "0")
self.bindParameter("int_param1", self._int_param1, "1")
@@ -114,156 +124,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
@@ -271,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/ConfigSet/configset4/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset4/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/ConfigSet/configset4/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -36,20 +36,32 @@
"conf.default.str_param0", "hoge",
"conf.default.str_param1", "dara",
"conf.default.vector_param0", "0.0,1.0,2.0,3.0",
+ "conf.default.__int_param0", "int",
+ "conf.default.__int_param1", "int",
+ "conf.default.__double_param0", "double",
+ "conf.default.__str_param0", "String",
+ "conf.default.__str_param1", "String",
+ "conf.default.__vector_param0", "double",
+ "conf.__type__.int_param0", "int",
+ "conf.__type__.int_param1", "int",
+ "conf.__type__.double_param0", "double",
+ "conf.__type__.str_param0", "String",
+ "conf.__type__.str_param1", "String",
+ "conf.__type__.vector_param0", "double",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -93,15 +105,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
self.bindParameter("int_param0", self._int_param0, "0")
self.bindParameter("int_param1", self._int_param1, "1")
@@ -122,156 +134,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
@@ -279,13 +291,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/author/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/author/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/author/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,48 +1,36 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
-
- \author Noriaki Ando <n-ando at aist.go.jp>
-
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
+ @author Noriaki Ando <n-ando at aist.go.jp>
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# void setGain(in float gain)
def setGain(self, gain):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float getGain()
def getGain(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -51,22 +39,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/author/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,10 +2,10 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
- \author Noriaki Ando <n-ando at aist.go.jp>
+ @file foo.py
+ @brief MDesc
+ @date $Date$
+ @author Noriaki Ando <n-ando at aist.go.jp>
"""
import sys
import time
@@ -37,32 +37,36 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedLong(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_OutP1 = RTC.TimedLong(*OutP1_arg)
"""
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
- self._d_OutP2 = RTC.TimedFloat(RTC.Time(0,0),0)
+ OutP2_arg = [None] * ((len(RTC._d_TimedFloat) - 4) / 2)
+ self._d_OutP2 = RTC.TimedFloat(*OutP2_arg)
"""
"""
self._OutP2Out = OpenRTM_aist.OutPort("OutP2", self._d_OutP2)
@@ -84,15 +88,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -115,156 +119,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/authorLong/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/authorLong/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/authorLong/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,10 +2,10 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
- \author Noriaki Ando
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
+ @author Noriaki Ando
<n-ando at aist.go.jp>3456789412345678951234567896123456789712345678981234
5
"""
@@ -14,12 +14,12 @@
import _GlobalIDL, _GlobalIDL__POA
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/authorLong/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,10 +2,10 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
- \author Noriaki Ando
+ @file foo.py
+ @brief MDesc
+ @date $Date$
+ @author Noriaki Ando
<n-ando at aist.go.jp>3456789412345678951234567896123456789712345678981234
5
"""
@@ -39,32 +39,36 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedLong(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_OutP1 = RTC.TimedLong(*OutP1_arg)
"""
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
- self._d_OutP2 = RTC.TimedFloat(RTC.Time(0,0),0)
+ OutP2_arg = [None] * ((len(RTC._d_TimedFloat) - 4) / 2)
+ self._d_OutP2 = RTC.TimedFloat(*OutP2_arg)
"""
"""
self._OutP2Out = OpenRTM_aist.OutPort("OutP2", self._d_OutP2)
@@ -86,15 +90,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -117,156 +121,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/full/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/full/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/full/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,50 +1,37 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
-
- \author Noriaki Ando <n-ando at aist.go.jp>
-
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
+ @author Noriaki Ando <n-ando at aist.go.jp>
Copyright (C) 2006-2008 ライセンス
-
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# void setGain(in float gain)
def setGain(self, gain):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float getGain()
def getGain(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -53,22 +40,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/full/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,10 +2,10 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
- \author Noriaki Ando <n-ando at aist.go.jp>
+ @file foo.py
+ @brief MDesc
+ @date $Date$
+ @author Noriaki Ando <n-ando at aist.go.jp>
Copyright (C) 2006-2008 ライセンス
"""
import sys
@@ -41,30 +41,41 @@
"conf.default.double_param0", "0.11",
"conf.default.str_param0", "hoge",
"conf.default.str_param1", "dara",
+ "conf.default.__int_param0", "int",
+ "conf.default.__int_param1", "int",
+ "conf.default.__double_param0", "double",
+ "conf.default.__str_param0", "String",
+ "conf.default.__str_param1", "String",
+ "conf.__type__.int_param0", "int",
+ "conf.__type__.int_param1", "int",
+ "conf.__type__.double_param0", "double",
+ "conf.__type__.str_param0", "String",
+ "conf.__type__.str_param1", "String",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+# 本コンポーネントの概要説明
+#
+# 本コンポーネントの入出力
+#
+# 本コンポーネントのアルゴリズムなど
+#
+# 参考文献の情報
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- 本コンポーネントの概要説明
-
- 本コンポーネントの入出力
-
- 本コンポーネントのアルゴリズムなど
-
- 参考文献の情報
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
InPort1の概要
- Type: InPort1のデータの型
@@ -75,7 +86,8 @@
- Operation Cycle: InPort1のデータの処理周期
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
InPort2の概要
- Type: InPort2のデータの型
@@ -86,7 +98,8 @@
- Operation Cycle: InPort2のデータの処理周期
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedLong(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_OutP1 = RTC.TimedLong(*OutP1_arg)
"""
OutPort1の概要
- Type: OutPort1のデータの型
@@ -97,7 +110,8 @@
- Operation Cycle: OutPort1のデータの処理周期
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
- self._d_OutP2 = RTC.TimedFloat(RTC.Time(0,0),0)
+ OutP2_arg = [None] * ((len(RTC._d_TimedFloat) - 4) / 2)
+ self._d_OutP2 = RTC.TimedFloat(*OutP2_arg)
"""
OutPort2の概要
- Type: OutPort2のデータの型
@@ -187,18 +201,18 @@
# </rtc-template>
+ ##
+ # on_initialize概要説明
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ # @pre on_initialize事前条件
+ # @post on_initialize事後条件
+ #
def onInitialize(self):
- """
- on_initialize概要説明
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- \pre on_initialize事前条件
- \post on_initialize事後条件
- """
# Bind variables and configuration variable
self.bindParameter("int_param0", self._int_param0, "0")
self.bindParameter("int_param1", self._int_param1, "1")
@@ -226,189 +240,189 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
- # on_finalize概要説明
+ # ##
+ # # on_finalize概要説明
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # # @pre on_finalize事前条件
+ # # @post on_finalize事後条件
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # \pre on_finalize事前条件
- # \post on_finalize事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_startup概要説明
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_startup事前条件
+ # # @post on_startup事後条件
+ # #
#def onStartup(self, ec_id):
- # """
- # on_startup概要説明
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_startup事前条件
- # \post on_startup事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_shutdown概要説明
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_shutdown事前条件
+ # # @post on_shutdown事後条件
+ # #
#def onShutdown(self, ec_id):
- # """
- # on_shutdown概要説明
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_shutdown事前条件
- # \post on_shutdown事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_activated概要説明
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_activated事前条件
+ # # @post on_activated事後条件
+ # #
#def onActivated(self, ec_id):
- # """
- # on_activated概要説明
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_activated事前条件
- # \post on_activated事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_deactivated概要説明
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_deactivated事前条件
+ # # @post on_deactivated事後条件
+ # #
#def onDeactivated(self, ec_id):
- # """
- # on_deactivated概要説明
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_deactivated事前条件
- # \post on_deactivated事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_execute概要説明
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_execute事前条件
+ # # @post on_execute事後条件
+ # #
#def onExecute(self, ec_id):
- # """
- # on_execute概要説明
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_execute事前条件
- # \post on_execute事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_aborting概要説明
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_aborting事前条件
+ # # @post on_aborting事後条件
+ # #
#def onAborting(self, ec_id):
- # """
- # on_aborting概要説明
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_aborting事前条件
- # \post on_aborting事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_error概要説明
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_error事前条件
+ # # @post on_error事後条件
+ # #
#def onError(self, ec_id):
- # """
- # on_error概要説明
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_error事前条件
- # \post on_error事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_reset概要説明
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_reset事前条件
+ # # @post on_reset事後条件
+ # #
#def onReset(self, ec_id):
- # """
- # on_reset概要説明
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_reset事前条件
- # \post on_reset事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_state_update概要説明
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_state_update事前条件
+ # # @post on_state_update事後条件
+ # #
#def onStateUpdate(self, ec_id):
- # """
- # on_state_update概要説明
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_state_update事前条件
- # \post on_state_update事後条件
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # # on_rate_changed概要説明
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # # @pre on_rate_changed事前条件
+ # # @post on_rate_changed事後条件
+ # #
#def onRateChanged(self, ec_id):
- # """
- # on_rate_changed概要説明
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # \pre on_rate_changed事前条件
- # \post on_rate_changed事後条件
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/refer/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/refer/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/refer/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,50 +1,37 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
-
- \author Noriaki Ando <n-ando at aist.go.jp>
-
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
+ @author Noriaki Ando <n-ando at aist.go.jp>
Copyright (C) 2006-2008 ライセンス
-
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# void setGain(in float gain)
def setGain(self, gain):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float getGain()
def getGain(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -53,22 +40,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/Doc/refer/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,10 +2,10 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
- \author Noriaki Ando <n-ando at aist.go.jp>
+ @file foo.py
+ @brief MDesc
+ @date $Date$
+ @author Noriaki Ando <n-ando at aist.go.jp>
Copyright (C) 2006-2008 ライセンス
"""
import sys
@@ -38,40 +38,44 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+# 本コンポーネントの概要説明
+#
+# 本コンポーネントの入出力
+#
+# 本コンポーネントのアルゴリズムなど
+#
+# 参考文献の情報
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- 本コンポーネントの概要説明
-
- 本コンポーネントの入出力
-
- 本コンポーネントのアルゴリズムなど
-
- 参考文献の情報
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedLong(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_OutP1 = RTC.TimedLong(*OutP1_arg)
"""
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
- self._d_OutP2 = RTC.TimedFloat(RTC.Time(0,0),0)
+ OutP2_arg = [None] * ((len(RTC._d_TimedFloat) - 4) / 2)
+ self._d_OutP2 = RTC.TimedFloat(*OutP2_arg)
"""
"""
self._OutP2Out = OpenRTM_aist.OutPort("OutP2", self._d_OutP2)
@@ -93,15 +97,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -124,156 +128,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST1/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST1/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST1/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,65 +1,50 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
-
-
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# string echo(in string msg)
def echo(self, msg):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# EchoList get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# void set_value(in float value)
def set_value(self, value):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float get_value()
def get_value(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -68,22 +53,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST1/test.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file test.py
- \brief test component
- \date $Date$
+ @file test.py
+ @brief test component
+ @date $Date$
"""
import sys
import time
@@ -34,18 +34,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class test
+# @brief test component
+#
+#
class test(OpenRTM_aist.DataFlowComponentBase):
- """
- \class test
- \brief test component
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -59,15 +59,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -84,156 +84,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def testInit(manager):
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST2/test.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file test.py
- \brief test component
- \date $Date$
+ @file test.py
+ @brief test component
+ @date $Date$
"""
import sys
import time
@@ -34,24 +34,26 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class test
+# @brief test component
+#
+#
class test(OpenRTM_aist.DataFlowComponentBase):
- """
- \class test
- \brief test component
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_in = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ in_arg = [None] * ((len(RTC._d_TimedFloatSeq) - 4) / 2)
+ self._d_in = RTC.TimedFloatSeq(*in_arg)
"""
"""
self._inIn = OpenRTM_aist.InPort("in", self._d_in)
- self._d_out = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ out_arg = [None] * ((len(RTC._d_TimedFloatSeq) - 4) / 2)
+ self._d_out = RTC.TimedFloatSeq(*out_arg)
"""
"""
self._outOut = OpenRTM_aist.OutPort("out", self._d_out)
@@ -67,15 +69,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -94,156 +96,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def testInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST3/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST3/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST3/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,65 +1,50 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
-
-
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# string echo(in string msg)
def echo(self, msg):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# EchoList get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# void set_value(in float value)
def set_value(self, value):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float get_value()
def get_value(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -68,22 +53,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST3/test.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file test.py
- \brief test component
- \date $Date$
+ @file test.py
+ @brief test component
+ @date $Date$
"""
import sys
import time
@@ -35,24 +35,26 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class test
+# @brief test component
+#
+#
class test(OpenRTM_aist.DataFlowComponentBase):
- """
- \class test
- \brief test component
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_in = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ in_arg = [None] * ((len(RTC._d_TimedFloatSeq) - 4) / 2)
+ self._d_in = RTC.TimedFloatSeq(*in_arg)
"""
"""
self._inIn = OpenRTM_aist.InPort("in", self._d_in)
- self._d_out = RTC.TimedFloatSeq(RTC.Time(0,0),[])
+ out_arg = [None] * ((len(RTC._d_TimedFloatSeq) - 4) / 2)
+ self._d_out = RTC.TimedFloatSeq(*out_arg)
"""
"""
self._outOut = OpenRTM_aist.OutPort("out", self._d_out)
@@ -74,15 +76,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -103,156 +105,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def testInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST4/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST4/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST4/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,65 +1,50 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
-
-
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# string echo(in string msg)
def echo(self, msg):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# EchoList get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# void set_value(in float value)
def set_value(self, value):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float get_value()
def get_value(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -68,22 +53,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST4/test.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file test.py
- \brief test component
- \date $Date$
+ @file test.py
+ @brief test component
+ @date $Date$
"""
import sys
import time
@@ -34,18 +34,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class test
+# @brief test component
+#
+#
class test(OpenRTM_aist.DataFlowComponentBase):
- """
- \class test
- \brief test component
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -65,15 +65,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -92,156 +92,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def testInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST6/test.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST6/test.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/aist/AIST6/test.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file test.py
- \brief test component
- \date $Date$
+ @file test.py
+ @brief test component
+ @date $Date$
"""
import sys
import time
@@ -32,18 +32,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class test
+# @brief test component
+#
+#
class test(OpenRTM_aist.DataFlowComponentBase):
- """
- \class test
- \brief test component
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -51,15 +51,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -74,156 +74,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def testInit(manager):
@@ -231,13 +231,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/inport1/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/inport1/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/inport1/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -45,7 +45,8 @@
#
def __init__(self, manager):
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
@@ -87,7 +88,7 @@
# # @return RTC::ReturnCode_t
#
# #
- #def onFinalize(self, ec_id):
+ #def onFinalize(self):
#
# return RTC.RTC_OK
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/inport2/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/inport2/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/inport2/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -45,11 +45,13 @@
#
def __init__(self, manager):
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
@@ -92,7 +94,7 @@
# # @return RTC::ReturnCode_t
#
# #
- #def onFinalize(self, ec_id):
+ #def onFinalize(self):
#
# return RTC.RTC_OK
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/name/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/name/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/name/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -82,7 +82,7 @@
# # @return RTC::ReturnCode_t
#
# #
- #def onFinalize(self, ec_id):
+ #def onFinalize(self):
#
# return RTC.RTC_OK
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/name2/Foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/name2/Foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/name2/Foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -82,7 +82,7 @@
# # @return RTC::ReturnCode_t
#
# #
- #def onFinalize(self, ec_id):
+ #def onFinalize(self):
#
# return RTC.RTC_OK
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/outport1/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/outport1/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/outport1/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -45,15 +45,18 @@
#
def __init__(self, manager):
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedLong(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_OutP1 = RTC.TimedLong(*OutP1_arg)
"""
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
@@ -97,7 +100,7 @@
# # @return RTC::ReturnCode_t
#
# #
- #def onFinalize(self, ec_id):
+ #def onFinalize(self):
#
# return RTC.RTC_OK
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/outport2/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/outport2/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/outport2/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -45,19 +45,23 @@
#
def __init__(self, manager):
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedLong(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_OutP1 = RTC.TimedLong(*OutP1_arg)
"""
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
- self._d_OutP2 = RTC.TimedFloat(RTC.Time(0,0),0)
+ OutP2_arg = [None] * ((len(RTC._d_TimedFloat) - 4) / 2)
+ self._d_OutP2 = RTC.TimedFloat(*OutP2_arg)
"""
"""
self._OutP2Out = OpenRTM_aist.OutPort("OutP2", self._d_OutP2)
@@ -102,7 +106,7 @@
# # @return RTC::ReturnCode_t
#
# #
- #def onFinalize(self, ec_id):
+ #def onFinalize(self):
#
# return RTC.RTC_OK
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service1/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -47,19 +47,23 @@
#
def __init__(self, manager):
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedLong(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_OutP1 = RTC.TimedLong(*OutP1_arg)
"""
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
- self._d_OutP2 = RTC.TimedFloat(RTC.Time(0,0),0)
+ OutP2_arg = [None] * ((len(RTC._d_TimedFloat) - 4) / 2)
+ self._d_OutP2 = RTC.TimedFloat(*OutP2_arg)
"""
"""
self._OutP2Out = OpenRTM_aist.OutPort("OutP2", self._d_OutP2)
@@ -112,7 +116,7 @@
# # @return RTC::ReturnCode_t
#
# #
- #def onFinalize(self, ec_id):
+ #def onFinalize(self):
#
# return RTC.RTC_OK
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/base/service2/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -49,19 +49,23 @@
#
def __init__(self, manager):
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedLong(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_OutP1 = RTC.TimedLong(*OutP1_arg)
"""
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
- self._d_OutP2 = RTC.TimedFloat(RTC.Time(0,0),0)
+ OutP2_arg = [None] * ((len(RTC._d_TimedFloat) - 4) / 2)
+ self._d_OutP2 = RTC.TimedFloat(*OutP2_arg)
"""
"""
self._OutP2Out = OpenRTM_aist.OutPort("OutP2", self._d_OutP2)
@@ -122,7 +126,7 @@
# # @return RTC::ReturnCode_t
#
# #
- #def onFinalize(self, ec_id):
+ #def onFinalize(self):
#
# return RTC.RTC_OK
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake1/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake1/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake1/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,21 +2,21 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
"""
import omniORB
from omniORB import CORBA, PortableServer
import _GlobalIDL, _GlobalIDL__POA
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake1/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -36,32 +36,36 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
- self._d_InP1 = RTC.TimedShort(RTC.Time(0,0),0)
+ InP1_arg = [None] * ((len(RTC._d_TimedShort) - 4) / 2)
+ self._d_InP1 = RTC.TimedShort(*InP1_arg)
"""
"""
self._InP1In = OpenRTM_aist.InPort("InP1", self._d_InP1)
- self._d_InP2 = RTC.TimedLong(RTC.Time(0,0),0)
+ InP2_arg = [None] * ((len(RTC._d_TimedLong) - 4) / 2)
+ self._d_InP2 = RTC.TimedLong(*InP2_arg)
"""
"""
self._InP2In = OpenRTM_aist.InPort("InP2", self._d_InP2)
- self._d_OutP1 = RTC.TimedInt(RTC.Time(0,0),0)
+ OutP1_arg = [None] * ((len(RTC._d_TimedInt) - 4) / 2)
+ self._d_OutP1 = RTC.TimedInt(*OutP1_arg)
"""
"""
self._OutP1Out = OpenRTM_aist.OutPort("OutP1", self._d_OutP1)
- self._d_OutP2 = RTC.TimedFloat(RTC.Time(0,0),0)
+ OutP2_arg = [None] * ((len(RTC._d_TimedFloat) - 4) / 2)
+ self._d_OutP2 = RTC.TimedFloat(*OutP2_arg)
"""
"""
self._OutP2Out = OpenRTM_aist.OutPort("OutP2", self._d_OutP2)
@@ -83,15 +87,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -114,156 +118,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/MyServiceChildMulti_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/MyServiceChildMulti_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/MyServiceChildMulti_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,21 +2,21 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file MyServiceChildMulti_idl_examplefile.py
- \brief Python example implementations generated from MyServiceChildMulti.idl
- \date $Date$
+ @file MyServiceChildMulti_idl_examplefile.py
+ @brief Python example implementations generated from MyServiceChildMulti.idl
+ @date $Date$
"""
import omniORB
from omniORB import CORBA, PortableServer
import _GlobalIDL, _GlobalIDL__POA
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
@@ -32,12 +32,12 @@
# Must return: result
class MyService2_i (_GlobalIDL__POA.MyService2):
"""
- \class MyService2_i
+ @class MyService2_i
Example class implementing IDL interface MyService2
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
@@ -53,12 +53,12 @@
# Must return: result
class MyServiceChild_i (_GlobalIDL__POA.MyServiceChild):
"""
- \class MyServiceChild_i
+ @class MyServiceChild_i
Example class implementing IDL interface MyServiceChild
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/MyServiceChildWithType_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/MyServiceChildWithType_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/MyServiceChildWithType_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,21 +2,21 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file MyServiceChildWithType_idl_examplefile.py
- \brief Python example implementations generated from MyServiceChildWithType.idl
- \date $Date$
+ @file MyServiceChildWithType_idl_examplefile.py
+ @brief Python example implementations generated from MyServiceChildWithType.idl
+ @date $Date$
"""
import omniORB
from omniORB import CORBA, PortableServer
import _GlobalIDL, _GlobalIDL__POA
class MyServiceWithType_i (_GlobalIDL__POA.MyServiceWithType):
"""
- \class MyServiceWithType_i
+ @class MyServiceWithType_i
Example class implementing IDL interface MyServiceWithType
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
@@ -32,12 +32,12 @@
# Must return: result
class MyServiceWithTypeChild_i (_GlobalIDL__POA.MyServiceWithTypeChild):
"""
- \class MyServiceWithTypeChild_i
+ @class MyServiceWithTypeChild_i
Example class implementing IDL interface MyServiceWithTypeChild
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/build/cmake2/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -37,18 +37,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -74,15 +74,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -103,156 +103,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/MyServiceChildMulti_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/MyServiceChildMulti_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/MyServiceChildMulti_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,125 +1,97 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyServiceChildMulti_idl_examplefile.py
- \brief Python example implementations generated from MyServiceChildMulti.idl
- \date $Date$
-
-
+ @file MyServiceChildMulti_idl_examplefile.py
+ @brief Python example implementations generated from MyServiceChildMulti.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# EchoList1 get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList1 get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
-
class MyService2_i (_GlobalIDL__POA.MyService2):
"""
- \class MyService2_i
+ @class MyService2_i
Example class implementing IDL interface MyService2
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# void setGain(in float gain)
def setGain(self, gain):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float getGain()
def getGain(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
-
class MyServiceChild_i (_GlobalIDL__POA.MyServiceChild):
"""
- \class MyServiceChild_i
+ @class MyServiceChild_i
Example class implementing IDL interface MyServiceChild
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# void setPos(in float pos)
def setPos(self, pos):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# EchoList1 getPos()
def getPos(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# EchoList1 get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList1 get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# void setGain(in float gain)
def setGain(self, gain):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float getGain()
def getGain(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -128,22 +100,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief test module
- \date $Date$
+ @file foo.py
+ @brief test module
+ @date $Date$
"""
import sys
import time
@@ -35,18 +35,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief test module
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief test module
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -66,15 +66,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -93,156 +93,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/idlcompile.bat
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/idlcompile.bat 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/idlcompile.bat 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,7 +2,7 @@
setlocal
for %%I in (python.exe) do if exist %%~$path:I set f=%%~$path:I
if exist %f% do (
- %f:python.exe=%omniidl.exe -bpython -I"%RTM_ROOT%rtm\idl" -I"D:\GlobalAssist\EclipseAISTRep\jp.go.aist.rtm.rtcbuilder.python\resource/100/idlinherit/inherit1" idl/MyServiceChildMulti.idl
+ %f:python.exe=%omniidl.exe -bpython -I"%RTM_ROOT%rtm\idl" -I"I:\GlobalAssist\EclipseAISTRep45\jp.go.aist.rtm.rtcbuilder.python\resource/100/idlinherit/inherit1" idl/MyServiceChildMulti.idl
) else do (
echo "python.exe" can not be found.
echo Please modify PATH environmental variable for python command.
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/idlcompile.sh
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/idlcompile.sh 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit1/idlcompile.sh 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,2 +1,2 @@
#!/bin/sh
-omniidl -bpython -I"%RTM_ROOT%rtm\idl" -I"D:\GlobalAssist\EclipseAISTRep\jp.go.aist.rtm.rtcbuilder.python\resource/100/idlinherit/inherit1" idl/MyServiceChildMulti.idl
+omniidl -bpython -I"%RTM_ROOT%rtm\idl" -I"I:\GlobalAssist\EclipseAISTRep45\jp.go.aist.rtm.rtcbuilder.python\resource/100/idlinherit/inherit1" idl/MyServiceChildMulti.idl
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/MyServiceChildMulti_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/MyServiceChildMulti_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/MyServiceChildMulti_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,125 +1,97 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyServiceChildMulti_idl_examplefile.py
- \brief Python example implementations generated from MyServiceChildMulti.idl
- \date $Date$
-
-
+ @file MyServiceChildMulti_idl_examplefile.py
+ @brief Python example implementations generated from MyServiceChildMulti.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# EchoList1 get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList1 get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
-
class MyService2_i (_GlobalIDL__POA.MyService2):
"""
- \class MyService2_i
+ @class MyService2_i
Example class implementing IDL interface MyService2
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# void setGain(in float gain)
def setGain(self, gain):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float getGain()
def getGain(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
-
class MyServiceChild_i (_GlobalIDL__POA.MyServiceChild):
"""
- \class MyServiceChild_i
+ @class MyServiceChild_i
Example class implementing IDL interface MyServiceChild
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# void setPos(in float pos)
def setPos(self, pos):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# EchoList1 getPos()
def getPos(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# EchoList1 get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList1 get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# void setGain(in float gain)
def setGain(self, gain):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float getGain()
def getGain(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -128,22 +100,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/MyServiceChildWithType_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/MyServiceChildWithType_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/MyServiceChildWithType_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,86 +1,66 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyServiceChildWithType_idl_examplefile.py
- \brief Python example implementations generated from MyServiceChildWithType.idl
- \date $Date$
-
-
+ @file MyServiceChildWithType_idl_examplefile.py
+ @brief Python example implementations generated from MyServiceChildWithType.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyServiceWithType_i (_GlobalIDL__POA.MyServiceWithType):
"""
- \class MyServiceWithType_i
+ @class MyServiceWithType_i
Example class implementing IDL interface MyServiceWithType
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# EchoList get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
-
class MyServiceWithTypeChild_i (_GlobalIDL__POA.MyServiceWithTypeChild):
"""
- \class MyServiceWithTypeChild_i
+ @class MyServiceWithTypeChild_i
Example class implementing IDL interface MyServiceWithTypeChild
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# void setPos(in float pos)
def setPos(self, pos):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# EchoList getPos()
def getPos(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# EchoList get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -89,22 +69,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyServiceWithType_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idlinherit/inherit2/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief test module
- \date $Date$
+ @file foo.py
+ @brief test module
+ @date $Date$
"""
import sys
import time
@@ -37,18 +37,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief test module
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief test module
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -74,15 +74,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -103,156 +103,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type1/ModuleName.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file ModuleName.py
- \brief ModuleDescription
- \date $Date$
+ @file ModuleName.py
+ @brief ModuleDescription
+ @date $Date$
"""
import sys
import time
@@ -34,18 +34,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class ModuleName
+# @brief ModuleDescription
+#
+#
class ModuleName(OpenRTM_aist.DataFlowComponentBase):
- """
- \class ModuleName
- \brief ModuleDescription
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -59,15 +59,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -84,156 +84,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def ModuleNameInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type1/TestIDL_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type1/TestIDL_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type1/TestIDL_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,124 +1,100 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file TestIDL_idl_examplefile.py
- \brief Python example implementations generated from TestIDL.idl
- \date $Date$
-
-
+ @file TestIDL_idl_examplefile.py
+ @brief Python example implementations generated from TestIDL.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
import _GlobalIDL, _GlobalIDL__POA
-
-
class ComFk_i (_GlobalIDL__POA.ComFk):
"""
- \class ComFk_i
+ @class ComFk_i
Example class implementing IDL interface ComFk
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# ValueList set_value(in ValueList frm, out ValueList frmo, inout ValueList frmio)
def set_value(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
- # string set_string(in string frm, out string frmo, inout string frmio)
+ # StringList set_string(in StringList frm, out StringList frmo, inout StringList frmio)
def set_string(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# LongArray set_longArray(in LongArray frm, out LongArray frmo, inout LongArray frmio)
def set_longArray(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# ValueListArray set_longArrayv(in ValueListArray frm, out ValueListArray frmo, inout ValueListArray frmio)
def set_longArrayv(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# color set_color(in color frm, out color frmo, inout color frmio)
def set_color(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame0 set_tool0(in Frame0 frm, out Frame0 frmo, inout Frame0 frmio)
def set_tool0(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame1 set_tool1(in Frame1 frm, out Frame1 frmo, inout Frame1 frmio)
def set_tool1(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame2 set_tool2(in Frame2 frm, out Frame2 frmo, inout Frame2 frmio)
def set_tool2(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame3 set_tool3(in Frame3 frm, out Frame3 frmo, inout Frame3 frmio)
def set_tool3(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame4 set_tool4(in Frame4 frm, out Frame4 frmo, inout Frame4 frmio)
def set_tool4(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame5 set_tool5(in Frame5 frm, out Frame5 frmo, inout Frame5 frmio)
def set_tool5(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame1List set_toolSeq1(in Frame1List frm, out Frame1List frmo, inout Frame1List frmio)
def set_toolSeq1(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame2List set_toolSeq2(in Frame2List frm, out Frame2List frmo, inout Frame2List frmio)
def set_toolSeq2(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame1Array set_toolArray1(in Frame1Array frm, out Frame1Array frmo, inout Frame1Array frmio)
def set_toolArray1(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
# Frame2Array set_toolArray2(in Frame2Array frm, out Frame2Array frmo, inout Frame2Array frmio)
def set_toolArray2(self, frm, frmio):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, frmo, frmio
-
-
if __name__ == "__main__":
import sys
@@ -127,22 +103,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = ComFk_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,65 +1,50 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
-
-
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# short echo01(in short ss, out short ss2, inout short ss3)
def echo01(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# void echo02(in short ss, out short ss2, inout short ss3)
def echo02(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: ss2, ss3
-
# short echo03(in short ss, in short ss2, in short ss3)
def echo03(self, ss, ss2, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# short echo04(out short ss, out short ss2, out short ss3)
def echo04(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss, ss2, ss3
-
# short echo05(inout short ss, inout short ss2, inout short ss3)
def echo05(self, ss, ss2, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss, ss2, ss3
-
-
if __name__ == "__main__":
import sys
@@ -68,22 +53,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type2/test.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file test.py
- \brief test component
- \date $Date$
+ @file test.py
+ @brief test component
+ @date $Date$
"""
import sys
import time
@@ -34,18 +34,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class test
+# @brief test component
+#
+#
class test(OpenRTM_aist.DataFlowComponentBase):
- """
- \class test
- \brief test component
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -59,15 +59,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -84,156 +84,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def testInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type3/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type3/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type3/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,125 +1,100 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
-
-
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
class MyService_i (_GlobalIDL__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface MyService
"""
-
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# short echo01(in short ss, out short ss2, inout short ss3)
def echo01(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# long echo02(in long ss, out long ss2, inout long ss3)
def echo02(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# long long echo03(in long long ss, out long long ss2, inout long long ss3)
def echo03(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# unsigned long echo04(in unsigned long ss, out unsigned long ss2, inout unsigned long ss3)
def echo04(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# unsigned long long echo05(in unsigned long long ss, out unsigned long long ss2, inout unsigned long long ss3)
def echo05(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# unsigned short echo06(in unsigned short ss, out unsigned short ss2, inout unsigned short ss3)
def echo06(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# float echo07(in float ss, out float ss2, inout float ss3)
def echo07(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# double echo08(in double ss, out double ss2, inout double ss3)
def echo08(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# char echo10(in char ss, out char ss2, inout char ss3)
def echo10(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# wchar echo11(in wchar ss, out wchar ss2, inout wchar ss3)
def echo11(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# octet echo12(in octet ss, out octet ss2, inout octet ss3)
def echo12(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# boolean echo13(in boolean ss, out boolean ss2, inout boolean ss3)
def echo13(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# string echo14(in string ss, out string ss2, inout string ss3)
def echo14(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# wstring echo15(in wstring ss, out wstring ss2, inout wstring ss3)
def echo15(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
# any echo16(in any ss, out any ss2, inout any ss3)
def echo16(self, ss, ss3):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result, ss2, ss3
-
-
if __name__ == "__main__":
import sys
@@ -128,22 +103,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/idltype/type3/test.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file test.py
- \brief test component
- \date $Date$
+ @file test.py
+ @brief test component
+ @date $Date$
"""
import sys
import time
@@ -34,18 +34,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class test
+# @brief test component
+#
+#
class test(OpenRTM_aist.DataFlowComponentBase):
- """
- \class test
- \brief test component
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -59,15 +59,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -84,156 +84,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def testInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/all/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/all/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/all/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -32,18 +32,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -51,15 +51,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -74,156 +74,156 @@
return RTC.RTC_OK
- def onFinalize(self, ec_id):
- """
+ ##
+ #
+ # The finalize action (on ALIVE->END transition)
+ # formaer rtc_exiting_entry()
+ #
+ # @return RTC::ReturnCode_t
- The finalize action (on ALIVE->END transition)
- formaer rtc_exiting_entry()
+ #
+ def onFinalize(self):
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The startup action when ExecutionContext startup
+ # former rtc_starting_entry()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onStartup(self, ec_id):
- """
- The startup action when ExecutionContext startup
- former rtc_starting_entry()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The shutdown action when ExecutionContext stop
+ # former rtc_stopping_entry()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onShutdown(self, ec_id):
- """
- The shutdown action when ExecutionContext stop
- former rtc_stopping_entry()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The activated action (Active state entry action)
+ # former rtc_active_entry()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onActivated(self, ec_id):
- """
- The activated action (Active state entry action)
- former rtc_active_entry()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The deactivated action (Active state exit action)
+ # former rtc_active_exit()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onDeactivated(self, ec_id):
- """
- The deactivated action (Active state exit action)
- former rtc_active_exit()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The execution action that is invoked periodically
+ # former rtc_active_do()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onExecute(self, ec_id):
- """
- The execution action that is invoked periodically
- former rtc_active_do()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The aborting action when main logic error occurred.
+ # former rtc_aborting_entry()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onAborting(self, ec_id):
- """
- The aborting action when main logic error occurred.
- former rtc_aborting_entry()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The error action in ERROR state
+ # former rtc_error_do()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onError(self, ec_id):
- """
- The error action in ERROR state
- former rtc_error_do()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The reset action that is invoked resetting
+ # This is same but different the former rtc_init_entry()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onReset(self, ec_id):
- """
- The reset action that is invoked resetting
- This is same but different the former rtc_init_entry()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The state update action that is invoked after onExecute() action
+ # no corresponding operation exists in OpenRTm-aist-0.2.0
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onStateUpdate(self, ec_id):
- """
- The state update action that is invoked after onExecute() action
- no corresponding operation exists in OpenRTm-aist-0.2.0
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The action that is invoked when execution context's rate is changed
+ # no corresponding operation exists in OpenRTm-aist-0.2.0
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onRateChanged(self, ec_id):
- """
- The action that is invoked when execution context's rate is changed
- no corresponding operation exists in OpenRTm-aist-0.2.0
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
def fooInit(manager):
@@ -231,13 +231,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/impl/execute/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/execute/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/execute/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -32,18 +32,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -51,15 +51,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -74,156 +74,156 @@
return RTC.RTC_OK
- def onFinalize(self, ec_id):
- """
+ ##
+ #
+ # The finalize action (on ALIVE->END transition)
+ # formaer rtc_exiting_entry()
+ #
+ # @return RTC::ReturnCode_t
- The finalize action (on ALIVE->END transition)
- formaer rtc_exiting_entry()
+ #
+ def onFinalize(self):
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ ##
+ #
+ # The shutdown action when ExecutionContext stop
+ # former rtc_stopping_entry()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onShutdown(self, ec_id):
- """
- The shutdown action when ExecutionContext stop
- former rtc_stopping_entry()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ ##
+ #
+ # The deactivated action (Active state exit action)
+ # former rtc_active_exit()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onDeactivated(self, ec_id):
- """
- The deactivated action (Active state exit action)
- former rtc_active_exit()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ ##
+ #
+ # The execution action that is invoked periodically
+ # former rtc_active_do()
+ #
+ # @param ec_id target ExecutionContext Id
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onExecute(self, ec_id):
- """
- The execution action that is invoked periodically
- former rtc_active_do()
-
- \param ec_id target ExecutionContext Id
-
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
@@ -231,13 +231,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/impl/finalize/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/finalize/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/finalize/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -32,18 +32,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -51,15 +51,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -74,156 +74,156 @@
return RTC.RTC_OK
- def onFinalize(self, ec_id):
- """
+ ##
+ #
+ # The finalize action (on ALIVE->END transition)
+ # formaer rtc_exiting_entry()
+ #
+ # @return RTC::ReturnCode_t
- The finalize action (on ALIVE->END transition)
- formaer rtc_exiting_entry()
+ #
+ def onFinalize(self):
- \return RTC::ReturnCode_t
-
- """
-
return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
@@ -231,13 +231,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/impl/initialize/foo.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/initialize/foo.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/impl/initialize/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief MDesc
- \date $Date$
+ @file foo.py
+ @brief MDesc
+ @date $Date$
"""
import sys
import time
@@ -32,18 +32,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief MDesc
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief MDesc
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
# initialize of configuration-data.
@@ -51,15 +51,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -74,156 +74,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
@@ -231,13 +231,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/module/serviceM/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,63 +1,50 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import SimpleService, SimpleService__POA
-
-
-
class MyService_i (SimpleService__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface SimpleService.MyService
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# string echo(in string msg)
def echo(self, msg):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# EchoList get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# void set_value(in float value)
def set_value(self, value):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float get_value()
def get_value(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -66,22 +53,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief ModuleDescription
- \date $Date$
+ @file foo.py
+ @brief ModuleDescription
+ @date $Date$
"""
import sys
import time
@@ -34,18 +34,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief ModuleDescription
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief ModuleDescription
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -59,15 +59,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -84,156 +84,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/DAQService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/DAQService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/DAQService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,32 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file DAQService_idl_examplefile.py
- \brief Python example implementations generated from DAQService.idl
- \date $Date$
+ @file DAQService_idl_examplefile.py
+ @brief Python example implementations generated from DAQService.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import _GlobalIDL, _GlobalIDL__POA
-
-
-
class DAQService_i (_GlobalIDL__POA.DAQService):
"""
- \class DAQService_i
+ @class DAQService_i
Example class implementing IDL interface DAQService
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# long setCommand(in long com, in double par)
def setCommand(self, com, par):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
@@ -47,8 +40,6 @@
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
-
if __name__ == "__main__":
import sys
@@ -57,22 +48,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = DAQService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/MyService_idl_example.py
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/MyService_idl_example.py 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/MyService_idl_example.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -1,63 +1,50 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# -*- Python -*-
-
"""
- \file MyService_idl_examplefile.py
- \brief Python example implementations generated from MyService.idl
- \date $Date$
+ @file MyService_idl_examplefile.py
+ @brief Python example implementations generated from MyService.idl
+ @date $Date$
"""
-
import omniORB
from omniORB import CORBA, PortableServer
-
import SimpleService, SimpleService__POA
-
-
-
class MyService_i (SimpleService__POA.MyService):
"""
- \class MyService_i
+ @class MyService_i
Example class implementing IDL interface SimpleService.MyService
"""
def __init__(self):
"""
- \brief standard constructor
+ @brief standard constructor
Initialise member variables here
"""
pass
-
# string echo(in string msg)
def echo(self, msg):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# EchoList get_echo_history()
def get_echo_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# void set_value(in float value)
def set_value(self, value):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: None
-
# float get_value()
def get_value(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
# ValueList get_value_history()
def get_value_history(self):
raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
# *** Implement me
# Must return: result
-
-
if __name__ == "__main__":
import sys
@@ -66,22 +53,16 @@
# As an example, we activate an object in the Root POA
poa = orb.resolve_initial_references("RootPOA")
-
# Create an instance of a servant class
servant = MyService_i()
-
# Activate it in the Root POA
poa.activate_object(servant)
-
# Get the object reference to the object
objref = servant._this()
# Print a stringified IOR for it
print orb.object_to_string(objref)
-
# Activate the Root POA's manager
poa._get_the_POAManager().activate()
-
# Run the ORB, blocking this thread
orb.run()
-
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceM2/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief ModuleDescription
- \date $Date$
+ @file foo.py
+ @brief ModuleDescription
+ @date $Date$
"""
import sys
import time
@@ -36,18 +36,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief ModuleDescription
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief ModuleDescription
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -64,15 +64,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -90,156 +90,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief ModuleDescription
- \date $Date$
+ @file foo.py
+ @brief ModuleDescription
+ @date $Date$
"""
import sys
import time
@@ -34,18 +34,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief ModuleDescription
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief ModuleDescription
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -59,15 +59,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -84,156 +84,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
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 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/resource/100/module/serviceMC2/foo.py 2016-03-07 11:12:55 UTC (rev 574)
@@ -2,9 +2,9 @@
# -*- coding: utf-8 -*-
# -*- Python -*-
"""
- \file foo.py
- \brief ModuleDescription
- \date $Date$
+ @file foo.py
+ @brief ModuleDescription
+ @date $Date$
"""
import sys
import time
@@ -36,18 +36,18 @@
"lang_type", "SCRIPT",
""]
# </rtc-template>
+##
+# @class foo
+# @brief ModuleDescription
+#
+#
class foo(OpenRTM_aist.DataFlowComponentBase):
- """
- \class foo
- \brief ModuleDescription
-
- """
+ ##
+ # @brief constructor
+ # @param manager Maneger Object
+ #
def __init__(self, manager):
- """
- \brief constructor
- \param manager Maneger Object
- """
OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
"""
"""
@@ -64,15 +64,15 @@
# </rtc-template>
+ ##
+ #
+ # The initialize action (on CREATED->ALIVE transition)
+ # formaer rtc_init_entry()
+ #
+ # @return RTC::ReturnCode_t
+ #
+ #
def onInitialize(self):
- """
-
- The initialize action (on CREATED->ALIVE transition)
- formaer rtc_init_entry()
-
- \return RTC::ReturnCode_t
-
- """
# Bind variables and configuration variable
# Set InPort buffers
@@ -90,156 +90,156 @@
return RTC.RTC_OK
- #def onFinalize(self, ec_id):
- # """
+ # ##
+ # #
+ # # The finalize action (on ALIVE->END transition)
+ # # formaer rtc_exiting_entry()
+ # #
+ # # @return RTC::ReturnCode_t
#
- # The finalize action (on ALIVE->END transition)
- # formaer rtc_exiting_entry()
+ # #
+ #def onFinalize(self):
#
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The startup action when ExecutionContext startup
+ # # former rtc_starting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStartup(self, ec_id):
- # """
#
- # The startup action when ExecutionContext startup
- # former rtc_starting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The shutdown action when ExecutionContext stop
+ # # former rtc_stopping_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onShutdown(self, ec_id):
- # """
#
- # The shutdown action when ExecutionContext stop
- # former rtc_stopping_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The activated action (Active state entry action)
+ # # former rtc_active_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onActivated(self, ec_id):
- # """
#
- # The activated action (Active state entry action)
- # former rtc_active_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The deactivated action (Active state exit action)
+ # # former rtc_active_exit()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onDeactivated(self, ec_id):
- # """
#
- # The deactivated action (Active state exit action)
- # former rtc_active_exit()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The execution action that is invoked periodically
+ # # former rtc_active_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onExecute(self, ec_id):
- # """
#
- # The execution action that is invoked periodically
- # former rtc_active_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The aborting action when main logic error occurred.
+ # # former rtc_aborting_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onAborting(self, ec_id):
- # """
#
- # The aborting action when main logic error occurred.
- # former rtc_aborting_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The error action in ERROR state
+ # # former rtc_error_do()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onError(self, ec_id):
- # """
#
- # The error action in ERROR state
- # former rtc_error_do()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The reset action that is invoked resetting
+ # # This is same but different the former rtc_init_entry()
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onReset(self, ec_id):
- # """
#
- # The reset action that is invoked resetting
- # This is same but different the former rtc_init_entry()
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The state update action that is invoked after onExecute() action
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onStateUpdate(self, ec_id):
- # """
#
- # The state update action that is invoked after onExecute() action
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
+ # ##
+ # #
+ # # The action that is invoked when execution context's rate is changed
+ # # no corresponding operation exists in OpenRTm-aist-0.2.0
+ # #
+ # # @param ec_id target ExecutionContext Id
+ # #
+ # # @return RTC::ReturnCode_t
+ # #
+ # #
#def onRateChanged(self, ec_id):
- # """
#
- # The action that is invoked when execution context's rate is changed
- # no corresponding operation exists in OpenRTm-aist-0.2.0
- #
- # \param ec_id target ExecutionContext Id
- #
- # \return RTC::ReturnCode_t
- #
- # """
- #
# return RTC.RTC_OK
def fooInit(manager):
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/AISTTest.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/AISTTest.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/AISTTest.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -78,7 +78,7 @@
String resourceDir = rootPath + "/resource/100/aist/AIST6/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "test.py");
}
@@ -119,7 +119,7 @@
String resourceDir = rootPath + "/resource/100/aist/AIST4/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "test.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -171,7 +171,7 @@
String resourceDir = rootPath + "/resource/100/aist/AIST3/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "test.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -213,13 +213,13 @@
String resourceDir = rootPath + "/resource/100/aist/AIST2/";
- assertEquals(28, result.size());
+ assertEquals(30, result.size());
checkCode(result, resourceDir, "test.py");
checkCode(result, resourceDir, "idlcompile.bat");
checkCode(result, resourceDir, "idlcompile.sh");
}
- public void testServicePort() throws Exception {
+ public void testAIST1() throws Exception {
rtcParam.setName("test");
rtcParam.setDescription("test component");
rtcParam.setVersion("1.0.0");
@@ -246,7 +246,7 @@
String resourceDir = rootPath + "/resource/100/aist/AIST1/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "test.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/BaseTest.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/BaseTest.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/BaseTest.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -83,7 +83,7 @@
String resourceDir = rootPath + "/resource/100/base/service2/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -125,7 +125,7 @@
String resourceDir = rootPath + "/resource/100/base/service1/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -156,7 +156,7 @@
String resourceDir = rootPath + "/resource/100/base/outport2/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -183,7 +183,7 @@
String resourceDir = rootPath + "/resource/100/base/outport1/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -207,7 +207,7 @@
String resourceDir = rootPath + "/resource/100/base/inport2/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -230,7 +230,7 @@
String resourceDir = rootPath + "/resource/100/base/inport1/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -249,7 +249,7 @@
String resourceDir = rootPath + "/resource/100/base/name2/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "Foo.py");
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/BuildTest.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/BuildTest.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/BuildTest.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -89,7 +89,7 @@
String resourceDir = fixturePath(name) + "/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -157,12 +157,12 @@
String resourceDir = fixturePath(name) + "/";
- assertEquals(30, result.size());
+ assertEquals(32, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyServiceChildMulti_idl_example.py");
checkCode(result, resourceDir, "MyServiceChildWithType_idl_example.py");
- checkCode(result, resourceDir, "idlcompile.bat");
- checkCode(result, resourceDir, "idlcompile.sh");
+// checkCode(result, resourceDir, "idlcompile.bat");
+// checkCode(result, resourceDir, "idlcompile.sh");
//
// checkCode(result, resourceDir, "CMakeLists.txt");
// checkCode(result, resourceDir, "Doxyfile.in");
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/ConfigSetTest.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/ConfigSetTest.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/ConfigSetTest.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -54,7 +54,7 @@
String resourceDir = rootPath + "/resource/100/ConfigSet/configset1/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -78,7 +78,7 @@
String resourceDir = rootPath + "/resource/100/ConfigSet/configset2/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -106,7 +106,7 @@
String resourceDir = rootPath + "/resource/100/ConfigSet/configset3/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -136,7 +136,7 @@
String resourceDir = rootPath + "/resource/100/ConfigSet/configset4/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -165,7 +165,7 @@
String resourceDir = rootPath
+ "/resource/100/ConfigSet/ConfigSetType/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyDocTest.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyDocTest.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyDocTest.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -262,7 +262,7 @@
String resourceDir = rootPath + "/resource/100/Doc/full/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -321,7 +321,7 @@
String resourceDir = rootPath + "/resource/100/Doc/refer/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -376,7 +376,7 @@
String resourceDir = rootPath + "/resource/100/Doc/authorLong/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -430,7 +430,7 @@
String resourceDir = rootPath + "/resource/100/Doc/author/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyIDLInheritTest.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyIDLInheritTest.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyIDLInheritTest.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -81,11 +81,11 @@
String resourceDir = fixturePath(name) + "/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyServiceChildMulti_idl_example.py");
- checkCode(result, resourceDir, "idlcompile.bat");
- checkCode(result, resourceDir, "idlcompile.sh");
+// checkCode(result, resourceDir, "idlcompile.bat");
+// checkCode(result, resourceDir, "idlcompile.sh");
}
public void testInherit2() throws Exception {
@@ -129,12 +129,12 @@
String resourceDir = fixturePath(name) + "/";
- assertEquals(30, result.size());
+ assertEquals(32, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyServiceChildMulti_idl_example.py");
checkCode(result, resourceDir, "MyServiceChildWithType_idl_example.py");
- checkCode(result, resourceDir, "idlcompile.bat");
- checkCode(result, resourceDir, "idlcompile.sh");
+// checkCode(result, resourceDir, "idlcompile.bat");
+// checkCode(result, resourceDir, "idlcompile.sh");
}
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyIDLType.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyIDLType.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyIDLType.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -96,7 +96,7 @@
String resourceDir = rootPath + "/resource/100/idltype/type2/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "test.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -130,7 +130,7 @@
String resourceDir = rootPath + "/resource/100/idltype/type3/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "test.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyImplTest.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyImplTest.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyImplTest.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -61,7 +61,7 @@
String resourceDir = rootPath + "/resource/100/impl/all/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -86,7 +86,7 @@
String resourceDir = rootPath + "/resource/100/impl/execute/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -108,7 +108,7 @@
String resourceDir = rootPath + "/resource/100/impl/finalize/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -129,7 +129,7 @@
String resourceDir = rootPath + "/resource/100/impl/initialize/";
- assertEquals(26, result.size());
+ assertEquals(28, result.size());
checkCode(result, resourceDir, "foo.py");
}
Modified: trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyModuleTest.java
===================================================================
--- trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyModuleTest.java 2016-03-07 10:50:30 UTC (rev 573)
+++ trunk/rtmtools/jp.go.aist.rtm.rtcbuilder.python/test/jp/go/aist/rtm/rtcbuilder/python/_test/_100/PyModuleTest.java 2016-03-07 11:12:55 UTC (rev 574)
@@ -64,7 +64,7 @@
String resourceDir = rootPath + "/resource/100/module/serviceM/";
- assertEquals(29, result.size());
+ assertEquals(31, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "idlcompile.bat");
@@ -104,7 +104,7 @@
String resourceDir = rootPath + "/resource/100/module/serviceM2/";
- assertEquals(30, result.size());
+ assertEquals(32, result.size());
checkCode(result, resourceDir, "foo.py");
checkCode(result, resourceDir, "MyService_idl_example.py");
checkCode(result, resourceDir, "DAQService_idl_example.py");
@@ -140,7 +140,7 @@
String resourceDir = rootPath + "/resource/100/module/serviceMC/";
- assertEquals(28, result.size());
+ assertEquals(30, result.size());
checkCode(result, resourceDir, "foo.py");
}
@@ -177,7 +177,7 @@
String resourceDir = rootPath + "/resource/100/module/serviceMC2/";
- assertEquals(28, result.size());
+ assertEquals(30, result.size());
checkCode(result, resourceDir, "foo.py");
}
More information about the openrtm-commit
mailing list