[openrtm-beginners:00597] OpenRTM pass value between two components.

venushkadharmasiri @ gmail.com venushkadharmasiri @ gmail.com
2016年 5月 12日 (木) 17:38:32 JST


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.



More information about the openrtm-beginners mailing list