[openrtm-users 02859] ロボットアーム共通I/F対応プロバイダ型RTCのVS2010でのビルドエラー

藤間様

栗原と申します。

共通インターフェースを作成された方から回答があると
いいのですが、
コメントさせて頂きます。
ManipulatorCommonInterface_Common.idl
の以下のオペレーションのパラメータ名がstruct ManipInfoと
かぶっているのが問題のようです。
RETURN_ID getManipInfo(out ManipInfo manipInfo);

上記を、以下のように書き換えて、
再度コンパイルしてみてください。
RETURN_ID getManipInfo(out ManipInfo mInfo);

上記の変更で、私の環境ではビルドできることを確認してます。
動作環境
OS Windows7(64bit)
OpenRTM-aist 1.1.0 C++(32bit)
CMake 2.8.8
Visual Studio 2010 Express

以上、
よろしくお願い致します。

2013年8月5日 15:45 :
> OpenRTM-usersの皆様
>
> 埼玉大学の藤間と申します。
> 現在、ロボットアーム制御機能共通インタフェースに対応したプロバイダ型RTC
> を作成しているのですが、
> Visual Studioでのビルドの段階でエラーが返ってきてしまい、困っております。
> エラーの内容は2種類で、IDLファイルの読み込みに関するものと関数の戻り値
> に関するものです。
>
> ・IDLファイルの読み込みに関するエラー
> 5> C:/WorkSpace3/RobotArmCommonInterface/idl/ManipulatorCommonInterface
> _Common.idl:38: Declaration of parameter 'manipInfo' clashes with use of
> identifier 'ManipInfo'
> 5> C:/WorkSpace3/RobotArmCommonInterface/idl/ManipulatorCommonInterface
> _Common.idl:38: ('ManipInfo' used here)
> 5> omniidl: 1 error.
>
> ・関数の戻り値に関するエラー
> 9> c:\workspace3\robotarmcommoninterface\include\
> robotarmcommoninterface\ManipulatorCommonInterface_MiddleLevelSVC_impl.h
> (71): error C2555: 'ManipulatorCommonInterface_MiddleSVC_impl::
> closeGripper': オーバーライドする仮想関数の戻り値の型が異なり、'_impl_
> ManipulatorCommonInterface_Middle::closeGripper' の covariant ではありま
> せん。
> 9> c:\workspace3\robotarmcommoninterface\build\idl\
> ManipulatorCommonInterface_MiddleLevel.hh(283) : '_impl_
> ManipulatorCommonInterface_Middle::closeGripper' の宣言を確認してくださ
> い。
> この様なエラーが全オペレーションに関して返ってきます。
>
> 以下に、RTC作成手順の詳細を示します。
>

未定義

ダウンロード

最新バージョン : 2.1.0-RELESE

統計

Webサイト統計
ユーザ数:3399
プロジェクト統計
RTコンポーネント309
RTミドルウエア35
ツール25
文書・仕様書2

OpenRTM@Github

OpenRTM-aist GitHubサイト

ROS

Robot Operating System

Choreonoid

モーションエディタ/シミュレータ

DAQ-Middleware

ネットワーク分散環境でデータ収集用ソフトウェアを容易に構築するためのソフトウェア・フレームワーク

産総研が提供するRTC集

東京オープンソースロボティクス協会