OpenRTM pass value between two components.

2 個の投稿 / 0 new
最終投稿
venushka
オフライン
Last seen: 7年 10ヶ月 前
登録日: 2015-12-17 11:31
OpenRTM pass value between two components.

i'm developing simple components. I have Component A ( outport::RTC::GPSData) Component B (InPort::RTC::GPSData) I need to pass simple value to A->B ( A to B). To do that i used follwing code. Got following errors when i activate the componantB. Could you please help me.

'ControllerComp.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file. First-chance exception at 0x7541DAD8 in ControllerComp.exe: Microsoft C++ exception: omni::giopStream::CommFailure at memory location 0x0018EBC8. First-chance exception at 0x7541DAD8 in ControllerComp.exe: Microsoft C++ exception: CORBA::TRANSIENT at memory location 0x0018E20C. First-chance exception at 0x7541DAD8 in ControllerComp.exe: Microsoft C++ exception: NumberingPolicy::ObjectNotFound at memory location 0x0018EE5F. First-chance exception at 0x7541DAD8 in ControllerComp.exe: Microsoft C++ exception: CORBA::MARSHAL at memory location 0x010CEDCC.

Componant A (BSone)

RTC::ReturnCode_t Bone::onExecute(RTC::UniqueId ec_id) {

    GPSData Data; 
    Data.latitude = 123.0;
    m_gps_data_out.latitude = Data.latitude; 
    m_gps_data_outOut.write();
 }

Componant B (Controller)

RTC::ReturnCode_t Controller::onExecute(RTC::UniqueId ec_id) {

    if (m_b_one_inIn.isNew())
    {
        m_b_one_inIn.read();
        printf("%f \n", m_b_one_in.latitude); //ERROR
    }
}

Could you please help me to write 123.0 value in Component B.

  
PS: For your reference i attached System diagram.

Best, Ven.

未定義
Ando Noriaki
オフライン
Last seen: 1年 9ヶ月 前
登録日: 2011-09-04 17:20
[openrtm-beginners:00598] OpenRTM pass value between two compon

You need to subscribe ML.

Best regards,
Noriaki

2016年5月12日木曜日、さんは書きました:

> i'm developing simple components. I have Component A (
> outport::RTC::GPSData)
> Component B (InPort::RTC::GPSData) I need to pass simple value to A->B ( A
> to
> B). To do that i used follwing code. Got following errors when i activate
> the
> componantB. Could you please help me. 'ControllerComp.exe' (Win32): Loaded
> 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
> First-chance exception at 0x7541DAD8 in ControllerComp.exe: Microsoft C++
> exception: omni::giopStream::CommFailure at memory location 0x0018EBC8.
> First-chance exception at 0x7541DAD8 in ControllerComp.exe: Microsoft C++
> exception: CORBA::TRANSIENT at memory location 0x0018E20C. First-chance
> exception at 0x7541DAD8 in ControllerComp.exe: Microsoft C++ exception:
> NumberingPolicy::ObjectNotFound at memory location 0x0018EE5F. First-chance
> exception at 0x7541DAD8 in ControllerComp.exe: Microsoft C++ exception:
> CORBA::MARSHAL at memory location 0x010CEDCC. Componant A (BSone)
> RTC::ReturnCode_t Bone::onExecute(RTC::UniqueId ec_id) { GPSData Data;
> Data.latitude = 123.0; m_gps_data_out.latitude = Data.latitude;
> m_gps_data_outOut.write(); } Componant B (Controller) RTC::ReturnCode_t
> Controller::onExecute(RTC::UniqueId ec_id) { if (m_b_one_inIn.isNew()) {
> m_b_one_inIn.read(); printf("%f \n", m_b_one_in.latitude); //ERROR } }
> Could
> you please help me to write 123.0 value in Component B. PS: For your
> reference i attached System diagram. Best, Ven.
>
> _______________________________________________
> openrtm-beginners mailing list
> openrtm-beginners@openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-beginners
>

コメントを投稿するにはログインまたはユーザー登録を行ってください

ダウンロード

最新バージョン : 2.0.1-RELESE

統計

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

Choreonoid

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

OpenHRP3

動力学シミュレータ

OpenRTP

統合開発プラットフォーム

産総研RTC集

産総研が提供するRTC集

TORK

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

DAQ-Middleware

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