[openrtm-users 00526] OprnRTM-0.4.2でIDLファイルを追加できない。

yosuke enomoto blitzunddonnert @ gmail.com
2008年 7月 14日 (月) 00:08:08 JST


榎本です。

http://www.is.aist.go.jp/rt/OpenRTM-aist/html/FAQ2FRTE382B3E383B3E3839DE383BCE3838DE383B3E38388E4BD9CE68890.html#vfed5000
のページの「標準以外のデータ型をInPort/OutPortで使うには」を参考に
generator.sh,TimedImage.idl(ファイルを添付します)を作成し,
# sh generator.sh
# make -f Makefile.ConsoleIn
を実行してみたところ、
Fedora8+OpenRTM-0.4.2の環境ではmakeの時以下のようなエラーが出てしまいます.

# make -f Makefile.ConsoleIn
rm -f ConsoleIn.o
g++ `rtm-config --cflags` -I. -c -o ConsoleIn.o ConsoleIn.cpp
ConsoleIn.h:97: error: 'TimedImage' does not name a type
ConsoleIn.h:98: error: 'TimedImage' was not declared in this scope
ConsoleIn.h:98: error: template argument 1 is invalid
ConsoleIn.cpp: In constructor 'ConsoleIn::ConsoleIn(RTC::Manager*)':
ConsoleIn.cpp:32: error: 'm_out' was not declared in this scope
ConsoleIn.cpp:32: error: member initializer expression list treated as
compound expression
ConsoleIn.cpp:41: error: no matching function for call to
'ConsoleIn::registerOutPort(const char [4], int&)'
make: *** [ConsoleIn.o] エラー 1

しかしながら、Fedora7+OpenRTM-0.4.1の環境ではエラーが発生せず,makeが通すことができました.

OpenRTM-0.4.2にてIDLを付けた際にrtc-templateが作るファイルが
0.4.1とは少し違っているようです。

宜しくお願い致します。
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: TimedImage.idl
型:         text/x-idl
サイズ:     161 バイト
説明:       無し
URL:        <http://www.openrtm.org/pipermail/openrtm-users/attachments/20080714/0b33d9b5/attachment-0001.bin>
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: generator.sh
型:         application/x-sh
サイズ:     368 バイト
説明:       無し
URL:        <http://www.openrtm.org/pipermail/openrtm-users/attachments/20080714/0b33d9b5/attachment-0001.sh>


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