[openrtm-users 03148] openRTM-1.1.0 vc10で、「コンポーネントを作ってみる」でrtc-template.pyでsyntax error

成田雅彦 narita-masahiko @ aiit.ac.jp
2014年 12月 30日 (火) 12:11:33 JST


原様、関係者の皆様、

いつもお世話になっています。

openRTM-1.1.0 vc10で、「コンポーネントを作ってみる」で
ケーススタディーをやろうとしました。
( http://www.openrtm.org/openrtm/ja/node/185を参考にしています)

コード生成のbatを作って実行すると、
rtc-template.py -bcxx^
 --module-name=ConsoleOut^
 --module-type='DataFlowComponent'^
 --module-desc='Console output component'^
 --module-version=1.0 --module-vendor='MyName'^
 --module-category=example^
 --module-comp-type=DataFlowComponent^
 --module-act-type=SPORADIC^
 --module-max-inst=10 --inport=in:TimedLong --config="multiply:int:1"
以下のようにエラーになります

G:\TRobotProject\src\sample1>rtc-template.py -bcxx --module-name=ConsoleOut --mo
dule-type='DataFlowComponent' --module-desc='Console output component' --module-
version=1.0 --module-vendor='MyName' --module-category=example --module-comp-typ
e=DataFlowComponent --module-act-type=SPORADIC --module-max-inst=10 --inport=in:
TimedLong --config="multiply:int:1"
  File "C:\Program Files (x86)\OpenRTM-aist\1.1\utils\rtc-template\rtc-template.
py", line 268
    """
      ^
SyntaxError: invalid syntax


検索 http://openrtm.org/openrtm/ja/search/ で見てみましたが、類似のものは無いようなので、質問させていただきます。

どうぞよろしくお願いいたします。

成田


PS1:
環境は、
- windows8.1でvc10はインストール済み
- openRTM-1.1.0 vc10をインストール済
- http://www.openrtm.org/openrtm/ja/node/850 の内容は動作確認済です。
PS2:
以下でやっても、同様の、syntax errorがでます。
rtc-template.py -bcxx^
 --module-name=MRCConvertor --module-desc="Convertor component for
MobileRobot component"^
 --module-version=1.0.0 --module-vendor=AIST --module-category=Category^
 --module-comp-type=DataFlowComponent --module-act-type=PERIODIC^
 --module-max-inst=1^
 --inport=velFromInput:TimedFloatSeq^
 --outport=velToWheel:TimedFloatSeq


More information about the openrtm-users mailing list