[openrtm-commit:01701] r645 - trunk/OpenRTM-aist-Python/OpenRTM_aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 2月 1日 (月) 19:29:18 JST
Author: miyamoto
Date: 2016-02-01 19:29:17 +0900 (Mon, 01 Feb 2016)
New Revision: 645
Modified:
trunk/OpenRTM-aist-Python/OpenRTM_aist/Manager.py
Log:
[incompat,new_func,->RELENG_1_2] add initPreCreation() to Manager.
Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/Manager.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/Manager.py 2016-02-01 10:22:57 UTC (rev 644)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/Manager.py 2016-02-01 10:29:17 UTC (rev 645)
@@ -26,6 +26,7 @@
import OpenRTM_aist
import RTC
import SDOPackage
+import CosNaming
#------------------------------------------------------------
@@ -437,16 +438,8 @@
if self._initProc:
self._initProc(self)
- comps = [s.strip() for s in self._config.getProperty("manager.components.precreate").split(",")]
- for i in range(len(comps)):
- if comps[i] is None or comps[i] == "":
- continue
- tmp = [comps[i]]
- OpenRTM_aist.eraseHeadBlank(tmp)
- OpenRTM_aist.eraseTailBlank(tmp)
- comps[i] = tmp[0]
+ self.initPreCreation()
- self.createComponent(comps[i])
return True
@@ -978,6 +971,8 @@
self._namingManager.bindObject(name, comp)
self._listeners.naming_.postBind(comp, names)
+
+
return True
@@ -1329,6 +1324,8 @@
OpenRTM_aist.Manager.cleanupComponents,
tm)
+
+
return
@@ -1492,6 +1489,7 @@
args = OpenRTM_aist.split(self.createORBOptions(), " ")
args.insert(0,"manager")
argv = OpenRTM_aist.toArgv(args)
+
self._orb = CORBA.ORB_init(argv)
self._poa = self._orb.resolve_initial_references("RootPOA")
@@ -2392,6 +2390,37 @@
+
+
+
+
+
+ ##
+ # @if jp
+ # @brief 起動時にrtc.confで指定したRTCを生成する
+ # 例:
+ # manager.components.precreate RTC1,RTC2~
+ # @param self
+ # @else
+ #
+ # @brief
+ # @param self
+ # @endif
+ # void initPreCreation()
+ def initPreCreation(self):
+ comps = [s.strip() for s in self._config.getProperty("manager.components.precreate").split(",")]
+ for i in range(len(comps)):
+ if comps[i] is None or comps[i] == "":
+ continue
+ tmp = [comps[i]]
+ OpenRTM_aist.eraseHeadBlank(tmp)
+ OpenRTM_aist.eraseTailBlank(tmp)
+ comps[i] = tmp[0]
+
+ self.createComponent(comps[i])
+
+
+
#============================================================
# コンポーネントマネージャ
#============================================================
More information about the openrtm-commit
mailing list