OpenRTM-aist-Python 2.0.2
OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase Class Reference

More...

Inheritance diagram for OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase:
OpenRTM_aist.RTObject.RTObject_impl

Public Member Functions

 __init__ (self, manager)
 
 initialize (self)
 
 finalize (self)
 
 exit (self)
 
 is_alive (self, exec_context)
 
 get_owned_contexts (self)
 
 get_context (self, ec_id)
 
 get_participating_contexts (self)
 
 get_context_handle (self, cxt)
 
 get_component_profile (self)
 
 get_ports (self)
 
 attach_context (self, exec_context)
 
 detach_context (self, ec_id)
 
 on_initialize (self)
 
 on_finalize (self)
 
 on_startup (self, ec_id)
 
 on_shutdown (self, ec_id)
 
 on_activated (self, ec_id)
 
 on_deactivated (self, ec_id)
 
 on_error (self, ec_id)
 
 on_aborting (self, ec_id)
 
 on_reset (self, ec_id)
 
 on_action (self, ec_id)
 
- Public Member Functions inherited from OpenRTM_aist.RTObject.RTObject_impl
 __del__ (self)
 
 onInitialize (self)
 
 onFinalize (self)
 
 onStartup (self, ec_id)
 
 onShutdown (self, ec_id)
 
 onActivated (self, ec_id)
 
 onDeactivated (self, ec_id)
 
 onExecute (self, ec_id)
 
 onAborting (self, ec_id)
 
 onError (self, ec_id)
 
 onReset (self, ec_id)
 
 onStateUpdate (self, ec_id)
 
 onRateChanged (self, ec_id)
 
 onAction (self, ec_id)
 
 get_owned_organizations (self)
 
 get_sdo_id (self)
 
 get_sdo_type (self)
 
 get_device_profile (self)
 
 get_service_profiles (self)
 
 get_service_profile (self, _id)
 
 get_sdo_service (self, _id)
 
 get_configuration (self)
 
 get_monitoring (self)
 
 get_organizations (self)
 
 get_status_list (self)
 
 get_status (self, name)
 
 getInstanceName (self)
 const char* getInstanceName()
 
 setInstanceName (self, instance_name)
 void setInstanceName(const char* instance_name);
 
 getTypeName (self)
 const char* getTypeName()
 
 getDescription (self)
 const char* getDescription()
 
 getVersion (self)
 const char* getVersion()
 
 getVendor (self)
 const char* getVendor()
 
 getCategory (self)
 const char* getCategory()
 
 getNamingNames (self)
 std.vector<std.string> getNamingNames();
 
 setObjRef (self, rtobj)
 void setObjRef(const RTObject_ptr rtobj);
 
 getObjRef (self)
 RTObject_ptr getObjRef() const;
 
 setProperties (self, prop)
 
 getProperties (self)
 
 bindParameter (self, param_name, var, def_val, trans=None)
 template <typename VarType> bool bindParameter(const char* param_name, VarType& var, const char* def_val, bool (trans)(VarType&, const char) = coil.stringTo)
 
 getConfigService (self)
 
 updateParameters (self, config_set)
 void updateParameters(const char* config_set);
 
 registerPort (self, port)
 
 registerInPort (self, name, inport)
 
 registerOutPort (self, name, outport)
 void registerOutPort(const char* name, OutPortBase& outport);
 
 removeInPort (self, port)
 
 removeOutPort (self, port)
 
 deletePort (self, port)
 
 deletePortByName (self, port_name)
 
 getExecutionContext (self, ec_id)
 
 getExecutionRate (self, ec_id)
 
 setExecutionRate (self, ec_id, rate)
 
 isOwnExecutionContext (self, ec_id)
 
 deactivate (self, ec_id)
 
 activate (self, ec_id)
 
 reset (self, ec_id)
 
 addSdoServiceProvider (self, prof, provider)
 
 removeSdoServiceProvider (self, id)
 
 addSdoServiceConsumer (self, prof)
 
 removeSdoServiceConsumer (self, id)
 
 removeSdoServiceConsumerStartThread (self, id)
 
 readAll (self)
 
 writeAll (self)
 
 setReadAll (self, read=True, completion=False)
 
 setWriteAll (self, write=True, completion=False)
 
 finalizePorts (self)
 
 addPreComponentActionListener (self, listener_type, memfunc)
 
 removePreComponentActionListener (self, listener_type, listener)
 
 addPostComponentActionListener (self, listener_type, memfunc)
 
 removePostComponentActionListener (self, listener_type, listener)
 
 addPortActionListener (self, listener_type, memfunc)
 
 removePortActionListener (self, listener_type, listener)
 
 addExecutionContextActionListener (self, listener_type, memfunc)
 
 removeExecutionContextActionListener (self, listener_type, listener)
 
 addPortConnectListener (self, listener_type, memfunc)
 
 removePortConnectListener (self, listener_type, listener)
 
 addPortConnectRetListener (self, listener_type, memfunc)
 
 removePortConnectRetListener (self, listener_type, listener)
 
 addConfigurationParamListener (self, type, memfunc)
 
 removeConfigurationParamListener (self, type, listener)
 
 addConfigurationSetListener (self, listener_type, memfunc)
 
 removeConfigurationSetListener (self, type, listener)
 
 addConfigurationSetNameListener (self, type, memfunc)
 
 removeConfigurationSetNameListener (self, type, listener)
 
 addPreFsmActionListener (self, listener_type, memfunc)
 
 removePreFsmActionListener (self, listener_type, listener)
 
 addPostFsmActionListener (self, listener_type, memfunc)
 
 removePostFsmActionListener (self, listener_type, listener)
 
 addFsmProfileListener (self, listener_type, memfunc)
 
 removeFsmProfileListener (self, listener_type, listener)
 
 addFsmStructureListener (self, listener_type, memfunc)
 
 removeFsmStructureListener (self, listener_type, listener)
 
 shutdown (self)
 
 getPrivateContextOptions (self, ec_args)
 getting individual EC options from RTC's configuration file
 
 getGlobalContextOptions (self, global_ec_props)
 getting global EC options from rtc.conf
 
 getContextOptions (self, ec_args)
 getting EC options
 
 findExistingEC (self, ec_arg)
 fiding existing EC from the factory
 
 createContexts (self, ec_args)
 creating, initializing and binding context
 
 setINSObjRef (self, obj)
 omniINSPOAから取得したオブジェクトを登録
 

Detailed Description

This is a class to be a base of each RT-Component. This is a implementation class of lightweightRTComponent in Robotic Technology Component specification

Constructor & Destructor Documentation

◆ __init__()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.__init__ ( self,
manager )

Consructor

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

Member Function Documentation

◆ attach_context()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.attach_context ( self,
exec_context )

[CORBA interface] Attach ExecutionContext.

Inform this RTC that it is participating in the given execution context. Return a handle that represents the association of this RTC with the context. This operation is intended to be invoked by ExecutionContextOperations.add_component. It is not intended for use by other clients.

Parameters
exec_contextPrticipating ExecutionContext
Returns
ExecutionContext Handle

UniqueId attach_context(ExecutionContext_ptr exec_context)

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ detach_context()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.detach_context ( self,
ec_id )

[CORBA interface] Attach ExecutionContext.

Inform this RTC that it is no longer participating in the given execution context. This operation is intended to be invoked by ExecutionContextOperations.remove_component. It is not intended for use by other clients. Constraints

  • This operation may not be invoked if this RTC is not already participating in the execution context. Such a call shall fail with ReturnCode_t.PRECONDITION_NOT_MET.
  • This operation may not be invoked if this RTC is Active in the indicated execution context. Otherwise, it shall fail with ReturnCode_t.PRECONDITION_NOT_MET.
Parameters
ec_idDettaching ExecutionContext Handle
Returns

ReturnCode_t detach_context(UniqueId exec_handle)

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ exit()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.exit ( self)

Stop the RTC's execution context(s) and finalize it along with its contents.

Any execution contexts for which the RTC is the owner shall be stopped. If the RTC participates in any execution contexts belonging to another RTC that contains it, directly or indirectly (i.e. the containing RTC is the owner of the ExecutionContext), it shall be deactivated in those contexts. After the RTC is no longer Active in any Running execution context, it and any RTCs contained transitively within it shall be finalized.

Constraints

  • An RTC cannot be exited if it has not yet been initialized. Any attempt to exit an RTC that is in the Created state shall fail with ReturnCode_t.PRECONDITION_NOT_MET.
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ finalize()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.finalize ( self)

Finalize the RTC for preparing it for destruction

This invocation of this operation shall result in the invocation of the callback ComponentAction.on_finalize.

Constraints

  • An RTC may not be finalized while it is participating in any execution context. It must first be removed with ExecutionContextOperations.remove_component. Otherwise, this operation shall fail with ReturnCode_t.PRECONDITION_NOT_MET.
  • An RTC may not be finalized while it is in the Created state. Any attempt to invoke this operation while in that state shall fail with ReturnCode_t.PRECONDITION_NOT_MET.
  • Application developers are not expected to call this operation directly; it exists for use by the RTC infrastructure.
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ get_component_profile()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.get_component_profile ( self)

[RTObject CORBA interface] Get RTC's profile

This operation returns the ComponentProfile of the RTC

Returns
ComponentProfile

virtual ComponentProfile* get_component_profile()

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ get_context()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.get_context ( self,
ec_id )

[CORBA interface] Get ExecutionContext.

Obtain a reference to the execution context represented by the given handle. The mapping from handle to context is specific to a particular RTC instance. The given handle must have been obtained by a previous call to attach_context on this RTC.

Parameters
ec_idExecutionContext handle
Returns
ExecutionContext

virtual ExecutionContext_ptr get_context(UniqueId exec_handle)

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ get_context_handle()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.get_context_handle ( self,
cxt )

[CORBA interface] Return a handle of a ExecutionContext

Parameters
ExecutionContext
Returns
ExecutionContextHandle

This operation returns a handle that is associated with the given execution context.

virtual ExecutionContextHandle_t get_context_handle(ExecutionContext_ptr cxt)

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ get_owned_contexts()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.get_owned_contexts ( self)

[CORBA interface] Get ExecutionContextList.

This operation returns a list of all execution contexts owned by this RTC.

Returns
ExecutionContext List

virtual ExecutionContextList* get_owned_contexts()

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ get_participating_contexts()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.get_participating_contexts ( self)

[CORBA interface] Get participating ExecutionContextList.

This operation returns a list of all execution contexts in which this RTC participates.

Returns
ExecutionContext List

virtual ExecutionContextList* get_participating_contexts()

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ get_ports()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.get_ports ( self)

[RTObject CORBA interface] Get Ports

This operation returns a list of the RTCs ports.

Returns
PortList

virtual PortServiceList* get_ports()

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ initialize()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.initialize ( self)

Initialize the RTC that realizes this interface.

The invocation of this operation shall result in the invocation of the callback ComponentAction.on_initialize.

Constraints

  • An RTC may be initialized only while it is in the Created state. Any attempt to invoke this operation while in another state shall fail with ReturnCode_t.PRECONDITION_NOT_MET.
  • Application developers are not expected to call this operation directly; it exists for use by the RTC infrastructure.
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ is_alive()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.is_alive ( self,
exec_context )

Confirm whether RTC is an Alive state or NOT.

A component is alive or not regardless of the execution context from which it is observed. However, whether or not it is Active, Inactive, or in Error is dependent on the execution context(s) in which it is running. That is, it may be Active in one context but Inactive in another. Therefore, this operation shall report whether this RTC is either Active, Inactive or in Error; which of those states a component is in with respect to a particular context may be queried from the context itself.

Returns
Result of Alive state confirmation

virtual CORBA.Boolean is_alive(ExecutionContext_ptr exec_context)

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_aborting()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_aborting ( self,
ec_id )

[ComponentAction CORBA interface] Transition Error State

The RTC is transitioning from the Active state to the Error state in some execution context. This callback is invoked only a single time for time that the RTC transitions into the Error state from another state. This behavior is in contrast to that of on_error.

Parameters
ec_id
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_action()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_action ( self,
ec_id )

Consructor

◆ on_activated()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_activated ( self,
ec_id )

[ComponentAction CORBA interface] Activate RTC

The RTC has been activated in the given execution context.

Parameters
ec_id
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_deactivated()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_deactivated ( self,
ec_id )

[ComponentAction CORBA interface] Deactivate RTC

The RTC has been deactivated in the given execution context.

Parameters
ec_id
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_error()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_error ( self,
ec_id )

[ComponentAction CORBA interface] Error Processing of RTC

The RTC remains in the Error state. If the RTC is in the Error state relative to some execution context when it would otherwise be invoked from that context (according to the context’s ExecutionKind), this callback shall be invoked instead. For example,

  • If the ExecutionKind is PERIODIC, this operation shall be invoked in sorted order at the rate of the context instead of DataFlowComponentAction.on_execute and on_state_update.
  • If the ExecutionKind is EVENT_DRIVEN, this operation shall be invoked whenever FsmParticipantAction.on_action would otherwise have been invoked.
Parameters
ec_id
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_finalize()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_finalize ( self)

[ComponentAction CORBA interface] Finalize RTC

The RTC is being destroyed. Any final RTC-specific tear-down logic should be performed here.

Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_initialize()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_initialize ( self)

[ComponentAction CORBA interface] Initialize RTC

The RTC has been initialized and entered the Alive state. Any RTC-specific initialization logic should be performed here.

Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_reset()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_reset ( self,
ec_id )

[ComponentAction CORBA interface] Resetting RTC

The RTC is in the Error state. An attempt is being made to recover it such that it can return to the Inactive state. If the RTC was successfully recovered and can safely return to the Inactive state, this method shall complete with ReturnCode_t.OK. Any other result shall indicate that the RTC should remain in the Error state.

Parameters
ec_id
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_shutdown()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_shutdown ( self,
ec_id )

[ComponentAction CORBA interface] ShutDown RTC

The given execution context, in which the RTC is participating, has transitioned from Running to Stopped.

Parameters
ec_id
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.

◆ on_startup()

OpenRTM_aist.FiniteStateMachineComponentBase.FiniteStateMachineComponentBase.on_startup ( self,
ec_id )

[ComponentAction CORBA interface] StartUp RTC

The given execution context, in which the RTC is participating, has transitioned from Stopped to Running.

Parameters
ec_id
Returns

Reimplemented from OpenRTM_aist.RTObject.RTObject_impl.


The documentation for this class was generated from the following file: