PluginManager¶
- class PluginManagerClient¶
- Canonical
kortex_api.autogen.client_stubs.PluginManagerClientRpc
- __init__(router, namespace=None)¶
Constructs a PluginManagerClient with an initialized
RouterClient
and an optional namespace.- Parameters
router (RouterClient) –
RouterClient
used for the communicationnamespace (string) – Optional namespace on which to initialize the PluginManagerClient (defaults to
None
)
- IsAlive(timeoutMs: int = 1000)¶
Returns
True
if the Service Server is detected online beforetimeoutMs
is expired,False
otherwise.- 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
CONFIGURE
permission 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
CONFIGURE
permission 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
CONFIGURE
permission 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_ONLY
permission is necessary to call this RPC.Notification of plugin update events- Parameters
callback (function) – Function callback taking a
Kinova.Api.PluginManager.PluginUpdatedNotification
as only argument, and returningNone
.notificationoptions (NotificationOptions) – Notification options
- Return type
- OnNotificationPluginInstallationTopic(callback, notificationoptions)¶
- The
READ_ONLY
permission is necessary to call this RPC.Notification of plugin installation events- Parameters
callback (function) – Function callback taking a
Kinova.Api.PluginManager.PluginInstallationNotification
as only argument, and returningNone
.notificationoptions (NotificationOptions) – Notification options
- Return type
- Unsubscribe(notificationhandle, deviceId=0, options=RouterClientSendOptions())¶
- The
READ_ONLY
permission 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_ONLY
permission 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_ONLY
permission 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