jni_interface.cpp
Go to the documentation of this file.
1 /*
2 Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of the Universite de Sherbrooke nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
28 #define GLM_FORCE_RADIANS
29 
30 #include <jni.h>
31 #include <RTABMapApp.h>
32 #include <scene.h>
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 void GetJStringContent(JNIEnv *AEnv, jstring AStr, std::string &ARes) {
39  if (!AStr) {
40  ARes.clear();
41  return;
42  }
43 
44  const char *s = AEnv->GetStringUTFChars(AStr,NULL);
45  ARes=s;
46  AEnv->ReleaseStringUTFChars(AStr,s);
47 }
48 
49 inline jlong jptr(RTABMapApp *native_computer_vision_application) {
50  return reinterpret_cast<intptr_t>(native_computer_vision_application);
51 }
52 
53 inline RTABMapApp *native(jlong ptr) {
54  return reinterpret_cast<RTABMapApp *>(ptr);
55 }
56 
57 JNIEXPORT jlong JNICALL
59  JNIEnv* env, jclass, jobject activity)
60 {
61  return jptr(new RTABMapApp(env, activity));
62 }
63 
65  JNIEnv *, jclass, jlong native_application) {
66  if(native_application)
67  {
68  delete native(native_application);
69  }
70  else
71  {
72  UERROR("native_application is null!");
73  }
74 }
75 
76 JNIEXPORT void JNICALL
78  JNIEnv* env, jclass, jlong native_application, int displayRotation, int cameraRotation)
79 {
80  if(native_application)
81  {
82  return native(native_application)->setScreenRotation(displayRotation, cameraRotation);
83  }
84  else
85  {
86  UERROR("native_application is null!");
87  }
88 }
89 
90 JNIEXPORT int JNICALL
92  JNIEnv* env, jclass, jlong native_application, jstring databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
93 {
94  std::string databasePathC;
95  GetJStringContent(env,databasePath,databasePathC);
96  if(native_application)
97  {
98  return native(native_application)->openDatabase(databasePathC, databaseInMemory, optimize, clearDatabase);
99  }
100  else
101  {
102  UERROR("native_application is null!");
103  return -1;
104  }
105 }
106 
107 JNIEXPORT bool JNICALL
109  JNIEnv* env, jclass, jlong native_application, jstring from, jstring to)
110 {
111  if(native_application)
112  {
113  std::string toC;
114  GetJStringContent(env,to,toC);
115  std::string fromC;
116  GetJStringContent(env,from,fromC);
117  return native(native_application)->recover(fromC, toC);
118  }
119  else
120  {
121  UERROR("native_application is null!");
122  return -1;
123  }
124 }
125 
126 JNIEXPORT bool JNICALL
128  JNIEnv* env, jclass, jlong native_application, int cameraDriver) {
129  if(native_application)
130  {
131  return native(native_application)->isBuiltWith(cameraDriver);
132  }
133  else
134  {
135  UERROR("native_application is null!");
136  return false;
137  }
138 }
139 
140 JNIEXPORT bool JNICALL
142  JNIEnv* env, jclass, jlong native_application, jobject iBinder, jobject context, jobject activity, int driver) {
143  if(native_application)
144  {
145  return native(native_application)->startCamera(env, iBinder, context, activity, driver);
146  }
147  else
148  {
149  UERROR("native_application is null!");
150  return false;
151  }
152 }
153 
154 JNIEXPORT void JNICALL
156  JNIEnv*, jclass, jlong native_application) {
157  if(native_application)
158  {
159  native(native_application)->InitializeGLContent();
160  }
161  else
162  {
163  UERROR("native_application is null!");
164  }
165 }
166 
167 JNIEXPORT void JNICALL
169  JNIEnv*, jclass, jlong native_application, jint width, jint height) {
170  if(native_application)
171  {
172  native(native_application)->SetViewPort(width, height);
173  }
174  else
175  {
176  UERROR("native_application is null!");
177  }
178 }
179 
180 JNIEXPORT int JNICALL
182  JNIEnv*, jclass, jlong native_application) {
183  if(native_application)
184  {
185  return native(native_application)->Render();
186  }
187  else
188  {
189  UERROR("native_application is null!");
190  return -1;
191  }
192 }
193 
194 JNIEXPORT void JNICALL
196  JNIEnv*, jclass, jlong native_application) {
197  if(native_application)
198  {
199  native(native_application)->stopCamera();
200  }
201  else
202  {
203  UERROR("native_application is null!");
204  }
205 }
206 
207 JNIEXPORT void JNICALL
209  JNIEnv*, jclass, jlong native_application, int camera_index) {
210  if(native_application)
211  {
212  using namespace tango_gl;
213  GestureCamera::CameraType cam_type =
214  static_cast<GestureCamera::CameraType>(camera_index);
215  native(native_application)->SetCameraType(cam_type);
216  }
217  else
218  {
219  UERROR("native_application is null!");
220  }
221 }
222 
223 JNIEXPORT void JNICALL
225  JNIEnv*, jclass, jlong native_application, int touch_count, int event, float x0, float y0, float x1,
226  float y1) {
227  if(native_application)
228  {
229  using namespace tango_gl;
230  GestureCamera::TouchEvent touch_event =
231  static_cast<GestureCamera::TouchEvent>(event);
232  native(native_application)->OnTouchEvent(touch_count, touch_event, x0, y0, x1, y1);
233  }
234  else
235  {
236  UERROR("native_application is null!");
237  }
238 }
239 
240 JNIEXPORT void JNICALL
242  JNIEnv*, jclass, jlong native_application, bool paused)
243 {
244  if(native_application)
245  {
246  return native(native_application)->setPausedMapping(paused);
247  }
248  else
249  {
250  UERROR("native_application is null!");
251  }
252 }
253 JNIEXPORT void JNICALL
255  JNIEnv*, jclass, jlong native_application, bool enabled)
256 {
257  if(native_application)
258  {
259  return native(native_application)->setOnlineBlending(enabled);
260  }
261  else
262  {
263  UERROR("native_application is null!");
264  }
265 }
266 JNIEXPORT void JNICALL
268  JNIEnv*, jclass, jlong native_application, bool shown)
269 {
270  if(native_application)
271  {
272  return native(native_application)->setMapCloudShown(shown);
273  }
274  else
275  {
276  UERROR("native_application is null!");
277  }
278 }
279 JNIEXPORT void JNICALL
281  JNIEnv*, jclass, jlong native_application, bool shown)
282 {
283  if(native_application)
284  {
285  return native(native_application)->setOdomCloudShown(shown);
286  }
287  else
288  {
289  UERROR("native_application is null!");
290  }
291 }
292 JNIEXPORT void JNICALL
294  JNIEnv*, jclass, jlong native_application, bool enabled, bool withTexture)
295 {
296  if(native_application)
297  {
298  return native(native_application)->setMeshRendering(enabled, withTexture);
299  }
300  else
301  {
302  UERROR("native_application is null!");
303  }
304 }
305 JNIEXPORT void JNICALL
307  JNIEnv*, jclass, jlong native_application, float value)
308 {
309  if(native_application)
310  {
311  return native(native_application)->setPointSize(value);
312  }
313  else
314  {
315  UERROR("native_application is null!");
316  }
317 
318 }
319 JNIEXPORT void JNICALL
321  JNIEnv*, jclass, jlong native_application, float fov)
322 {
323  if(native_application)
324  {
325  return native(native_application)->setFOV(fov);
326  }
327  else
328  {
329  UERROR("native_application is null!");
330  }
331 }
332 JNIEXPORT void JNICALL
334  JNIEnv*, jclass, jlong native_application, float value)
335 {
336  if(native_application)
337  {
338  return native(native_application)->setOrthoCropFactor(value);
339  }
340  else
341  {
342  UERROR("native_application is null!");
343  }
344 }
345 JNIEXPORT void JNICALL
347  JNIEnv*, jclass, jlong native_application, float value)
348 {
349  if(native_application)
350  {
351  return native(native_application)->setGridRotation(value);
352  }
353  else
354  {
355  UERROR("native_application is null!");
356  }
357 }
358 JNIEXPORT void JNICALL
360  JNIEnv*, jclass, jlong native_application, bool enabled)
361 {
362  if(native_application)
363  {
364  return native(native_application)->setLighting(enabled);
365  }
366  else
367  {
368  UERROR("native_application is null!");
369  }
370 }
371 JNIEXPORT void JNICALL
373  JNIEnv*, jclass, jlong native_application, bool enabled)
374 {
375  if(native_application)
376  {
377  return native(native_application)->setBackfaceCulling(enabled);
378  }
379  else
380  {
381  UERROR("native_application is null!");
382  }
383 }
384 JNIEXPORT void JNICALL
386  JNIEnv*, jclass, jlong native_application, bool enabled)
387 {
388  if(native_application)
389  {
390  return native(native_application)->setWireframe(enabled);
391  }
392  else
393  {
394  UERROR("native_application is null!");
395  }
396 }
397 JNIEXPORT void JNICALL
399  JNIEnv*, jclass, jlong native_application, bool enabled)
400 {
401  if(native_application)
402  {
403  return native(native_application)->setLocalizationMode(enabled);
404  }
405  else
406  {
407  UERROR("native_application is null!");
408  }
409 }
410 JNIEXPORT void JNICALL
412  JNIEnv*, jclass, jlong native_application, bool enabled)
413 {
414  if(native_application)
415  {
416  return native(native_application)->setTrajectoryMode(enabled);
417  }
418  else
419  {
420  UERROR("native_application is null!");
421  }
422 }
423 JNIEXPORT void JNICALL
425  JNIEnv*, jclass, jlong native_application, bool enabled)
426 {
427  if(native_application)
428  {
429  return native(native_application)->setGraphOptimization(enabled);
430  }
431  else
432  {
433  UERROR("native_application is null!");
434  }
435 }
436 JNIEXPORT void JNICALL
438  JNIEnv*, jclass, jlong native_application, bool enabled)
439 {
440  if(native_application)
441  {
442  return native(native_application)->setNodesFiltering(enabled);
443  }
444  else
445  {
446  UERROR("native_application is null!");
447  }
448 }
449 JNIEXPORT void JNICALL
451  JNIEnv*, jclass, jlong native_application, bool visible)
452 {
453  if(native_application)
454  {
455  return native(native_application)->setGraphVisible(visible);
456  }
457  else
458  {
459  UERROR("native_application is null!");
460  }
461 }
462 JNIEXPORT void JNICALL
464  JNIEnv*, jclass, jlong native_application, bool visible)
465 {
466  if(native_application)
467  {
468  return native(native_application)->setGridVisible(visible);
469  }
470  else
471  {
472  UERROR("native_application is null!");
473  }
474 }
475 JNIEXPORT void JNICALL
477  JNIEnv*, jclass, jlong native_application, bool enabled)
478 {
479  if(native_application)
480  {
481  return native(native_application)->setRawScanSaved(enabled);
482  }
483  else
484  {
485  UERROR("native_application is null!");
486  }
487 }
488 JNIEXPORT void JNICALL
490  JNIEnv*, jclass, jlong native_application, bool enabled)
491 {
492  if(native_application)
493  {
494  return native(native_application)->setFullResolution(enabled);
495  }
496  else
497  {
498  UERROR("native_application is null!");
499  }
500 }
501 JNIEXPORT void JNICALL
503  JNIEnv*, jclass, jlong native_application, bool enabled)
504 {
505  if(native_application)
506  {
507  return native(native_application)->setSmoothing(enabled);
508  }
509  else
510  {
511  UERROR("native_application is null!");
512  }
513 }
514 JNIEXPORT void JNICALL
516  JNIEnv*, jclass, jlong native_application, bool enabled)
517 {
518  if(native_application)
519  {
520  return native(native_application)->setDepthFromMotion(enabled);
521  }
522  else
523  {
524  UERROR("native_application is null!");
525  }
526 }
527 JNIEXPORT void JNICALL
529  JNIEnv*, jclass, jlong native_application, bool enabled)
530 {
531  if(native_application)
532  {
533  return native(native_application)->setCameraColor(enabled);
534  }
535  else
536  {
537  UERROR("native_application is null!");
538  }
539 }
540 JNIEXPORT void JNICALL
542  JNIEnv*, jclass, jlong native_application, bool enabled)
543 {
544  if(native_application)
545  {
546  return native(native_application)->setAppendMode(enabled);
547  }
548  else
549  {
550  UERROR("native_application is null!");
551  }
552 }
553 JNIEXPORT void JNICALL
555  JNIEnv*, jclass, jlong native_application, float value)
556 {
557  if(native_application)
558  {
559  return native(native_application)->setUpstreamRelocalizationAccThr(value);
560  }
561  else
562  {
563  UERROR("native_application is null!");
564  }
565 }
566 
567 JNIEXPORT void JNICALL
569  JNIEnv*, jclass, jlong native_application, bool enabled)
570 {
571  if(native_application)
572  {
573  return native(native_application)->setDataRecorderMode(enabled);
574  }
575  else
576  {
577  UERROR("native_application is null!");
578  }
579 }
580 JNIEXPORT void JNICALL
582  JNIEnv*, jclass, jlong native_application, float value)
583 {
584  if(native_application)
585  {
586  return native(native_application)->setMaxCloudDepth(value);
587  }
588  else
589  {
590  UERROR("native_application is null!");
591  }
592 }
593 JNIEXPORT void JNICALL
595  JNIEnv*, jclass, jlong native_application, float value)
596 {
597  if(native_application)
598  {
599  return native(native_application)->setMinCloudDepth(value);
600  }
601  else
602  {
603  UERROR("native_application is null!");
604  }
605 }
606 JNIEXPORT void JNICALL
608  JNIEnv*, jclass, jlong native_application, int value)
609 {
610  if(native_application)
611  {
612  return native(native_application)->setCloudDensityLevel(value);
613  }
614  else
615  {
616  UERROR("native_application is null!");
617  }
618 }
619 JNIEXPORT void JNICALL
621  JNIEnv*, jclass, jlong native_application, float value)
622 {
623  if(native_application)
624  {
625  return native(native_application)->setMeshAngleTolerance(value);
626  }
627  else
628  {
629  UERROR("native_application is null!");
630  }
631 }
632 JNIEXPORT void JNICALL
634  JNIEnv*, jclass, jlong native_application, int value)
635 {
636  if(native_application)
637  {
638  return native(native_application)->setMeshTriangleSize(value);
639  }
640  else
641  {
642  UERROR("native_application is null!");
643  }
644 }
645 JNIEXPORT void JNICALL
647  JNIEnv*, jclass, jlong native_application, float value)
648 {
649  if(native_application)
650  {
651  return native(native_application)->setClusterRatio(value);
652  }
653  else
654  {
655  UERROR("native_application is null!");
656  }
657 }
658 JNIEXPORT void JNICALL
660  JNIEnv*, jclass, jlong native_application, float value)
661 {
662  if(native_application)
663  {
664  return native(native_application)->setMaxGainRadius(value);
665  }
666  else
667  {
668  UERROR("native_application is null!");
669  }
670 }
671 JNIEXPORT void JNICALL
673  JNIEnv*, jclass, jlong native_application, int value)
674 {
675  if(native_application)
676  {
677  return native(native_application)->setRenderingTextureDecimation(value);
678  }
679  else
680  {
681  UERROR("native_application is null!");
682  }
683 }
684 JNIEXPORT void JNICALL
686  JNIEnv*, jclass, jlong native_application, float value)
687 {
688  if(native_application)
689  {
690  return native(native_application)->setBackgroundColor(value);
691  }
692  else
693  {
694  UERROR("native_application is null!");
695  }
696 }
697 JNIEXPORT jint JNICALL
699  JNIEnv* env, jclass, jlong native_application, jstring key, jstring value)
700 {
701  if(native_application)
702  {
703  std::string keyC, valueC;
704  GetJStringContent(env,key,keyC);
705  GetJStringContent(env,value,valueC);
706  return native(native_application)->setMappingParameter(keyC, valueC);
707  }
708  else
709  {
710  UERROR("native_application is null!");
711  return -1;
712  }
713 }
714 
715 JNIEXPORT void JNICALL
717  JNIEnv*, jclass, jlong native_application,
718  double stamp,
719  double longitude,
720  double latitude,
721  double altitude,
722  double accuracy,
723  double bearing)
724 {
725  if(native_application)
726  {
727  return native(native_application)->setGPS(rtabmap::GPS(stamp,
728  longitude,
729  latitude,
730  altitude,
731  accuracy,
732  bearing));
733  }
734  else
735  {
736  UERROR("native_application is null!");
737  }
738 }
739 
740 JNIEXPORT void JNICALL
742  JNIEnv*, jclass, jlong native_application,
743  int type,
744  float value)
745 {
746  if(native_application)
747  {
748  return native(native_application)->addEnvSensor(type, value);
749  }
750  else
751  {
752  UERROR("native_application is null!");
753  }
754 }
755 
756 JNIEXPORT void JNICALL
758  JNIEnv* env, jclass, jlong native_application, jstring databasePath)
759 {
760  if(native_application)
761  {
762  std::string databasePathC;
763  GetJStringContent(env,databasePath,databasePathC);
764  return native(native_application)->save(databasePathC);
765  }
766  else
767  {
768  UERROR("native_application is null!");
769  }
770 }
771 
772 JNIEXPORT void JNICALL
774  JNIEnv* env, jclass, jlong native_application)
775 {
776  if(native_application)
777  {
778  return native(native_application)->cancelProcessing();
779  }
780  else
781  {
782  UERROR("native_application is null!");
783  }
784 }
785 
786 JNIEXPORT bool JNICALL
788  JNIEnv* env, jclass, jlong native_application,
789  float cloudVoxelSize,
790  bool regenerateCloud,
791  bool meshing,
792  int textureSize,
793  int textureCount,
794  int normalK,
795  bool optimized,
796  float optimizedVoxelSize,
797  int optimizedDepth,
798  int optimizedMaxPolygons,
799  float optimizedColorRadius,
800  bool optimizedCleanWhitePolygons,
801  int optimizedMinClusterSize,
802  float optimizedMaxTextureDistance,
803  int optimizedMinTextureClusterSize,
804  bool blockRendering)
805 {
806  if(native_application)
807  {
808  return native(native_application)->exportMesh(
809  cloudVoxelSize,
810  regenerateCloud,
811  meshing,
812  textureSize,
813  textureCount,
814  normalK,
815  optimized,
816  optimizedVoxelSize,
817  optimizedDepth,
818  optimizedMaxPolygons,
819  optimizedColorRadius,
820  optimizedCleanWhitePolygons,
821  optimizedMinClusterSize,
822  optimizedMaxTextureDistance,
823  optimizedMinTextureClusterSize,
824  blockRendering);
825  }
826  else
827  {
828  UERROR("native_application is null!");
829  return false;
830  }
831 }
832 
833 JNIEXPORT bool JNICALL
835  JNIEnv* env, jclass, jlong native_application, bool visualize)
836 {
837  if(native_application)
838  {
839  return native(native_application)->postExportation(visualize);
840  }
841  else
842  {
843  UERROR("native_application is null!");
844  return false;
845  }
846 }
847 
848 JNIEXPORT bool JNICALL
850  JNIEnv* env, jclass, jlong native_application, jstring directory, jstring name)
851 {
852  if(native_application)
853  {
854  std::string directoryC;
855  GetJStringContent(env,directory,directoryC);
856  std::string nameC;
857  GetJStringContent(env,name,nameC);
858  return native(native_application)->writeExportedMesh(directoryC, nameC);
859  }
860  else
861  {
862  UERROR("native_application is null!");
863  return false;
864  }
865 }
866 
867 
868 JNIEXPORT int JNICALL
870  JNIEnv* env, jclass, jlong native_application, int approach)
871 {
872  if(native_application)
873  {
874  return native(native_application)->postProcessing(approach);
875  }
876  else
877  {
878  UERROR("native_application is null!");
879  return -1;
880  }
881 }
882 
883 JNIEXPORT void JNICALL
885  JNIEnv* env, jclass, jlong native_application,
886  float x, float y, float z, float qx, float qy, float qz, float qw,
887  float rgb_fx, float rgb_fy, float rgb_cx, float rgb_cy,
888  float rgbFrameX, float rgbFrameY, float rgbFrameZ, float rgbFrameQX, float rgbFrameQY, float rgbFrameQZ, float rgbFrameQW,
889  double stamp,
890  jobject yPlane, jobject uPlane, jobject vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat,
891  jobject points, int pointsLen,
892  float vx, float vy, float vz, float vqx, float vqy, float vqz, float vqw, //view matrix
893  float p00, float p11, float p02, float p12, float p22, float p32, float p23, // projection matrix
894  float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7) // tex coord
895 {
896  if(native_application)
897  {
898  void *yPtr = env->GetDirectBufferAddress(yPlane);
899  void *uPtr = env->GetDirectBufferAddress(uPlane);
900  void *vPtr = env->GetDirectBufferAddress(vPlane);
901  float *pointsPtr = (float *)env->GetDirectBufferAddress(points);
902  native(native_application)->postOdometryEvent(
903  rtabmap::Transform(x,y,z,qx,qy,qz,qw),
904  rgb_fx,rgb_fy,rgb_cx,rgb_cy,
905  0,0,0,0,
906  rtabmap::Transform(rgbFrameX, rgbFrameY, rgbFrameZ, rgbFrameQX, rgbFrameQY, rgbFrameQZ, rgbFrameQW),
908  stamp,
909  0,
910  yPtr, uPtr, vPtr, yPlaneLen, rgbWidth, rgbHeight, rgbFormat,
911  0,0,0,0,0, //depth
912  0,0,0,0,0, //conf
913  pointsPtr, pointsLen, 4,
914  rtabmap::Transform(vx, vy, vz, vqx, vqy, vqz, vqw),
915  p00, p11, p02, p12, p22, p32, p23,
916  t0, t1, t2, t3, t4, t5, t6, t7);
917  }
918  else
919  {
920  UERROR("native_application is null!");
921  return;
922  }
923 }
924 
925 JNIEXPORT void JNICALL
927  JNIEnv* env, jclass, jlong native_application,
928  float x, float y, float z, float qx, float qy, float qz, float qw,
929  float rgb_fx, float rgb_fy, float rgb_cx, float rgb_cy,
930  float depth_fx, float depth_fy, float depth_cx, float depth_cy,
931  float rgbFrameX, float rgbFrameY, float rgbFrameZ, float rgbFrameQX, float rgbFrameQY, float rgbFrameQZ, float rgbFrameQW,
932  float depthFrameX, float depthFrameY, float depthFrameZ, float depthFrameQX, float depthFrameQY, float depthFrameQZ, float depthFrameQW,
933  double rgbStamp,
934  double depthStamp,
935  jobject yPlane, jobject uPlane, jobject vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat,
936  jobject depth, int depthLen, int depthWidth, int depthHeight, int depthFormat,
937  jobject points, int pointsLen,
938  float vx, float vy, float vz, float vqx, float vqy, float vqz, float vqw, //view matrix
939  float p00, float p11, float p02, float p12, float p22, float p32, float p23, // projection matrix
940  float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7) // tex coord)
941  {
942  void *yPtr = env->GetDirectBufferAddress(yPlane);
943  void *uPtr = env->GetDirectBufferAddress(uPlane);
944  void *vPtr = env->GetDirectBufferAddress(vPlane);
945  void *depthPtr = env->GetDirectBufferAddress(depth);
946  float *pointsPtr = (float *)env->GetDirectBufferAddress(points);
947  native(native_application)->postOdometryEvent(
948  rtabmap::Transform(x,y,z,qx,qy,qz,qw),
949  rgb_fx,rgb_fy,rgb_cx,rgb_cy,
950  depth_fx,depth_fy,depth_cx,depth_cy,
951  rtabmap::Transform(rgbFrameX, rgbFrameY, rgbFrameZ, rgbFrameQX, rgbFrameQY, rgbFrameQZ, rgbFrameQW),
952  rtabmap::Transform(depthFrameX, depthFrameY, depthFrameZ, depthFrameQX, depthFrameQY, depthFrameQZ, depthFrameQW),
953  rgbStamp,
954  depthStamp,
955  yPtr, uPtr, vPtr, yPlaneLen, rgbWidth, rgbHeight, rgbFormat,
956  depthPtr, depthLen, depthWidth, depthHeight, depthFormat,
957  0,0,0,0,0, // conf
958  pointsPtr, pointsLen, 4,
959  rtabmap::Transform(vx, vy, vz, vqx, vqy, vqz, vqw),
960  p00, p11, p02, p12, p22, p32, p23,
961  t0, t1, t2, t3, t4, t5, t6, t7);
962  }
963 
964 
965 #ifdef __cplusplus
966 }
967 #endif
Java_com_introlab_rtabmap_RTABMapLib_render
JNIEXPORT int JNICALL Java_com_introlab_rtabmap_RTABMapLib_render(JNIEnv *, jclass, jlong native_application)
Definition: jni_interface.cpp:181
RTABMapApp::setMinCloudDepth
void setMinCloudDepth(float value)
Definition: RTABMapApp.cpp:2480
RTABMapApp::recover
bool recover(const std::string &from, const std::string &to)
Definition: RTABMapApp.cpp:2671
Java_com_introlab_rtabmap_RTABMapLib_addEnvSensor
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_addEnvSensor(JNIEnv *, jclass, jlong native_application, int type, float value)
Definition: jni_interface.cpp:741
name
Java_com_introlab_rtabmap_RTABMapLib_setMeshAngleTolerance
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMeshAngleTolerance(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:620
RTABMapApp::setSmoothing
void setSmoothing(bool enabled)
Definition: RTABMapApp.cpp:2431
RTABMapApp::setGridRotation
void setGridRotation(float value)
Definition: RTABMapApp.cpp:2338
Java_com_introlab_rtabmap_RTABMapLib_postExportation
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_postExportation(JNIEnv *env, jclass, jlong native_application, bool visualize)
Definition: jni_interface.cpp:834
Java_com_introlab_rtabmap_RTABMapLib_initGlContent
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_initGlContent(JNIEnv *, jclass, jlong native_application)
Definition: jni_interface.cpp:155
x1
x1
RTABMapApp::setFullResolution
void setFullResolution(bool enabled)
Definition: RTABMapApp.cpp:2423
RTABMapApp.h
Java_com_introlab_rtabmap_RTABMapLib_exportMesh
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_exportMesh(JNIEnv *env, jclass, jlong native_application, 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)
Definition: jni_interface.cpp:787
Java_com_introlab_rtabmap_RTABMapLib_setDepthFromMotion
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setDepthFromMotion(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:515
RTABMapApp::setAppendMode
void setAppendMode(bool enabled)
Definition: RTABMapApp.cpp:2447
s
RealScalar s
RTABMapApp::setGraphOptimization
void setGraphOptimization(bool enabled)
Definition: RTABMapApp.cpp:2369
RTABMapApp::setOnlineBlending
void setOnlineBlending(bool enabled)
Definition: RTABMapApp.cpp:2309
RTABMapApp::setScreenRotation
void setScreenRotation(int displayRotation, int cameraRotation)
Definition: RTABMapApp.cpp:360
Java_com_introlab_rtabmap_RTABMapLib_setMapCloudShown
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMapCloudShown(JNIEnv *, jclass, jlong native_application, bool shown)
Definition: jni_interface.cpp:267
Java_com_introlab_rtabmap_RTABMapLib_setOnlineBlending
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setOnlineBlending(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:254
RTABMapApp::setRawScanSaved
void setRawScanSaved(bool enabled)
Definition: RTABMapApp.cpp:2407
RTABMapApp::SetCameraType
void SetCameraType(tango_gl::GestureCamera::CameraType camera_type)
Definition: RTABMapApp.cpp:2273
Java_com_introlab_rtabmap_RTABMapLib_stopCamera
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_stopCamera(JNIEnv *, jclass, jlong native_application)
Definition: jni_interface.cpp:195
Java_com_introlab_rtabmap_RTABMapLib_setPointSize
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setPointSize(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:306
Java_com_introlab_rtabmap_RTABMapLib_setNodesFiltering
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setNodesFiltering(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:437
RTABMapApp::setLocalizationMode
void setLocalizationMode(bool enabled)
Definition: RTABMapApp.cpp:2355
RTABMapApp::setCameraColor
void setCameraColor(bool enabled)
Definition: RTABMapApp.cpp:2415
Java_com_introlab_rtabmap_RTABMapLib_createNativeApplication
JNIEXPORT jlong JNICALL Java_com_introlab_rtabmap_RTABMapLib_createNativeApplication(JNIEnv *env, jclass, jobject activity)
Definition: jni_interface.cpp:58
RTABMapApp::setWireframe
void setWireframe(bool enabled)
Definition: RTABMapApp.cpp:2350
RTABMapApp::isBuiltWith
bool isBuiltWith(int cameraDriver) const
Definition: RTABMapApp.cpp:872
RTABMapApp::setDataRecorderMode
void setDataRecorderMode(bool enabled)
Definition: RTABMapApp.cpp:2463
rtabmap::GPS
Definition: GPS.h:35
Java_com_introlab_rtabmap_RTABMapLib_setRenderingTextureDecimation
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setRenderingTextureDecimation(JNIEnv *, jclass, jlong native_application, int value)
Definition: jni_interface.cpp:672
Java_com_introlab_rtabmap_RTABMapLib_setupGraphic
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setupGraphic(JNIEnv *, jclass, jlong native_application, jint width, jint height)
Definition: jni_interface.cpp:168
RTABMapApp::setDepthFromMotion
void setDepthFromMotion(bool enabled)
Definition: RTABMapApp.cpp:2439
type
RTABMapApp::setMeshTriangleSize
void setMeshTriangleSize(int value)
Definition: RTABMapApp.cpp:2500
RTABMapApp::SetViewPort
void SetViewPort(int width, int height)
Definition: RTABMapApp.cpp:1140
Java_com_introlab_rtabmap_RTABMapLib_postProcessing
JNIEXPORT int JNICALL Java_com_introlab_rtabmap_RTABMapLib_postProcessing(JNIEnv *env, jclass, jlong native_application, int approach)
Definition: jni_interface.cpp:869
Java_com_introlab_rtabmap_RTABMapLib_setMaxCloudDepth
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMaxCloudDepth(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:581
Java_com_introlab_rtabmap_RTABMapLib_setMinCloudDepth
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMinCloudDepth(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:594
Java_com_introlab_rtabmap_RTABMapLib_isBuiltWith
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_isBuiltWith(JNIEnv *env, jclass, jlong native_application, int cameraDriver)
Definition: jni_interface.cpp:127
Java_com_introlab_rtabmap_RTABMapLib_setUpstreamRelocalizationAccThr
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setUpstreamRelocalizationAccThr(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:554
Java_com_introlab_rtabmap_RTABMapLib_setGridRotation
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGridRotation(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:346
Java_com_introlab_rtabmap_RTABMapLib_writeExportedMesh
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_writeExportedMesh(JNIEnv *env, jclass, jlong native_application, jstring directory, jstring name)
Definition: jni_interface.cpp:849
y
Matrix3f y
RTABMapApp::cancelProcessing
void cancelProcessing()
Definition: RTABMapApp.cpp:2691
RTABMapApp::setMaxCloudDepth
void setMaxCloudDepth(float value)
Definition: RTABMapApp.cpp:2475
RTABMapApp::setGraphVisible
void setGraphVisible(bool visible)
Definition: RTABMapApp.cpp:2396
RTABMapApp::stopCamera
void stopCamera()
Definition: RTABMapApp.cpp:999
RTABMapApp::postProcessing
int postProcessing(int approach)
Definition: RTABMapApp.cpp:3703
Java_com_introlab_rtabmap_RTABMapLib_setMeshRendering
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMeshRendering(JNIEnv *, jclass, jlong native_application, bool enabled, bool withTexture)
Definition: jni_interface.cpp:293
RTABMapApp
Definition: RTABMapApp.h:53
Java_com_introlab_rtabmap_RTABMapLib_setMaxGainRadius
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMaxGainRadius(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:659
RTABMapApp::setRenderingTextureDecimation
void setRenderingTextureDecimation(int value)
Definition: RTABMapApp.cpp:2515
Java_com_introlab_rtabmap_RTABMapLib_destroyNativeApplication
JNIEXPORT void Java_com_introlab_rtabmap_RTABMapLib_destroyNativeApplication(JNIEnv *, jclass, jlong native_application)
Definition: jni_interface.cpp:64
Java_com_introlab_rtabmap_RTABMapLib_setSmoothing
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setSmoothing(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:502
Java_com_introlab_rtabmap_RTABMapLib_postOdometryEvent
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_postOdometryEvent(JNIEnv *env, jclass, jlong native_application, float x, float y, float z, float qx, float qy, float qz, float qw, float rgb_fx, float rgb_fy, float rgb_cx, float rgb_cy, float rgbFrameX, float rgbFrameY, float rgbFrameZ, float rgbFrameQX, float rgbFrameQY, float rgbFrameQZ, float rgbFrameQW, double stamp, jobject yPlane, jobject uPlane, jobject vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat, jobject points, int pointsLen, float vx, float vy, float vz, float vqx, float vqy, float vqz, float vqw, float p00, float p11, float p02, float p12, float p22, float p32, float p23, float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7)
Definition: jni_interface.cpp:884
RTABMapApp::setPointSize
void setPointSize(float value)
Definition: RTABMapApp.cpp:2326
RTABMapApp::setGridVisible
void setGridVisible(bool visible)
Definition: RTABMapApp.cpp:2402
jptr
jlong jptr(RTABMapApp *native_computer_vision_application)
Definition: jni_interface.cpp:49
optimize
gtsam.ISAM2 optimize(List[GpsMeasurement] gps_measurements, List[ImuMeasurement] imu_measurements, gtsam.noiseModel.Diagonal sigma_init_x, gtsam.noiseModel.Diagonal sigma_init_v, gtsam.noiseModel.Diagonal sigma_init_b, gtsam.noiseModel.Diagonal noise_model_gps, KittiCalibration kitti_calibration, int first_gps_pose, int gps_skip)
RTABMapApp::setCloudDensityLevel
void setCloudDensityLevel(int value)
Definition: RTABMapApp.cpp:2485
RTABMapApp::OnTouchEvent
void OnTouchEvent(int touch_count, tango_gl::GestureCamera::TouchEvent event, float x0, float y0, float x1, float y1)
Definition: RTABMapApp.cpp:2278
tango_gl::GestureCamera::CameraType
CameraType
Definition: gesture_camera.h:28
Java_com_introlab_rtabmap_RTABMapLib_setClusterRatio
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setClusterRatio(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:646
scene.h
vy
StridedVectorType vy(make_vector(y, *n, std::abs(*incy)))
RTABMapApp::setMeshAngleTolerance
void setMeshAngleTolerance(float value)
Definition: RTABMapApp.cpp:2490
RTABMapApp::setUpstreamRelocalizationAccThr
void setUpstreamRelocalizationAccThr(float value)
Definition: RTABMapApp.cpp:2458
Java_com_introlab_rtabmap_RTABMapLib_setOdomCloudShown
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setOdomCloudShown(JNIEnv *, jclass, jlong native_application, bool shown)
Definition: jni_interface.cpp:280
intptr_t
_W64 signed int intptr_t
RTABMapApp::setBackfaceCulling
void setBackfaceCulling(bool enabled)
Definition: RTABMapApp.cpp:2346
RTABMapApp::setMaxGainRadius
void setMaxGainRadius(float value)
Definition: RTABMapApp.cpp:2510
x0
x0
Java_com_introlab_rtabmap_RTABMapLib_openDatabase
JNIEXPORT int JNICALL Java_com_introlab_rtabmap_RTABMapLib_openDatabase(JNIEnv *env, jclass, jlong native_application, jstring databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
Definition: jni_interface.cpp:91
tango_gl::GestureCamera::TouchEvent
TouchEvent
Definition: gesture_camera.h:36
RTABMapApp::save
void save(const std::string &databasePath)
Definition: RTABMapApp.cpp:2616
Java_com_introlab_rtabmap_RTABMapLib_setGPS
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGPS(JNIEnv *, jclass, jlong native_application, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing)
Definition: jni_interface.cpp:716
Java_com_introlab_rtabmap_RTABMapLib_setLocalizationMode
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setLocalizationMode(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:398
Java_com_introlab_rtabmap_RTABMapLib_onTouchEvent
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_onTouchEvent(JNIEnv *, jclass, jlong native_application, int touch_count, int event, float x0, float y0, float x1, float y1)
Definition: jni_interface.cpp:224
Java_com_introlab_rtabmap_RTABMapLib_setScreenRotation
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setScreenRotation(JNIEnv *env, jclass, jlong native_application, int displayRotation, int cameraRotation)
Definition: jni_interface.cpp:77
z
z
x
x
Java_com_introlab_rtabmap_RTABMapLib_setAppendMode
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setAppendMode(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:541
Java_com_introlab_rtabmap_RTABMapLib_setCameraColor
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setCameraColor(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:528
RTABMapApp::writeExportedMesh
bool writeExportedMesh(const std::string &directory, const std::string &name)
Definition: RTABMapApp.cpp:3568
RTABMapApp::setLighting
void setLighting(bool enabled)
Definition: RTABMapApp.cpp:2342
Java_com_introlab_rtabmap_RTABMapLib_setPausedMapping
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setPausedMapping(JNIEnv *, jclass, jlong native_application, bool paused)
Definition: jni_interface.cpp:241
Java_com_introlab_rtabmap_RTABMapLib_setMappingParameter
JNIEXPORT jint JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMappingParameter(JNIEnv *env, jclass, jlong native_application, jstring key, jstring value)
Definition: jni_interface.cpp:698
Java_com_introlab_rtabmap_RTABMapLib_startCamera
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_startCamera(JNIEnv *env, jclass, jlong native_application, jobject iBinder, jobject context, jobject activity, int driver)
Definition: jni_interface.cpp:141
Java_com_introlab_rtabmap_RTABMapLib_setBackgroundColor
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setBackgroundColor(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:685
RTABMapApp::setBackgroundColor
void setBackgroundColor(float gray)
Definition: RTABMapApp.cpp:2521
key
const gtsam::Symbol key( 'X', 0)
y1
CEPHES_EXTERN_EXPORT double y1(double x)
RTABMapApp::setMappingParameter
int setMappingParameter(const std::string &key, const std::string &value)
Definition: RTABMapApp.cpp:2554
Java_com_introlab_rtabmap_RTABMapLib_setGridVisible
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGridVisible(JNIEnv *, jclass, jlong native_application, bool visible)
Definition: jni_interface.cpp:463
RTABMapApp::setOrthoCropFactor
void setOrthoCropFactor(float value)
Definition: RTABMapApp.cpp:2334
qz
RealQZ< MatrixXf > qz(4)
RTABMapApp::setClusterRatio
void setClusterRatio(float value)
Definition: RTABMapApp.cpp:2505
native
RTABMapApp * native(jlong ptr)
Definition: jni_interface.cpp:53
Java_com_introlab_rtabmap_RTABMapLib_save
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_save(JNIEnv *env, jclass, jlong native_application, jstring databasePath)
Definition: jni_interface.cpp:757
rtabmap::Transform
Definition: Transform.h:41
Java_com_introlab_rtabmap_RTABMapLib_setWireframe
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setWireframe(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:385
RTABMapApp::setMapCloudShown
void setMapCloudShown(bool shown)
Definition: RTABMapApp.cpp:2313
y0
CEPHES_EXTERN_EXPORT double y0(double x)
Java_com_introlab_rtabmap_RTABMapLib_setCloudDensityLevel
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setCloudDensityLevel(JNIEnv *, jclass, jlong native_application, int value)
Definition: jni_interface.cpp:607
RTABMapApp::postExportation
bool postExportation(bool visualize)
Definition: RTABMapApp.cpp:3492
Java_com_introlab_rtabmap_RTABMapLib_setFullResolution
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setFullResolution(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:489
RTABMapApp::openDatabase
int openDatabase(const std::string &databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
Definition: RTABMapApp.cpp:373
env
Java_com_introlab_rtabmap_RTABMapLib_setLighting
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setLighting(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:359
Java_com_introlab_rtabmap_RTABMapLib_recover
JNIEXPORT bool JNICALL Java_com_introlab_rtabmap_RTABMapLib_recover(JNIEnv *env, jclass, jlong native_application, jstring from, jstring to)
Definition: jni_interface.cpp:108
Java_com_introlab_rtabmap_RTABMapLib_setRawScanSaved
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setRawScanSaved(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:476
RTABMapApp::setFOV
void setFOV(float angle)
Definition: RTABMapApp.cpp:2330
RTABMapApp::postOdometryEvent
void postOdometryEvent(rtabmap::Transform pose, float rgb_fx, float rgb_fy, float rgb_cx, float rgb_cy, float depth_fx, float depth_fy, float depth_cx, float depth_cy, const rtabmap::Transform &rgbFrame, const rtabmap::Transform &depthFrame, double stamp, double depthStamp, const void *yPlane, const void *uPlane, const void *vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat, const void *depth, int depthLen, int depthWidth, int depthHeight, int depthFormat, const void *conf, int confLen, int confWidth, int confHeight, int confFormat, const float *points, int pointsLen, int pointsChannels, rtabmap::Transform viewMatrix, float p00, float p11, float p02, float p12, float p22, float p32, float p23, float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7)
Definition: RTABMapApp.cpp:3802
RTABMapApp::setGPS
void setGPS(const rtabmap::GPS &gps)
Definition: RTABMapApp.cpp:2598
Java_com_introlab_rtabmap_RTABMapLib_setOrthoCropFactor
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setOrthoCropFactor(JNIEnv *, jclass, jlong native_application, float value)
Definition: jni_interface.cpp:333
Java_com_introlab_rtabmap_RTABMapLib_setTrajectoryMode
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setTrajectoryMode(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:411
GetJStringContent
void GetJStringContent(JNIEnv *AEnv, jstring AStr, std::string &ARes)
Definition: jni_interface.cpp:38
p22
p22
RTABMapApp::setPausedMapping
void setPausedMapping(bool paused)
Definition: RTABMapApp.cpp:2284
NULL
#define NULL
tango_gl
Definition: axis.cpp:20
RTABMapApp::Render
int Render()
Definition: RTABMapApp.cpp:1292
RTABMapApp::exportMesh
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)
Definition: RTABMapApp.cpp:2697
Java_com_introlab_rtabmap_RTABMapLib_setMeshTriangleSize
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setMeshTriangleSize(JNIEnv *, jclass, jlong native_application, int value)
Definition: jni_interface.cpp:633
RTABMapApp::startCamera
bool startCamera()
Definition: RTABMapApp.cpp:906
Java_com_introlab_rtabmap_RTABMapLib_cancelProcessing
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_cancelProcessing(JNIEnv *env, jclass, jlong native_application)
Definition: jni_interface.cpp:773
RTABMapApp::InitializeGLContent
void InitializeGLContent()
Definition: RTABMapApp.cpp:1130
RTABMapApp::setMeshRendering
void setMeshRendering(bool enabled, bool withTexture)
Definition: RTABMapApp.cpp:2322
Java_com_introlab_rtabmap_RTABMapLib_setGraphOptimization
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGraphOptimization(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:424
UERROR
#define UERROR(...)
value
value
Java_com_introlab_rtabmap_RTABMapLib_setDataRecorderMode
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setDataRecorderMode(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:568
RTABMapApp::setNodesFiltering
void setNodesFiltering(bool enabled)
Definition: RTABMapApp.cpp:2391
RTABMapApp::setOdomCloudShown
void setOdomCloudShown(bool shown)
Definition: RTABMapApp.cpp:2317
Java_com_introlab_rtabmap_RTABMapLib_setGraphVisible
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setGraphVisible(JNIEnv *, jclass, jlong native_application, bool visible)
Definition: jni_interface.cpp:450
RTABMapApp::addEnvSensor
void addEnvSensor(int type, float value)
Definition: RTABMapApp.cpp:2607
Java_com_introlab_rtabmap_RTABMapLib_setBackfaceCulling
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setBackfaceCulling(JNIEnv *, jclass, jlong native_application, bool enabled)
Definition: jni_interface.cpp:372
Java_com_introlab_rtabmap_RTABMapLib_postOdometryEventDepth
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_postOdometryEventDepth(JNIEnv *env, jclass, jlong native_application, float x, float y, float z, float qx, float qy, float qz, float qw, float rgb_fx, float rgb_fy, float rgb_cx, float rgb_cy, float depth_fx, float depth_fy, float depth_cx, float depth_cy, float rgbFrameX, float rgbFrameY, float rgbFrameZ, float rgbFrameQX, float rgbFrameQY, float rgbFrameQZ, float rgbFrameQW, float depthFrameX, float depthFrameY, float depthFrameZ, float depthFrameQX, float depthFrameQY, float depthFrameQZ, float depthFrameQW, double rgbStamp, double depthStamp, jobject yPlane, jobject uPlane, jobject vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat, jobject depth, int depthLen, int depthWidth, int depthHeight, int depthFormat, jobject points, int pointsLen, float vx, float vy, float vz, float vqx, float vqy, float vqz, float vqw, float p00, float p11, float p02, float p12, float p22, float p32, float p23, float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7)
Definition: jni_interface.cpp:926
Java_com_introlab_rtabmap_RTABMapLib_setCamera
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setCamera(JNIEnv *, jclass, jlong native_application, int camera_index)
Definition: jni_interface.cpp:208
vx
StridedVectorType vx(make_vector(x, *n, std::abs(*incx)))
Java_com_introlab_rtabmap_RTABMapLib_setFOV
JNIEXPORT void JNICALL Java_com_introlab_rtabmap_RTABMapLib_setFOV(JNIEnv *, jclass, jlong native_application, float fov)
Definition: jni_interface.cpp:320
RTABMapApp::setTrajectoryMode
void setTrajectoryMode(bool enabled)
Definition: RTABMapApp.cpp:2363


rtabmap
Author(s): Mathieu Labbe
autogenerated on Sun Dec 1 2024 03:42:46