[openrtm-users 01597] knowing the LifeCycleState of service provider

Matthieu BOUSSARD mboussar @ aisl.cs.tut.ac.jp
2011年 2月 24日 (木) 17:38:41 JST


Dear Sirs,

I'd like to know how to get the lifecycle state of a service provider 
component from one of its consumer.

I've got the following issue : One of my component, during his 
onExecuted function, calls a service from another component. During the 
activation of the complete set of components, if this component is 
activated before the service provider, the service call will fail, 
setting the component in a error state. I'd like to avoid any order in 
the component's activation, thus I'd like to check 1-if a service 
provider is connected (done using getObject) and 2-then also check if it 
has been activated (LifeCycleState == ACTIVE).

Could you explain me how to handle this issue ?


Thank you very much,
Best regards,

Matthieu




openrtm-users メーリングリストの案内