OpenRTM-aist-Python 1.1.2
|
公開メンバ関数 | |
def | __init__ |
コンストラクタ [詳解] | |
def | name |
ポート名称を取得する。 [詳解] | |
def | isNew |
最新データか確認 [詳解] | |
def | isEmpty |
バッファが空かどうか確認する [詳解] | |
def | read |
DataPort から値を読み出す [詳解] | |
def | update |
バインドされた変数に InPort バッファの最新値を読み込む [詳解] | |
def | setOnRead |
InPort バッファへデータ読み込み時のコールバックの設定 [詳解] | |
def | setOnReadConvert |
InPort バッファへデータ読み出し時のコールバックの設定 [詳解] | |
![]() | |
def | __init__ |
コンストラクタ [詳解] | |
def | __del__ |
デストラクタ [詳解] | |
def | init |
プロパティの初期化 [詳解] | |
def | read |
RTObject_impl::readAll()から呼ばれる仮想関数 [詳解] | |
def | properties |
プロパティを取得する [詳解] | |
def | connectors |
Connector を取得 [詳解] | |
def | getConnectorProfiles |
ConnectorProfile を取得 [詳解] | |
def | getConnectorIds |
ConnectorId を取得 [詳解] | |
def | getConnectorNames |
Connectorの名前を取得 [詳解] | |
def | getConnectorById |
ConnectorProfileをIDで取得 [詳解] | |
def | getConnectorByName |
ConnectorProfileを名前で取得 [詳解] | |
def | getConnectorProfileById |
ConnectorProfileをIDで取得 [詳解] | |
def | getConnectorProfileByName |
ConnectorProfileを名前で取得 [詳解] | |
def | connect |
[CORBA interface] Port の接続を行う [詳解] | |
def | activateInterfaces |
InPortを activates する [詳解] | |
def | deactivateInterfaces |
全ての Port のインターフェースを deactivates する [詳解] | |
def | addConnectorDataListener |
ConnectorDataListener リスナを追加する [詳解] | |
def | removeConnectorDataListener |
ConnectorDataListener リスナを削除する [詳解] | |
def | addConnectorListener |
ConnectorListener リスナを追加する [詳解] | |
def | removeConnectorListener |
ConnectorDataListener リスナを削除する [詳解] | |
def | publishInterfaces |
Interface情報を公開する [詳解] | |
def | subscribeInterfaces |
Interfaceに接続する [詳解] | |
def | unsubscribeInterfaces |
Interfaceへの接続を解除する [詳解] | |
def | initProviders |
InPort provider の初期化void initProviders();. | |
def | initConsumers |
OutPort consumer の初期化void initConsumers();. | |
def | createProvider |
InPort provider の生成 [詳解] | |
def | createConsumer |
OutPort consumer の生成 [詳解] | |
def | createConnector |
InPortPushConnector の生成 [詳解] | |
![]() | |
def | __init__ |
コンストラクタ [詳解] | |
def | __del__ |
デストラクタ [詳解] | |
def | get_port_profile |
[CORBA interface] PortProfileを取得する [詳解] | |
def | getPortProfile |
PortProfile を取得する。 [詳解] | |
def | get_connector_profiles |
[CORBA interface] ConnectorProfileListを取得する [詳解] | |
def | get_connector_profile |
[CORBA interface] ConnectorProfile を取得する [詳解] | |
def | connect |
[CORBA interface] Port の接続を行う [詳解] | |
def | notify_connect |
[CORBA interface] Port の接続通知を行う [詳解] | |
def | disconnect |
[CORBA interface] Port の接続を解除する [詳解] | |
def | notify_disconnect |
[CORBA interface] Port の接続解除通知を行う [詳解] | |
def | disconnect_all |
[CORBA interface] Port の全接続を解除する [詳解] | |
def | setName |
Port の名前を設定する [詳解] | |
def | getName |
Port の名前を取得するconst char* PortBase::getName() const. | |
def | getProfile |
PortProfileを取得する [詳解] | |
def | setPortRef |
Port のオブジェクト参照を設定する [詳解] | |
def | getPortRef |
Port のオブジェクト参照を取得する [詳解] | |
def | setOwner |
Port の owner の RTObject を指定する [詳解] | |
def | setOnPublishInterfaces |
インターフェースを公開する際に呼ばれるコールバックをセットする [詳解] | |
def | setOnSubscribeInterfaces |
インターフェースを取得する際に呼ばれるコールバックをセットする [詳解] | |
def | setOnConnected |
接続完了時に呼ばれるコールバックをセットする [詳解] | |
def | setOnUnsubscribeInterfaces |
インターフェースを解放する際に呼ばれるコールバックをセットする [詳解] | |
def | setOnDisconnected |
接続解除に呼ばれるコールバックをセットする [詳解] | |
def | setPortConnectListenerHolder |
PortConnectListeners のホルダをセットする [詳解] | |
def | publishInterfaces |
Interface 情報を公開する(サブクラス実装用) [詳解] | |
def | connectNext |
次の Port に対して notify_connect() をコールする [詳解] | |
def | disconnectNext |
次の Port に対して notify_disconnect() をコールする [詳解] | |
def | subscribeInterfaces |
Interface 情報を取得する(サブクラス実装用) [詳解] | |
def | unsubscribeInterfaces |
Interface の接続を解除する(サブクラス実装用) [詳解] | |
def | setConnectionLimit |
接続の最大数を設定する。 [詳解] | |
def | isEmptyId |
ConnectorProfile の connector_id フィールドが空かどうか判定 [詳解] | |
def | getUUID |
UUIDを生成する [詳解] | |
def | setUUID |
UUIDを生成し ConnectorProfile にセットする [詳解] | |
def | isExistingConnId |
id が既存の ConnectorProfile のものかどうか判定する [詳解] | |
def | findConnProfile |
id を持つ ConnectorProfile を探す [詳解] | |
def | findConnProfileIndex |
id を持つ ConnectorProfile を探す [詳解] | |
def | updateConnectorProfile |
ConnectorProfile の追加もしくは更新 [詳解] | |
def | eraseConnectorProfile |
ConnectorProfile を削除する [詳解] | |
def | appendInterface |
PortInterfaceProfile に インターフェースを登録する [詳解] | |
def | deleteInterface |
PortInterfaceProfile からインターフェース登録を削除する [詳解] | |
def | addProperty |
PortProfile の properties に NameValue 値を追加する [詳解] | |
def | appendProperty |
PortProfile の properties に NameValue 値を要素に追加する [詳解] | |
def | updateConnectors |
存在しないポートをdisconnectする。 [詳解] | |
def | checkPorts |
ポートの存在を確認する。 [詳解] | |
![]() | |
def | toString |
DataPortStatus リターンコードを文字列に変換 [詳解] | |
その他の継承メンバ | |
![]() | |
int | PORT_OK = 0 |
brief DataPortStatus リターンコード [詳解] | |
InPort クラス
InPort の実装クラス。 InPort は内部にリングバッファを持ち、外部から送信されたデータを順次 このリングバッファに格納する。リングバッファのサイズはデフォルトで64と なっているが、コンストラクタ引数によりサイズを指定することができる。 データはフラグによって未読、既読状態が管理され、isNew(), getNewDataLen() getNewList(), getNewListReverse() 等のメソッドによりハンドリングすることが できる。
def OpenRTM_aist.InPort.InPort.__init__ | ( | self, | |
name, | |||
value, | |||
buffer = None , |
|||
read_block = False , |
|||
write_block = False , |
|||
read_timeout = 0 , |
|||
write_timeout = 0 |
|||
) |
コンストラクタ
コンストラクタ。
self | |
name | InPort 名。InPortBase:name() により参照される。 |
value | この InPort にバインドされる変数 |
read_block | 読込ブロックフラグ。 データ読込時に未読データがない場合、次のデータ受信までブロックする かどうかを設定(デフォルト値:False) |
write_block | 書込ブロックフラグ。 データ書込時にバッファがフルであった場合、バッファに空きができる までブロックするかどうかを設定(デフォルト値:False) |
read_timeout | 読込ブロックを指定していない場合の、データ読取タイム アウト時間(ミリ秒)(デフォルト値:0) |
write_timeout | 書込ブロックを指定していない場合の、データ書込タイム アウト時間(ミリ秒)(デフォルト値:0) |
def OpenRTM_aist.InPort.InPort.isEmpty | ( | self | ) |
バッファが空かどうか確認する
InPortのバッファが空かどうかを bool 値で返す。 空の場合は true, 未読データがある場合は false を返す。
bool isEmpty()
def OpenRTM_aist.InPort.InPort.isNew | ( | self | ) |
最新データか確認
現在のバッファ位置に格納されているデータが最新データか確認する。
self |
bool isNew()
def OpenRTM_aist.InPort.InPort.name | ( | self | ) |
def OpenRTM_aist.InPort.InPort.read | ( | self | ) |
DataPort から値を読み出す
InPortに書き込まれたデータを読みだす。接続数が0、またはバッファに データが書き込まれていない状態で読みだした場合の戻り値は不定である。 バッファが空の状態のとき、 事前に設定されたモード (readback, do_nothing, block) に応じて、 以下のような動作をする。
バッファが空の状態では、InPortにバインドされた変数の値が返される。 したがって、初回読み出し時には不定値を返す可能性がある。 この関数を利用する際には、
各コールバック関数は以下のように呼び出される。
DataType read()
def OpenRTM_aist.InPort.InPort.setOnRead | ( | self, | |
on_read | |||
) |
def OpenRTM_aist.InPort.InPort.setOnReadConvert | ( | self, | |
on_rconvert | |||
) |
def OpenRTM_aist.InPort.InPort.update | ( | self | ) |