OpenRTM-aist-Python 2.0.2
|
Classes | |
class | ECFactoryPredicate |
class | FactoryPredicate |
class | Finalized |
class | InstanceName |
class | ModulePredicate |
Public Member Functions | |
__init__ (self, _manager=None) | |
init (*arg) | |
instance () | |
terminate (self) | |
shutdown (self) | |
setModuleInitProc (self, proc) | |
activateManager (self) | |
runManager (self, no_block=False) | |
main (self) | |
join (self) | |
load (self, fname, initfunc) | |
unload (self, fname) | |
unloadAll (self) | |
getLoadedModules (self) | |
getLoadableModules (self) | |
registerFactory (self, profile, new_func, delete_func) | |
getFactoryProfiles (self) | |
registerECFactory (self, name, new_func, delete_func) | |
getModulesFactories (self) | |
createComponent (self, comp_args) | |
registerComponent (self, comp) | |
unregisterComponent (self, comp) | |
createContext (self, ec_args) | |
deleteComponent (self, instance_name=None, comp=None) | |
getComponent (self, instance_name) | |
getComponents (self) | |
getORB (self) | |
getPOA (self) | |
getPOAManager (self) | |
initManager (self, argv) | |
shutdownManagerServant (self) | |
shutdownManager (self) | |
shutdownOnNoRtcs (self) | |
initLogstreamFile (self) | |
initLogstreamPlugins (self) | |
initLogstreamOthers (self) | |
initLogger (self) | |
shutdownLogger (self) | |
initORB (self) | |
createORBOptions (self) | |
createORBEndpoints (self) | |
createORBEndpointOption (self, opt, endpoints) | |
shutdownORB (self) | |
initNaming (self) | |
shutdownNaming (self) | |
initExecContext (self) | |
initCpuAffinity (self) | |
initComposite (self) | |
initFactories (self) | |
initTimer (self) | |
shutdownTimer (self) | |
endpointPropertySwitch (self) | |
setEndpointProperty (self, objref) | |
initManagerServant (self) | |
shutdownComponents (self) | |
cleanupComponent (self, comp) | |
cleanupComponents (self) | |
notifyFinalized (self, comp) | |
procComponentArgs (self, comp_arg, comp_id, comp_conf) | |
bool procComponentArgs(const char* comp_arg,
coil.Properties& comp_id,
coil.Properties& comp_conf) | |
configureComponent (self, comp, prop) | |
void configureComponent(RTObject_impl* comp, const coil.Properties&
prop); | |
mergeProperty (self, prop, file_name) | |
formatString (self, naming_format, prop) | |
getLogbuf (self, name="manager") | |
getConfig (self) | |
publishPorts (self, comp) | |
subscribePorts (self, comp) | |
getPortsOnNameServers (self, nsname, kind) | |
connectDataPorts (self, port, target_ports) | |
connectServicePorts (self, port, target_ports) | |
initPreConnection (self) | |
initPreActivation (self) | |
initPreCreation (self) | |
invokeInitProc (self) | |
getManagerServant (self) | |
getNaming (self) | |
addTask (self, fn, period) | |
invoke (self, fn, delay) | |
removeTask (self, task) | |
addExecutionContext (self, ec) | |
removeExecutionContext (self, ec) | |
createdExecutionContexts (self) | |
Manager class
OpenRTM_aist.Manager.Manager.__init__ | ( | self, | |
_manager = None ) |
Protected Copy Constructor
OpenRTM_aist.Manager.Manager.activateManager | ( | self | ) |
OpenRTM_aist.Manager.Manager.addExecutionContext | ( | self, | |
ec ) |
self | |
ec | Execution context |
OpenRTM_aist.Manager.Manager.addTask | ( | self, | |
fn, | |||
period ) |
Add a task to the Manager timer.
This operation add a function or functional object to Manger's timer. It run until removeTask(). DO NOT block (Ex. sleep) in the registerd function.
self | |
fn | The Function run periodically. |
period | Period of fn execution. |
OpenRTM_aist.Manager.Manager.cleanupComponents | ( | self | ) |
This method deletes RT-Components.
This method deletes RT-Components registered by notifyFinalized().
void cleanupComponents();
OpenRTM_aist.Manager.Manager.connectDataPorts | ( | self, | |
port, | |||
target_ports ) |
self | |
port | |
target_ports | void connectDataPorts(PortService_ptr port,PortServiceList_var& target_ports) |
OpenRTM_aist.Manager.Manager.connectServicePorts | ( | self, | |
port, | |||
target_ports ) |
self | |
port | |
target_ports | void connectServicePorts(PortService_ptr port,PortServiceList_var& target_ports) |
OpenRTM_aist.Manager.Manager.createComponent | ( | self, | |
comp_args ) |
Create RT-Components
Create specified RT-Component's instances via registered Factory. When its instances have been created successfully, the following processings are also executed.
module_name | Target RT-Component names for the creation |
OpenRTM_aist.Manager.Manager.createContext | ( | self, | |
ec_args ) |
Create Context
ExecutionContextBase* createContext(const char* ec_args);
OpenRTM_aist.Manager.Manager.createdExecutionContexts | ( | self | ) |
self |
OpenRTM_aist.Manager.Manager.createORBEndpointOption | ( | self, | |
opt, | |||
endpoints ) |
Create a command optional line of Endpoint of ORB.
opt | ORB options |
endpoints | Endpoints list |
void createORBEndpointOption(std.string& opt, coil.vstring& endpoints);
OpenRTM_aist.Manager.Manager.createORBEndpoints | ( | self | ) |
Create Endpoints
Create Endpoints from the configuration.
endpoints | Endpoints list |
void createORBEndpoints(coil.vstring& endpoints);
OpenRTM_aist.Manager.Manager.createORBOptions | ( | self | ) |
ORB command option creation
OpenRTM_aist.Manager.Manager.deleteComponent | ( | self, | |
instance_name = None, | |||
comp = None ) |
Unregister RT-Component that is registered in the Manager
OpenRTM_aist.Manager.Manager.endpointPropertySwitch | ( | self | ) |
ManagerServant initialization
Getting corba.endpoint_property value and return them as a tuple. This function obtains corbaendpoint_property that specifies if IPv4/IPv6 addresses and IP address numbes to be published, and it returnes them as tuple.
OpenRTM_aist.Manager.Manager.getComponent | ( | self, | |
instance_name ) |
Get RT-Component's pointer
OpenRTM_aist.Manager.Manager.getComponents | ( | self | ) |
Get all RT-Component's pointer
OpenRTM_aist.Manager.Manager.getFactoryProfiles | ( | self | ) |
Get profiles of factories.
Get profiles of factories.
OpenRTM_aist.Manager.Manager.getLoadableModules | ( | self | ) |
Get loadable module names
OpenRTM_aist.Manager.Manager.getLoadedModules | ( | self | ) |
Get loaded module names std.vector<coil.Properties> getLoadedModules();
OpenRTM_aist.Manager.Manager.getManagerServant | ( | self | ) |
self |
OpenRTM_aist.Manager.Manager.getModulesFactories | ( | self | ) |
Get the list of all RT-Component Factory
OpenRTM_aist.Manager.Manager.getNaming | ( | self | ) |
self |
OpenRTM_aist.Manager.Manager.getORB | ( | self | ) |
Get the pointer to the ORB
OpenRTM_aist.Manager.Manager.getPOA | ( | self | ) |
Get the pointer to the RootPOA
OpenRTM_aist.Manager.Manager.getPortsOnNameServers | ( | self, | |
nsname, | |||
kind ) |
self | |
nsname | |
kind |
PortServiceList_var getPortsOnNameServers(std.string nsname,std.string kind)
OpenRTM_aist.Manager.Manager.init | ( | * | arg | ) |
Initializa manager
This is the static function to tintialize the Manager. The Manager is initialized by given arguments. At the starting the manager, this static function "must" be called from application program. The manager has two static functions to get the instance, "init()" and "instance()". Since initializing process is only performed by the "init()" function, the "init()" has to be called at the beginning of the lifecycle of the Manager. function.
argv | The array of the command line arguments. |
OpenRTM_aist.Manager.Manager.initComposite | ( | self | ) |
PeriodicECSharedComposite initialization
OpenRTM_aist.Manager.Manager.initCpuAffinity | ( | self | ) |
self |
OpenRTM_aist.Manager.Manager.initFactories | ( | self | ) |
Factories initialization
Initialize buffer factories, thread factories, publisher factories, provider factories, and consumer factories.
OpenRTM_aist.Manager.Manager.initLogger | ( | self | ) |
System logger initialization
OpenRTM_aist.Manager.Manager.initLogstreamFile | ( | self | ) |
self |
OpenRTM_aist.Manager.Manager.initLogstreamOthers | ( | self | ) |
self |
OpenRTM_aist.Manager.Manager.initLogstreamPlugins | ( | self | ) |
self |
OpenRTM_aist.Manager.Manager.initManager | ( | self, | |
argv ) |
Manager internal initialization
OpenRTM_aist.Manager.Manager.initManagerServant | ( | self | ) |
ManagerServant initialization
OpenRTM_aist.Manager.Manager.initORB | ( | self | ) |
CORBA ORB initialization
OpenRTM_aist.Manager.Manager.initPreActivation | ( | self | ) |
self | void initPreActivation() |
OpenRTM_aist.Manager.Manager.initPreConnection | ( | self | ) |
self | void initPreConnection() |
OpenRTM_aist.Manager.Manager.initPreCreation | ( | self | ) |
self | void initPreCreation() |
OpenRTM_aist.Manager.Manager.instance | ( | ) |
Get instance of the manager
This is the static function to get the instance of the Manager. Before calling this function, ensure that the initialization function "init()" is called.
OpenRTM_aist.Manager.Manager.invoke | ( | self, | |
fn, | |||
delay ) |
OpenRTM_aist.Manager.Manager.invokeInitProc | ( | self | ) |
self | void invokeInitProc() |
OpenRTM_aist.Manager.Manager.join | ( | self | ) |
Wait for Manager's termination
self |
OpenRTM_aist.Manager.Manager.load | ( | self, | |
fname, | |||
initfunc ) |
[CORBA interface] Load module
Load module (shared library, DLL etc..) by file name, and invoke initialize function.
fname | The module file name |
initfunc | The initialize function name |
OpenRTM_aist.Manager.Manager.main | ( | self | ) |
The main function of the Manager main thread.
self |
OpenRTM_aist.Manager.Manager.notifyFinalized | ( | self, | |
comp ) |
This method deletes RT-Components.
The deleted RT-Component is registered. The registered RT-Components are deleted by cleanupComponents().
Deleted | RT component |
void notifyFinalized(RTObject_impl* comp);
OpenRTM_aist.Manager.Manager.publishPorts | ( | self, | |
comp ) |
self | |
comp |
void publishPorts(RTObject_impl* comp)
OpenRTM_aist.Manager.Manager.registerComponent | ( | self, | |
comp ) |
Register RT-Component directly without Factory
OpenRTM_aist.Manager.Manager.registerECFactory | ( | self, | |
name, | |||
new_func, | |||
delete_func ) |
Register ExecutionContext Factory
OpenRTM_aist.Manager.Manager.registerFactory | ( | self, | |
profile, | |||
new_func, | |||
delete_func ) |
Register RT-Component Factory
OpenRTM_aist.Manager.Manager.removeExecutionContext | ( | self, | |
ec ) |
self | |
ec | Execution context |
OpenRTM_aist.Manager.Manager.removeTask | ( | self, | |
task ) |
Remove the task from the Manager timer.
This operation remove the specify function.
self | |
id | Task ID |
OpenRTM_aist.Manager.Manager.runManager | ( | self, | |
no_block = False ) |
Run the Manager
This operation processes the main event loop of the Manager. In this main loop, CORBA's ORB event loop or other processes are performed. As the default behavior, this operation is going to blocking mode and never returns until manager.destroy() is called. When the given argument "no_block" is set to "true", this operation creates a thread to process the event loop internally, and it doesn't block and returns.
no_block | false: Blocking mode, true: non-blocking mode. |
OpenRTM_aist.Manager.Manager.setEndpointProperty | ( | self, | |
objref ) |
Setting endpoint information to property
This function sets endpoint information to corba.endpoints property. It extract endpoint information (list of IP address, port number) from given object reference, and set them to corba.endpoints, corba.endpoints_ipv4, corba.endpoints_ipv6
objref | A object reference |
OpenRTM_aist.Manager.Manager.setModuleInitProc | ( | self, | |
proc ) |
Run the Manager
This operation sets the initial procedure call to process module initialization, other user defined initialization and so on. The given procedure will be called at the proper timing after the manager initialization, activation and run.
proc | A function pointer to the initial procedure call |
OpenRTM_aist.Manager.Manager.shutdownLogger | ( | self | ) |
System Logger finalization
OpenRTM_aist.Manager.Manager.shutdownOnNoRtcs | ( | self | ) |
OpenRTM_aist.Manager.Manager.shutdownORB | ( | self | ) |
ORB finalization
OpenRTM_aist.Manager.Manager.subscribePorts | ( | self, | |
comp ) |
self | |
comp |
void subscribePorts(RTObject_impl* comp)
OpenRTM_aist.Manager.Manager.unload | ( | self, | |
fname ) |
Unload module
Unload shared library.
pathname | Module file name |
OpenRTM_aist.Manager.Manager.unloadAll | ( | self | ) |
Unload module
Unload all loaded shared library.
OpenRTM_aist.Manager.Manager.unregisterComponent | ( | self, | |
comp ) |
Register RT-Component directly without Factory