OpenRTM pass value between two components.

2 posts / 0 new
Last post
venushka
Offline
Last seen: 4 years 5 months ago
Joined: 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.

Undefined
Ando Noriaki
Offline
Last seen: 5 years 1 month ago
Joined: 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
>

Log in or register to post comments

Download

latest Releases

For Begginers

Windows msi(installer) package (only trying samples)

C++,Python,Java,
Toolsを含む
1.2.1-RELEASE

Development environment is required for RT-Component development. See download page for details.

Number of Projects

Choreonoid

Motion editor/Dynamics simulator

OpenHRP3

Dynamics simulator

OpenRTP

Integrated Development Platform

AIST RTC collection

RT-Components collection by AIST

TORK

Tokyo Opensource Robotics Association

DAQ-Middleware

Middleware for DAQ (Data Aquisition) by KEK