Classes | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Static Protected Attributes | Static Private Member Functions
eu.intermodalics.nodelet_manager.TangoInitializationHelper Class Reference

List of all members.

Classes

class  DefaultTangoServiceConnection

Static Public Member Functions

static final boolean bindTangoService (final Activity activity, ServiceConnection connection)
static boolean isTangoServiceBound ()
static boolean isTangoVersionOk ()
static final int loadTangoRosNodeSharedLibrary ()
static final int loadTangoSharedLibrary ()
static ServiceConnection NewDefaultServiceConnection ()
static ServiceConnection NewDefaultServiceConnection (DefaultTangoServiceConnection.AfterConnectionCallback callback)
static final void unbindTangoService (final Context context, ServiceConnection connection)

Static Public Attributes

static final int ARCH_ARM32 = 2
static final int ARCH_ARM64 = 1
static final int ARCH_DEFAULT = 0
static final int ARCH_ERROR = -2
static final int ARCH_FALLBACK = -1
static final int ARCH_X86 = 4
static final int ARCH_X86_64 = 3

Static Protected Member Functions

static native boolean isTangoVersionOk (Activity callerActivity)
static native boolean setBinderTangoService (IBinder nativeTangoServiceBinder)

Static Protected Attributes

static boolean mIsTangoServiceBound
static boolean mIsTangoVersionOk

Static Private Member Functions

static boolean testTangoVersionOk (Activity activity)

Detailed Description

Functions for simplifying the process of initializing TangoService, and function handles loading correct libtango_client_api.so.

Definition at line 33 of file TangoInitializationHelper.java.


Member Function Documentation

static final boolean eu.intermodalics.nodelet_manager.TangoInitializationHelper.bindTangoService ( final Activity  activity,
ServiceConnection  connection 
) [inline, static]

Only for apps using the C API: Initializes the underlying TangoService for native apps.

Returns:
returns false if the device doesn't have the Tango running as Android Service. Otherwise ture.

Definition at line 77 of file TangoInitializationHelper.java.

Definition at line 62 of file TangoInitializationHelper.java.

static native boolean eu.intermodalics.nodelet_manager.TangoInitializationHelper.isTangoVersionOk ( Activity  callerActivity) [static, protected]

Check if the tango version is correct.

Parameters:
callerActivitythe caller activity of this function.
Returns:
true if the version of tango is ok.

Definition at line 66 of file TangoInitializationHelper.java.

TangoInitializationHelper depends on the same library as TangoNodeletManager. This code is added to ensure that the native functions will be properly linked; loading the same library twice has no side effects.

Definition at line 187 of file TangoInitializationHelper.java.

Load the libtango_client_api.so library based on different Tango device setup.

Returns:
returns the loaded architecture id.

Definition at line 119 of file TangoInitializationHelper.java.

Creates a DefaultTangoServiceConnection with no callback.

Returns:
New ServiceConnection handler that can be used with bindTangoService

Definition at line 203 of file TangoInitializationHelper.java.

static ServiceConnection eu.intermodalics.nodelet_manager.TangoInitializationHelper.NewDefaultServiceConnection ( DefaultTangoServiceConnection.AfterConnectionCallback  callback) [inline, static]

Creates a DefaultTangoServiceConnection with a custom callback.

Parameters:
callbackFunction to be called after connection attempt is finished.
Returns:
New ServiceConnection handler that can be used with bindTangoService

Definition at line 212 of file TangoInitializationHelper.java.

static native boolean eu.intermodalics.nodelet_manager.TangoInitializationHelper.setBinderTangoService ( IBinder  nativeTangoServiceBinder) [static, protected]

Binds to the tango service.

Parameters:
nativeTangoServiceBinderThe native binder object.
Returns:
true if binding to the Tango service ended successfully.
static boolean eu.intermodalics.nodelet_manager.TangoInitializationHelper.testTangoVersionOk ( Activity  activity) [inline, static, private]

Tests if Tango Version is ok using native functions, and sets status variable.

Parameters:
activityCaller activity.
Returns:
True if Tango Version is Ok.

Definition at line 222 of file TangoInitializationHelper.java.

static final void eu.intermodalics.nodelet_manager.TangoInitializationHelper.unbindTangoService ( final Context  context,
ServiceConnection  connection 
) [inline, static]

Only for apps using the C API: Unbinds the underlying TangoService for native apps.

Definition at line 107 of file TangoInitializationHelper.java.


Member Data Documentation

Definition at line 38 of file TangoInitializationHelper.java.

Definition at line 37 of file TangoInitializationHelper.java.

Definition at line 36 of file TangoInitializationHelper.java.

Definition at line 34 of file TangoInitializationHelper.java.

Definition at line 35 of file TangoInitializationHelper.java.

Definition at line 40 of file TangoInitializationHelper.java.

Definition at line 39 of file TangoInitializationHelper.java.

Definition at line 42 of file TangoInitializationHelper.java.

Definition at line 43 of file TangoInitializationHelper.java.


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


TangoRosStreamer
Author(s):
autogenerated on Thu Jun 6 2019 19:49:58