$ sh gen.sh
Traceback (most recent call last):
File "/usr/bin/rtc-template", line 932, in ?
main()
File "/usr/bin/rtc-template", line 906, in main
data = {'basicInfo': CreateBasicInfo(opts),
File "/usr/bin/rtc-template", line 582, in CreateDataPorts
sys.stderr("Invalid option: " \
TypeError: 'file' object is not callable
OpenRTMユーザーの皆様
お世話になっております。
産総研 栗原です。
この度、OpenRTM-aist-0.4.2版のコマンドライン版rtc-templateにおきまして
下記の不具合が発見されました。
<不具合>
rtc-templateのデータポートに関するオプションにて、データ
タイプに"::"を使用した場合、下記のようなエラーが発生する。
$ sh gen.sh
Traceback (most recent call last):
File "/usr/bin/rtc-template", line 932, in ?
main()
File "/usr/bin/rtc-template", line 906, in main
data = {'basicInfo': CreateBasicInfo(opts),
File "/usr/bin/rtc-template", line 582, in CreateDataPorts
sys.stderr("Invalid option: " \
TypeError: 'file' object is not callable
なお、データタイプに"::"を使用する場合とは、下記のようにユーザー
定義型をデータポートで使用する場合です。
// file: MyDataType.idl
module MyData
{
struct MyDataType
{
sequence data;
};
};
# file: gen.sh
rtc-template -bcxx \
--module-name=sample --module-type='DataFlowComponent' \
--module-desc='sample component' \
--module-version=1.0 --module-vendor='AIST' \
--module-category=example \
--module-comp-type=DataFlowComponent --module-act-type=SPORADIC \
--module-max-inst=10 \
--outport=out:MyData::MyDataType
InPortやサービスポートに関しても同様のエラーが発生致しますので、コマ
ンドライン版のrtc-templateをご使用の方は、添付のrtc-templateをインス
トール済みのrtc-templateと置き換えて下さい。
Linux環境でのrtc-templateは/usr/binや/usr/local/binにインストールさ
れているかと思います。
お手数をお掛けしますが、宣しくお願い致します。