OpenRTM-aist-Python 2.0.2
OpenRTM_aist.InPortSHMProvider.InPortSHMProvider クラス

[詳解]

OpenRTM_aist.InPortSHMProvider.InPortSHMProvider の継承関係図
OpenRTM_aist.InPortProvider.InPortProvider OpenRTM_aist.SharedMemory.SharedMemory OpenRTM_aist.DataPortStatus.DataPortStatus

公開メンバ関数

 __init__ (self)
 
 __del__ (self)
 
 exit (self)
 
 put (self)
 
- 基底クラス OpenRTM_aist.InPortProvider.InPortProvider に属する継承公開メンバ関数
 publishInterfaceProfile (self, prop)
 
 publishInterface (self, prop)
 
 setInterfaceType (self, interface_type)
 
 setDataFlowType (self, dataflow_type)
 
 setSubscriptionType (self, subs_type)
 
- 基底クラス OpenRTM_aist.DataPortStatus.DataPortStatus に属する継承公開メンバ関数
 toString (status)
 
- 基底クラス OpenRTM_aist.SharedMemory.SharedMemory に属する継承公開メンバ関数
 string_to_MemorySize (self, size_str)
 
 create_memory (self, memory_size, shm_address)
 
 open_memory (self, memory_size, shm_address)
 
 close_memory (self, unlink=False)
 
 write (self, data)
 
 read (self)
 
 setInterface (self, sm)
 
 setEndian (self, endian)
 
 get (self)
 

その他の継承メンバ

- 基底クラス OpenRTM_aist.DataPortStatus.DataPortStatus に属する継承静的公開変数類
int PORT_OK = 0
 brief DataPortStatus リターンコード
 

詳解

InPortSHMProvider クラス

通信手段に 共有メモリ を利用した入力ポートプロバイダーの実装クラス。

構築子と解体子

◆ __init__()

OpenRTM_aist.InPortSHMProvider.InPortSHMProvider.__init__ ( self)

コンストラクタ

コンストラクタ Interface Typeにはshared_memoryを指定する 共有メモリの空間名はUUIDで作成し、コネクタプロファイルのdataport.shared_memory.addressに保存する

self

OpenRTM_aist.InPortProvider.InPortProviderを再実装しています。

◆ __del__()

OpenRTM_aist.InPortSHMProvider.InPortSHMProvider.__del__ ( self)

デストラクタ

デストラクタ

引数
self

OpenRTM_aist.SharedMemory.SharedMemoryを再実装しています。

メソッド詳解

◆ exit()

OpenRTM_aist.InPortSHMProvider.InPortSHMProvider.exit ( self)

終了処理

OpenRTM_aist.InPortProvider.InPortProviderを再実装しています。

◆ put()

OpenRTM_aist.InPortSHMProvider.InPortSHMProvider.put ( self)

バッファにデータを書き込む

データのサイズは共有メモリも先頭8byteから取得する 共有メモリからデータを取り出しバッファに書き込む

引数
data書込対象データ

OpenRTM.PortStatus put() throw (CORBA.SystemException);

OpenRTM_aist.SharedMemory.SharedMemoryを再実装しています。


このクラス詳解は次のファイルから抽出されました: