2 package com.introlab.rtabmap;
3 import android.os.IBinder;
4 import android.view.KeyEvent;
5 import android.util.Log;
18 Log.e(
RTABMapActivity.class.getSimpleName(),
"ERROR! Unable to load libtango_client_api.so!");
20 System.loadLibrary(
"NativeRTABMap");
28 public static native
void setScreenRotation(
int displayRotation,
int cameraRotation);
30 public static native
int openDatabase(String databasePath,
boolean databaseInMemory,
boolean optimize);
31 public static native
int openDatabase2(String databaseSource, String databasePath,
boolean databaseInMemory,
boolean optimize);
41 public static native
void onPause();
47 public static native
void setupGraphic(
int width,
int height);
50 public static native
int render();
54 public static native
void setCamera(
int cameraIndex);
57 public static native
void onTouchEvent(
int touchCount,
int event0,
58 float x0,
float y0,
float x1,
float y1);
65 public static native
void setMeshRendering(
boolean enabled,
boolean withTexture);
81 public static native
void setFOV(
float value);
84 public static native
void setLighting(
boolean enabled);
95 public static native
void setGPS(
104 public static native
void save(String outputDatabasePath);
107 float cloudVoxelSize,
108 boolean regenerateCloud,
114 float optimizedVoxelSize,
116 int optimizedMaxPolygons,
117 float optimizedColorRadius,
118 boolean optimizedCleanWhitePolygons,
119 int optimizedMinClusterSize,
120 float optimizedMaxTextureDistance,
121 int optimizedMinTextureClusterSize,
122 boolean blockRendering);
static native int getTotalPoints()
static native void setupGraphic(int width, int height)
static native void setLighting(boolean enabled)
static native void setMinCloudDepth(float value)
static native void setOrthoCropFactor(float value)
static native void setMeshAngleTolerance(float value)
static native void setMeshRendering(boolean enabled, boolean withTexture)
static native void setTrajectoryMode(boolean enabled)
static native int setMappingParameter(String key, String value)
static native void setScreenRotation(int displayRotation, int cameraRotation)
static native void setBackgroundColor(float gray)
static native String getStatus()
static native boolean exportMesh(float cloudVoxelSize, boolean regenerateCloud, boolean meshing, int textureSize, int textureCount, int normalK, boolean optimized, float optimizedVoxelSize, int optimizedDepth, int optimizedMaxPolygons, float optimizedColorRadius, boolean optimizedCleanWhitePolygons, int optimizedMinClusterSize, float optimizedMaxTextureDistance, int optimizedMinTextureClusterSize, boolean blockRendering)
static native void setClusterRatio(float value)
static native void setMapCloudShown(boolean shown)
static final int ARCH_ERROR
static native void setAppendMode(boolean enabled)
static native void setOdomCloudShown(boolean shown)
static native void setNodesFiltering(boolean enabled)
static native void setGridRotation(float value)
static native float getUpdateTime()
static native int openDatabase(String databasePath, boolean databaseInMemory, boolean optimize)
static native void setMaxCloudDepth(float value)
static native void setMeshTriangleSize(int value)
static native void setBackfaceCulling(boolean enabled)
static native void setCameraColor(boolean enabled)
static native void onPause()
static native void setRawScanSaved(boolean enabled)
static native void setLocalizationMode(boolean enabled)
static native int openDatabase2(String databaseSource, String databasePath, boolean databaseInMemory, boolean optimize)
static native void setGPS(double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing)
static native void setCloudDensityLevel(int value)
static native int getTotalWords()
static native void cancelProcessing()
static native int getLoopClosureId()
static native void setPointSize(float value)
static native void setRenderingTextureDecimation(int value)
static native void resetMapping()
static final int loadTangoSharedLibrary()
static native void setCamera(int cameraIndex)
static native void setPausedMapping(boolean paused)
static native void setGridVisible(boolean visible)
static native boolean writeExportedMesh(String directory, String name)
static native boolean onTangoServiceConnected(IBinder binder)
static native void save(String outputDatabasePath)
static native void onTouchEvent(int touchCount, int event0, float x0, float y0, float x1, float y1)
static native void setFullResolution(boolean enabled)
static native void setDataRecorderMode(boolean enabled)
static native boolean postExportation(boolean visualize)
static native int render()
static native void setMaxGainRadius(float value)
static native void setFOV(float value)
static native void setGraphOptimization(boolean enabled)
static native int postProcessing(int approach)
static native void setOnlineBlending(boolean enabled)
static native void onCreate(RTABMapActivity activity)
static native void setWireframe(boolean enabled)
static native void initGlContent()
static native void setSmoothing(boolean enabled)
static native void setGraphVisible(boolean visible)
static native int getTotalNodes()