Print

Print


HLA Region Olfat EL Mahy Eng_Olfat <a href="/index.htm?LOGON=A3%3Dind0610%26L%3DZ-ARCHIVE-SIW-CFI%26E%3Dquoted-printable%26P%3D100916%26B%3D--%26T%3Dtext%252Fhtml%3B%2520charset%3DUTF-8%26XSS%3D3%26header%3D1" target="_parent" >[log in to unmask]</a>

im trying to use DDM with a simple two dimensional region.

Dimention X and Dimention Y

i already created the routing spaces and the region

and it made no problem for federates to assigne for it

when the federates start in different region then goine a common region they see each other normaly and send update with no problem

 

the problem  is that is if a fedarate change its region to a differ regions the other federates which it was join still see this fedarate but with no update i have no idea what could be tah problem

i used almost all coomands in this arrangement

 

m_PositionSpaceHandle =
   ms_rtiAmb->getRoutingSpaceHandle("Position");

 

 m_XPositionDimensionHandle =
      ms_rtiAmb->getDimensionHandle("XPosition",m_PositionSpaceHandle);

 

m_subscriptionRegion =
    ms_rtiAmb->createRegion(m_PositionSpaceHandle, numberOfExtents);

 

m_subscriptionRegion->setRangeLowerBound(0,m_YPositionDimensionHandle,100);
  m_subscriptionRegion->setRangeUpperBound(0,m_YPositionDimensionHandle,500);
  m_subscriptionRegion->setRangeLowerBound(0,m_XPositionDimensionHandle,100);
  m_subscriptionRegion->setRangeUpperBound(0,m_XPositionDimensionHandle,500);
  ms_rtiAmb->notifyAboutRegionModification(*m_subscriptionRegion);

 

ms_rtiAmb->subscribeObjectClassAttributesWithRegion(ms_countryTypeId,
                                               *m_subscriptionRegion,
                                               *countryAttributes ,RTI::RTI_TRUE);

 

m_instanceId = ms_rtiAmb->registerObjectInstanceWithRegion
   (this->GetCountryRtiId(),
   theAttributes, theRegions, numberOfHandles);

 

and in update function i try to reuse the

 

m_subscriptionRegion->setRangeLowerBound(0,m_YPositionDimensionHandle,100);
  m_subscriptionRegion->setRangeUpperBound(0,m_YPositionDimensionHandle,500);
  m_subscriptionRegion->setRangeLowerBound(0,m_XPositionDimensionHandle,100);
  m_subscriptionRegion->setRangeUpperBound(0,m_XPositionDimensionHandle,500);
  ms_rtiAmb->notifyAboutRegionModification(*m_subscriptionRegion);

 

with differ values but it work like i discribed berore plz if any one can help

 

and another Quistion the statment

 

ms_rtiAmb->associateRegionForUpdates

 

i notice it is used very much but i can not figure iut where to put it in my program and if this is the problem

knowing that when i use it it gives alot of errors when try to run the federates

FED_HW: HwFederateAmbassador::~HwFederateAmbassador destructor called in FED
FED_HW: ERROR:ObjectNotKnown: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti
\libRTI\objMgt\src\RtiObjectManagerOutgoing.cpp", line 282: Object Handle 6
TAO (2424|2460) - Leader_Follower[0]::wait_for_event, handle_events failed
"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\ownMgt\src\RtiOwnershi
pManager_i.cpp", line 1317: RTIinternalError: "C:\ahau.vws\ngpro_v2.0.4_distrib_
v6_win\rting\rti\libRTI\ownMgt\src\RtiOwnershipManager_i.cpp", line 1315: system
 exception, ID 'IDL:omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\presMgt\src\RtiFederat
e.cpp", line 395: FederateOwnsAttributes: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_w
in\rting\rti\libRTI\ownMgt\src\RtiOwnershipManager_i.cpp", line 1108:
"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\presMgt\src\RtiFederat
e.cpp", line 498: RTIinternalError: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rti
ng\rti\libRTI\lbtsCalculator\src\RtiLbtsAdvisor.cpp", line 228: system exception
, ID 'IDL:omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\presMgt\src\RtiFederat
e.cpp", line 522: RTIinternalError: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rti
ng\rti\libRTI\lrcMgr\src\RtiLrcFederateManager.cpp", line 303: system exception,
 ID 'IDL:omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\ownMgt\src\RtiOwnershi
pManager_i.cpp", line 171: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\li
bRTI\ownMgt\src\RtiOwnershipManager_i.cpp", line 170: system exception, ID 'IDL:
omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\presMgt\src\RtiFederat
e.cpp", line 395: FederateOwnsAttributes: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_w
in\rting\rti\libRTI\ownMgt\src\RtiOwnershipManager_i.cpp", line 1108:
"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\presMgt\src\RtiFederat
e.cpp", line 498: RTIinternalError: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rti
ng\rti\libRTI\lbtsCalculator\src\RtiLbtsAdvisor.cpp", line 228: system exception
, ID 'IDL:omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\presMgt\src\RtiFederat
e.cpp", line 522: RTIinternalError: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rti
ng\rti\libRTI\lrcMgr\src\RtiLrcFederateManager.cpp", line 303: system exception,
 ID 'IDL:omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\ownMgt\src\RtiOwnershi
pManager_i.cpp", line 171: "C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\li
bRTI\ownMgt\src\RtiOwnershipManager_i.cpp", line 170: system exception, ID 'IDL:
omg.org/CORBA/TRANSIENT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\interconnect\src\RtiIn
terconnectAgent_i.cpp", line 308: RtiInterconnectAgent_i::disconnectInboundConne
ctions CORBA exception occurred: system exception, ID 'IDL:omg.org/CORBA/TRANSIE
NT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\interconnect\src\RtiIn
terconnectAgent_i.cpp", line 353: RtiInterconnectAgent_i::disconnectGatewayFromR
emoteEventChannel corba exception occurred: system exception, ID 'IDL:omg.org/CO
RBA/TRANSIENT:1.0'
OMG minor code (2), described as '*unknown description*', completed = NO

"C:\ahau.vws\ngpro_v2.0.4_distrib_v6_win\rting\rti\libRTI\presMgt\src\RtiFederat
ionFactory.cpp", line 68: Unexpected Exception!

 

so if any one know a soln plz help

 



To unsubscribe from the Z-ARCHIVE-SIW-CFI list, click the following link:
https://discussions.sisostds.org/index.htm?SUBED1=Z-ARCHIVE-SIW-CFI