プロジェクト

全般

プロフィール

機能 #3779

(シ)データポートのPortProfile/ConnectorProfileのプロパティ拡張作業

win-ei7年以上前に追加. 6年以上前に更新.

ステータス:
終了
優先度:
通常
担当者:
-
対象バージョン:
-
開始日:
2017/01/25
期日:
進捗率:

100%

予定工数:
(合計: 0.00時間)

説明

データポート間を接続する際には、それぞれのポートが持つPortProfileの各種情報を取得しポートがサポートしている機能の情報を取得したうえで、ConnectorProfileのフィールドに必要な情報をセットし、1か所のポートに対して引数と私notify()関数を呼ぶことでポート間の接続が確立される。FSM4RTCでは、PortProfile::properties, ConnectorProfile::properties にセットする値がOpenRTMで決められているものから変更されており、本実装では、この仕様に対応させる作業を実施する。
FSM4RTCでは以下の14種類の標準プロパティが定義されており、PortProfileでは、dataport.fsm_event_name を除くプロパティがセットされている。また、ConnectorProfileでは14種類すべての値に対して、振る舞いを変更するなどの対応が必要となる。

dataport.dataflow_type: {push, pull}
dataport.io_mode: {block, nonblock}
dataport.data_type: Data type in IFR
dataport.interface_type: Interface type in IFR
dataport.marshaling_type: marshaling type
dataport.timestamp_policy: {on_write, on_send, on_received, on_read, none}
dataport.write_buffer_length: int
dataport.write_buffer_full_policy: {overwrite, do_nothing, block}
dataport.write_buffer_timeout: [s]
dataport.read_buffer_length: int
dataport.read_buffer_empty_policy: {read_back, do_nothing, block}
dataport.read_buffer_timeout: [s]
dataport.read_buffer_queue_policy: {all, fifo, new}
dataport.fsm_event_name: イベント名

なお、実装するにあたり、過去のバージョンとの互換性のため、新旧両方のプロパティに対応させること。


子チケット

機能 #3886: [FSM4RTC] データポートのタイムスタンプ打刻機能終了win-ei

関係しているリビジョン

リビジョン 907 (差分)
win-ei7年以上前に追加

[FSM4RTC,compat,new prop] PortProfile/ConnectorProfile \"dataport.io_mode\" has been added. refs #3779

履歴

#1 win-ei7年以上前に更新

dataport.io_mode の追加

動作確認

ConsoluOut と ConsoluIn で動作確認
別々のターミナルで ConsoleOut ConsoleIn を起動する。
rtcon でポートが接続する

$ rtcon ./localhost/.host_cxt/ConsoleIn0.rtc:out ./localhost/.host_cxt/ConsoleOut0.rtc:in --property dataport.subscription_type="new" 
$ rtact ./localhost/.host_cxt/ConsoleIn0.rtc
$ rtact ./localhost/.host_cxt/ConsoleOut0.rtc

$ rtcon ./localhost/.host_cxt/ConsoleIn0.rtc:out ./localhost/.host_cxt/ConsoleOut0.rtc:in --property dataport.subscription_type="flush" 
$ rtact ./localhost/.host_cxt/ConsoleIn0.rtc
$ rtact ./localhost/.host_cxt/ConsoleOut0.rtc

$ rtcon ./localhost/.host_cxt/ConsoleIn0.rtc:out ./localhost/.host_cxt/ConsoleOut0.rtc:in --property dataport.subscription_type="periodic" --property dataport.push_rate="1" 
$ rtact ./localhost/.host_cxt/ConsoleIn0.rtc
$ rtact ./localhost/.host_cxt/ConsoleOut0.rtc

$ rtcon ./localhost/.host_cxt/ConsoleIn0.rtc:out ./localhost/.host_cxt/ConsoleOut0.rtc:in --property dataport.io_mode="block" 
$ rtact ./localhost/.host_cxt/ConsoleIn0.rtc
$ rtact ./localhost/.host_cxt/ConsoleOut0.rtc

$ rtcon ./localhost/.host_cxt/ConsoleIn0.rtc:out ./localhost/.host_cxt/ConsoleOut0.rtc:in --property dataport.io_mode="nonblock" 
$ rtact ./localhost/.host_cxt/ConsoleIn0.rtc
$ rtact ./localhost/.host_cxt/ConsoleOut0.rtc

#2 n-ando6年以上前に更新

  • ステータス新規 から 終了 に変更

他の形式にエクスポート: Atom PDF