28 #define GLM_FORCE_RADIANS 46 const char *s = AEnv->GetStringUTFChars(AStr,
NULL);
48 AEnv->ReleaseStringUTFChars(AStr,s);
51 JNIEXPORT
void JNICALL
53 JNIEnv* env, jobject, jobject activity)
58 JNIEXPORT
void JNICALL
60 JNIEnv* env, jobject,
int displayRotation,
int cameraRotation)
67 JNIEnv* env, jobject, jstring databasePath,
bool databaseInMemory,
bool optimize)
69 std::string databasePathC;
71 return app.
openDatabase(databasePathC, databaseInMemory, optimize);
76 JNIEnv* env, jobject, jstring databaseSource, jstring databasePath,
bool databaseInMemory,
bool optimize)
78 std::string databasePathC;
80 std::string databaseSourceC;
82 return app.
openDatabase(databasePathC, databaseInMemory, optimize, databaseSourceC);
85 JNIEXPORT
bool JNICALL
87 JNIEnv* env, jobject, jobject iBinder) {
91 JNIEXPORT
void JNICALL
97 JNIEXPORT
void JNICALL
99 JNIEnv*, jobject, jint width, jint height) {
103 JNIEXPORT
int JNICALL
109 JNIEXPORT
void JNICALL
115 JNIEXPORT
void JNICALL
117 JNIEnv*, jobject,
int camera_index) {
124 JNIEXPORT
void JNICALL
126 JNIEnv*, jobject,
int touch_count,
int event,
float x0,
float y0,
float x1,
131 app.
OnTouchEvent(touch_count, touch_event, x0, y0, x1, y1);
134 JNIEXPORT
void JNICALL
136 JNIEnv*, jobject,
bool paused)
140 JNIEXPORT
void JNICALL
142 JNIEnv*, jobject,
bool enabled)
146 JNIEXPORT
void JNICALL
148 JNIEnv*, jobject,
bool shown)
152 JNIEXPORT
void JNICALL
154 JNIEnv*, jobject,
bool shown)
158 JNIEXPORT
void JNICALL
160 JNIEnv*, jobject,
bool enabled,
bool withTexture)
164 JNIEXPORT
void JNICALL
166 JNIEnv*, jobject,
float value)
170 JNIEXPORT
void JNICALL
172 JNIEnv*, jobject,
float fov)
176 JNIEXPORT
void JNICALL
178 JNIEnv*, jobject,
float value)
182 JNIEXPORT
void JNICALL
184 JNIEnv*, jobject,
float value)
188 JNIEXPORT
void JNICALL
190 JNIEnv*, jobject,
bool enabled)
194 JNIEXPORT
void JNICALL
196 JNIEnv*, jobject,
bool enabled)
200 JNIEXPORT
void JNICALL
202 JNIEnv*, jobject,
bool enabled)
206 JNIEXPORT
void JNICALL
208 JNIEnv*, jobject,
bool enabled)
212 JNIEXPORT
void JNICALL
214 JNIEnv*, jobject,
bool enabled)
218 JNIEXPORT
void JNICALL
220 JNIEnv*, jobject,
bool enabled)
224 JNIEXPORT
void JNICALL
226 JNIEnv*, jobject,
bool enabled)
230 JNIEXPORT
void JNICALL
232 JNIEnv*, jobject,
bool visible)
236 JNIEXPORT
void JNICALL
238 JNIEnv*, jobject,
bool visible)
242 JNIEXPORT
void JNICALL
244 JNIEnv*, jobject,
bool enabled)
248 JNIEXPORT
void JNICALL
250 JNIEnv*, jobject,
bool enabled)
254 JNIEXPORT
void JNICALL
256 JNIEnv*, jobject,
bool enabled)
260 JNIEXPORT
void JNICALL
262 JNIEnv*, jobject,
bool enabled)
266 JNIEXPORT
void JNICALL
268 JNIEnv*, jobject,
bool enabled)
272 JNIEXPORT
void JNICALL
274 JNIEnv*, jobject,
bool enabled)
278 JNIEXPORT
void JNICALL
280 JNIEnv*, jobject,
float value)
284 JNIEXPORT
void JNICALL
286 JNIEnv*, jobject,
float value)
290 JNIEXPORT
void JNICALL
292 JNIEnv*, jobject,
int value)
296 JNIEXPORT
void JNICALL
298 JNIEnv*, jobject,
float value)
302 JNIEXPORT
void JNICALL
304 JNIEnv*, jobject,
int value)
308 JNIEXPORT
void JNICALL
310 JNIEnv*, jobject,
float value)
314 JNIEXPORT
void JNICALL
316 JNIEnv*, jobject,
float value)
320 JNIEXPORT
void JNICALL
322 JNIEnv*, jobject,
int value)
326 JNIEXPORT
void JNICALL
328 JNIEnv*, jobject,
float value)
332 JNIEXPORT jint JNICALL
334 JNIEnv* env, jobject, jstring key, jstring value)
336 std::string keyC, valueC;
342 JNIEXPORT
void JNICALL
360 JNIEXPORT
void JNICALL
367 JNIEXPORT
void JNICALL
369 JNIEnv* env, jobject, jstring databasePath)
371 std::string databasePathC;
373 return app.
save(databasePathC);
376 JNIEXPORT
void JNICALL
378 JNIEnv* env, jobject)
383 JNIEXPORT
bool JNICALL
385 JNIEnv* env, jobject,
386 float cloudVoxelSize,
387 bool regenerateCloud,
393 float optimizedVoxelSize,
395 int optimizedMaxPolygons,
396 float optimizedColorRadius,
397 bool optimizedCleanWhitePolygons,
398 int optimizedMinClusterSize,
399 float optimizedMaxTextureDistance,
400 int optimizedMinTextureClusterSize,
413 optimizedMaxPolygons,
414 optimizedColorRadius,
415 optimizedCleanWhitePolygons,
416 optimizedMinClusterSize,
417 optimizedMaxTextureDistance,
418 optimizedMinTextureClusterSize,
422 JNIEXPORT
bool JNICALL
424 JNIEnv* env, jobject,
bool visualize)
429 JNIEXPORT
bool JNICALL
431 JNIEnv* env, jobject, jstring directory, jstring name)
433 std::string directoryC;
441 JNIEXPORT
int JNICALL
443 JNIEnv* env, jobject,
int approach)
void save(const std::string &databasePath)
void OnTouchEvent(int touch_count, tango_gl::GestureCamera::TouchEvent event, float x0, float y0, float x1, float y1)
void onCreate(JNIEnv *env, jobject caller_activity)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setRenderingTextureDecimation(JNIEnv *, jobject, int value)
void setCameraColor(bool enabled)
void setMaxGainRadius(float value)
int openDatabase(const std::string &databasePath, bool databaseInMemory, bool optimize, const std::string &databaseSource=std::string())
void setWireframe(bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setClusterRatio(JNIEnv *, jobject, float value)
JNIEXPORT int JNICALL Java_com_introlab_rtabmap_RTABMapLib_openDatabase(JNIEnv *env, jobject, jstring databasePath, bool databaseInMemory, bool optimize)
void setAppendMode(bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMeshTriangleSize(JNIEnv *, jobject, int value)
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_postExportation(JNIEnv *env, jobject, bool visualize)
int setMappingParameter(const std::string &key, const std::string &value)
void SetViewPort(int width, int height)
void setSmoothing(bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setScreenRotation(JNIEnv *env, jobject, int displayRotation, int cameraRotation)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_onPause(JNIEnv *, jobject)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_save(JNIEnv *env, jobject, jstring databasePath)
void setGraphOptimization(bool enabled)
bool onTangoServiceConnected(JNIEnv *env, jobject iBinder)
void setGraphVisible(bool visible)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setFOV(JNIEnv *, jobject, float fov)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setOdomCloudShown(JNIEnv *, jobject, bool shown)
JNIEXPORT jint JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMappingParameter(JNIEnv *env, jobject, jstring key, jstring value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setCameraColor(JNIEnv *, jobject, bool enabled)
JNIEXPORT int JNICALL Java_com_introlab_rtabmap_RTABMapLib_openDatabase2(JNIEnv *env, jobject, jstring databaseSource, jstring databasePath, bool databaseInMemory, bool optimize)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setSmoothing(JNIEnv *, jobject, bool enabled)
void setCloudDensityLevel(int value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setLocalizationMode(JNIEnv *, jobject, bool enabled)
void InitializeGLContent()
int postProcessing(int approach)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setBackgroundColor(JNIEnv *, jobject, float value)
void setRenderingTextureDecimation(int value)
void setClusterRatio(float value)
void setOrthoCropFactor(float value)
void setGPS(const rtabmap::GPS &gps)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_initGlContent(JNIEnv *, jobject)
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_exportMesh(JNIEnv *env, jobject, float cloudVoxelSize, bool regenerateCloud, bool meshing, int textureSize, int textureCount, int normalK, bool optimized, float optimizedVoxelSize, int optimizedDepth, int optimizedMaxPolygons, float optimizedColorRadius, bool optimizedCleanWhitePolygons, int optimizedMinClusterSize, float optimizedMaxTextureDistance, int optimizedMinTextureClusterSize, bool blockRendering)
void setPointSize(float value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMeshRendering(JNIEnv *, jobject, bool enabled, bool withTexture)
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_onTangoServiceConnected(JNIEnv *env, jobject, jobject iBinder)
JNIEXPORT int JNICALL Java_com_introlab_rtabmap_RTABMapLib_render(JNIEnv *, jobject)
void setTrajectoryMode(bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setLighting(JNIEnv *, jobject, bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGraphOptimization(JNIEnv *, jobject, bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGPS(JNIEnv *, jobject, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMapCloudShown(JNIEnv *, jobject, bool shown)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_cancelProcessing(JNIEnv *env, jobject)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMaxGainRadius(JNIEnv *, jobject, float value)
void setMaxCloudDepth(float value)
void setGridRotation(float value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setAppendMode(JNIEnv *, jobject, bool enabled)
void setBackfaceCulling(bool enabled)
void setRawScanSaved(bool enabled)
void SetCameraType(tango_gl::GestureCamera::CameraType camera_type)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setupGraphic(JNIEnv *, jobject, jint width, jint height)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setWireframe(JNIEnv *, jobject, bool enabled)
bool postExportation(bool visualize)
void setBackgroundColor(float gray)
void setMeshRendering(bool enabled, bool withTexture)
void setNodesFiltering(bool enabled)
void setMapCloudShown(bool shown)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setTrajectoryMode(JNIEnv *, jobject, bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setRawScanSaved(JNIEnv *, jobject, bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMaxCloudDepth(JNIEnv *, jobject, float value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMeshAngleTolerance(JNIEnv *, jobject, float value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setOrthoCropFactor(JNIEnv *, jobject, float value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setCloudDensityLevel(JNIEnv *, jobject, int value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMinCloudDepth(JNIEnv *, jobject, float value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGridVisible(JNIEnv *, jobject, bool visible)
void setMinCloudDepth(float value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setNodesFiltering(JNIEnv *, jobject, bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setCamera(JNIEnv *, jobject, int camera_index)
void setOnlineBlending(bool enabled)
void setDataRecorderMode(bool enabled)
bool writeExportedMesh(const std::string &directory, const std::string &name)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_onTouchEvent(JNIEnv *, jobject, int touch_count, int event, float x0, float y0, float x1, float y1)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_onCreate(JNIEnv *env, jobject, jobject activity)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setPointSize(JNIEnv *, jobject, float value)
void setMeshTriangleSize(int value)
void setGridVisible(bool visible)
bool exportMesh(float cloudVoxelSize, bool regenerateCloud, bool meshing, int textureSize, int textureCount, int normalK, bool optimized, float optimizedVoxelSize, int optimizedDepth, int optimizedMaxPolygons, float optimizedColorRadius, bool optimizedCleanWhitePolygons, int optimizedMinClusterSize, float optimizedMaxTextureDistance, int optimizedMinTextureClusterSize, bool blockRendering)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setDataRecorderMode(JNIEnv *, jobject, bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_resetMapping(JNIEnv *, jobject)
JNIEXPORT int JNICALL Java_com_introlab_rtabmap_RTABMapLib_postProcessing(JNIEnv *env, jobject, int approach)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setFullResolution(JNIEnv *, jobject, bool enabled)
void setFullResolution(bool enabled)
void setMeshAngleTolerance(float value)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGridRotation(JNIEnv *, jobject, float value)
void setScreenRotation(int displayRotation, int cameraRotation)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setOnlineBlending(JNIEnv *, jobject, bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setBackfaceCulling(JNIEnv *, jobject, bool enabled)
void setLighting(bool enabled)
void setPausedMapping(bool paused)
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_writeExportedMesh(JNIEnv *env, jobject, jstring directory, jstring name)
void setOdomCloudShown(bool shown)
void GetJStringContent(JNIEnv *AEnv, jstring AStr, std::string &ARes)
void setLocalizationMode(bool enabled)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGraphVisible(JNIEnv *, jobject, bool visible)
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setPausedMapping(JNIEnv *, jobject, bool paused)