[openrtm-commit:00564] r500 - trunk/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2012年 1月 10日 (火) 14:57:47 JST


Author: kurihara
Date: 2012-01-10 14:57:47 +0900 (Tue, 10 Jan 2012)
New Revision: 500

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/RTObject.py
Log:
An RTC state inconsistency bug has been fixed. An initial configuration ID bug has been fixed. refs #2316.

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/RTObject.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/RTObject.py	2011-12-15 03:22:30 UTC (rev 499)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/RTObject.py	2012-01-10 05:57:47 UTC (rev 500)
@@ -509,9 +509,9 @@
       return RTC.PRECONDITION_NOT_MET
 
     ret = self.on_initialize()
+    self._created = False
     if ret is not RTC.RTC_OK:
       return ret
-    self._created = False
 
     # -- entering alive state --
     for i in range(len(self._ecMine)):
@@ -1150,8 +1150,10 @@
 
     if self._configsets.haveConfig(active_set):
       self._configsets.update(active_set)
+      self._configsets.activateConfigurationSet(active_set)
     else:
       self._configsets.update("default")
+      self._configsets.activateConfigurationSet("default")
 
     self.postOnInitialize(0,ret)
     return ret
@@ -2598,78 +2600,6 @@
   ##
   # @if jp
   #
-  # @brief コンフィギュレーションサービスを取得する
-  # 
-  # コンフィギュレーションサービスオブジェクトを取得する。このサービ
-  # スオブジェクトを利用して、コンフィギュレーションパラメータの操作
-  # を行うことができる。主な操作としては、
-  #
-  # - unbindParameter(): パラメータのアンバインド
-  # - update(): パラメータの更新
-  # - update(set_name): 特定のセットの更新
-  # - update(set_name, param_name): 特定のセットのパラメータの更新
-  # - isExist(): パラメータの存在確認
-  # - isChanged(): パラメータが変更されたかの確認
-  # - changedParameters(): 変更さえたパラメータのリスト
-  # - getActiveId(): アクティブセット名の取得
-  # - haveConfig(config_id): コンフィグセットを持っているかどうか
-  # - getConfigurationSets(): 全コンフィギュレーションセットの取得
-  # - getConfigurationSet(set_id): 特定セットを取得
-  #
-  # コールバック関連 
-  # - addConfigurationParamListener(): リスナの追加
-  # - removeConfigurationParamListener(): リスナの削除
-  # - addConfigurationSetListener(): リスナの追加
-  # - removeConfigurationSetListener(): リスナの削除
-  # - addConfigurationSetNameListener(): リスナの追加
-  # - removeConfigurationSetNameListener(): リスナの削除
-  #
-  # 詳細はConfigAdminクラスリファレンスを参照のこと。
-  #
-  # @return ConfigAdmin object
-  # 
-  # @else
-  #
-  # @brief Getting configuration service
-  # 
-  # This operation returns configuration service object. By using
-  # this service, user can manipulate configuration
-  # parameters. Mainly the following operations are supported.
-  #
-  # - unbindParameter(): Unbinding parameters
-  # - update(): Updateing parameters
-  # - update(set_name): Updating a specific configuration set
-  # - update(set_name, param_name): Updating specific parameter in a set
-  # - isExist(): Checking existence of a parameter
-  # - isChanged(): Check if a parameter was updated
-  # - changedParameters(): Getting changed parameter list
-  # - getActiveId(): Getting active configuration set name
-  # - haveConfig(config_id): Checking if having a specified configuration set
-  # - getConfigurationSets(): getting all the configuration sets
-  # - getConfigurationSet(set_id): Getting a configuration set
-  #
-  # Callback related member functions
-  # - addConfigurationParamListener(): Adding listener
-  # - removeConfigurationParamListener(): Removing listener
-  # - addConfigurationSetListener(): Adding listener
-  # - removeConfigurationSetListener(): Removing listener
-  # - addConfigurationSetNameListener(): Adding listener
-  # - removeConfigurationSetNameListener(): Removing listener
-  #
-  # See details in the ConfigAdmin class reference
-  #
-  # @return ConfigAdmin object
-  #
-  # @endif
-  #
-  # ConfigAdmin& getConfigService() { return m_configsets; }
-  def getConfigService(self):
-    return self._configsets
-
-
-  ##
-  # @if jp
-  #
   # @brief コンフィギュレーションパラメータの更新(ID指定)
   # 
   # 指定したIDのコンフィギュレーションセットに設定した値で、



openrtm-commit メーリングリストの案内