PluginManager¶
- class PluginManagerClient¶
 - Canonical
 kortex_api.autogen.client_stubs.PluginManagerClientRpc
- __init__(router, namespace=None)¶
 Constructs a PluginManagerClient with an initialized
RouterClientand an optional namespace.- Parameters
 router (RouterClient) –
RouterClientused for the communicationnamespace (string) – Optional namespace on which to initialize the PluginManagerClient (defaults to
None)
- IsAlive(timeoutMs: int = 1000)¶
 Returns
Trueif the Service Server is detected online beforetimeoutMsis expired,Falseotherwise.- Parameters
 timeoutMs (unsigned int) – The maximum time to wait for an answer from the server
- Return type
 bool
- LaunchPlugin(pluginhandle, deviceId=0, options=RouterClientSendOptions())¶
 - The
CONFIGUREpermission is necessary to call this RPC.Launch an installed plugin- Parameters
 pluginhandle (PluginHandle) –
deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
 
- ShutDownPlugin(pluginhandle, deviceId=0, options=RouterClientSendOptions())¶
 - The
CONFIGUREpermission is necessary to call this RPC.Shut down a running plugin- Parameters
 pluginhandle (PluginHandle) –
deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
 
- ShutDownAllPlugins(deviceId = 0, options = RouterClientSendOptions())¶
 - The
CONFIGUREpermission is necessary to call this RPC.Shut down all running plugins- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
 
- OnNotificationPluginUpdatedTopic(callback, notificationoptions)¶
 - The
READ_ONLYpermission is necessary to call this RPC.Notification of plugin update events- Parameters
 callback (function) – Function callback taking a
Kinova.Api.PluginManager.PluginUpdatedNotificationas only argument, and returningNone.notificationoptions (NotificationOptions) – Notification options
- Return type
 
 
- OnNotificationPluginInstallationTopic(callback, notificationoptions)¶
 - The
READ_ONLYpermission is necessary to call this RPC.Notification of plugin installation events- Parameters
 callback (function) – Function callback taking a
Kinova.Api.PluginManager.PluginInstallationNotificationas only argument, and returningNone.notificationoptions (NotificationOptions) – Notification options
- Return type
 
 
- Unsubscribe(notificationhandle, deviceId=0, options=RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Unsubscribe from PUB/SUB- Parameters
 notificationhandle (NotificationHandle) –
deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
 
- GetPluginInfo(pluginhandle, deviceId=0, options=RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Get info for a specific plugin- Parameters
 pluginhandle (PluginHandle) –
deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type
 
 
- GetPluginsList(deviceId = 0, options = RouterClientSendOptions())¶
 - The
READ_ONLYpermission is necessary to call this RPC.Get info of all plugins- Parameters
 deviceId (int) – Device’s Id called by rpc (optional)
options (RouterClientSendOptions) – Router options for sending the message
- Return type