NativeWrapper.cpp
Go to the documentation of this file.
1 //
2 // PCLWrapper.cpp
3 // ThreeDScanner
4 //
5 // Created by Steven Roach on 2/9/18.
6 // Copyright © 2018 Steven Roach. All rights reserved.
7 //
8 
9 #include "NativeWrapper.hpp"
10 #include "RTABMapApp.h"
12 
13 inline RTABMapApp *native(const void *object) {
14  return (RTABMapApp *)object;
15 }
16 
18 {
19  RTABMapApp *app = new RTABMapApp();
20  return (void *)app;
21 }
22 
23 void setupCallbacksNative(const void *object, void * classPtr,
24  void(*progressCallback)(void*, int, int),
25  void(*initCallback)(void *, int, const char*),
26  void(*statsUpdatedCallback)(void *,
27  int, int, int, int,
28  float,
29  int, int, int, int, int ,int,
30  float,
31  int,
32  float,
33  int,
34  float, float, float, float,
35  int, int,
36  float, float, float, float, float, float),
37  void(*cameraInfoEventCallback)(void *, int, const char*, const char*))
38 {
39  if(object)
40  {
41  native(object)->setupSwiftCallbacks(classPtr, progressCallback, initCallback, statsUpdatedCallback, cameraInfoEventCallback);
42  }
43  else
44  {
45  UERROR("object is null!");
46  }
47 }
48 
49 void destroyNativeApplication(const void *object)
50 {
51  if(object)
52  {
53  delete native(object);
54  }
55  else
56  {
57  UERROR("object is null!");
58  }
59 }
60 
61 void setScreenRotationNative(const void *object, int displayRotation)
62 {
63  if(object)
64  {
65  return native(object)->setScreenRotation(displayRotation, 0);
66  }
67  else
68  {
69  UERROR("object is null!");
70  }
71 }
72 
73 int openDatabaseNative(const void *object, const char * databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
74 {
75  if(object)
76  {
77  return native(object)->openDatabase(databasePath, databaseInMemory, optimize, clearDatabase);
78  }
79  else
80  {
81  UERROR("object is null!");
82  return -1;
83  }
84 }
85 
86 void saveNative(const void *object, const char * databasePath)
87 {
88  if(object)
89  {
90  return native(object)->save(databasePath);
91  }
92  else
93  {
94  UERROR("object is null!");
95  }
96 }
97 
98 bool recoverNative(const void *object, const char * from, const char * to)
99 {
100  if(object)
101  {
102  return native(object)->recover(from, to);
103  }
104  else
105  {
106  UERROR("object is null!");
107  }
108  return false;
109 }
110 
111 void cancelProcessingNative(const void *object)
112 {
113  if(object)
114  {
115  native(object)->cancelProcessing();
116  }
117  else
118  {
119  UERROR("object is null!");
120  }
121 }
122 
123 int postProcessingNative(const void *object, int approach)
124 {
125  if(object)
126  {
127  return native(object)->postProcessing(approach);
128  }
129  else
130  {
131  UERROR("object is null!");
132  }
133  return -1;
134 }
135 
137  const void *object,
138  float cloudVoxelSize,
139  bool regenerateCloud,
140  bool meshing,
141  int textureSize,
142  int textureCount,
143  int normalK,
144  bool optimized,
145  float optimizedVoxelSize,
146  int optimizedDepth,
147  int optimizedMaxPolygons,
148  float optimizedColorRadius,
149  bool optimizedCleanWhitePolygons,
150  int optimizedMinClusterSize,
151  float optimizedMaxTextureDistance,
152  int optimizedMinTextureClusterSize,
153  bool blockRendering)
154 {
155  if(object)
156  {
157  return native(object)->exportMesh(cloudVoxelSize, regenerateCloud, meshing, textureSize, textureCount, normalK, optimized, optimizedVoxelSize, optimizedDepth, optimizedMaxPolygons, optimizedColorRadius, optimizedCleanWhitePolygons, optimizedMinClusterSize, optimizedMaxTextureDistance, optimizedMinTextureClusterSize, blockRendering);
158  }
159  else
160  {
161  UERROR("object is null!");
162  }
163  return false;
164 }
165 
166 bool postExportationNative(const void *object, bool visualize)
167 {
168  if(object)
169  {
170  return native(object)->postExportation(visualize);
171  }
172  else
173  {
174  UERROR("object is null!");
175  }
176  return false;
177 }
178 
179 bool writeExportedMeshNative(const void *object, const char * directory, const char * name)
180 {
181  if(object)
182  {
183  return native(object)->writeExportedMesh(directory, name);
184  }
185  else
186  {
187  UERROR("object is null!");
188  }
189  return false;
190 }
191 
192 void initGlContentNative(const void *object) {
193  if(object)
194  {
195  native(object)->InitializeGLContent();
196  }
197  else
198  {
199  UERROR("object is null!");
200  }
201 }
202 
203 void setupGraphicNative(const void *object, int width, int height) {
204  if(object)
205  {
206  native(object)->SetViewPort(width, height);
207  }
208  else
209  {
210  UERROR("object is null!");
211  }
212 }
213 
214 void onTouchEventNative(const void *object, int touch_count, int event, float x0, float y0, float x1,
215  float y1) {
216  if(object)
217  {
218  using namespace tango_gl;
219  GestureCamera::TouchEvent touch_event =
220  static_cast<GestureCamera::TouchEvent>(event);
221  native(object)->OnTouchEvent(touch_count, touch_event, x0, y0, x1, y1);
222  }
223  else
224  {
225  UERROR("object is null!");
226  }
227 }
228 
229 void setPausedMappingNative(const void *object, bool paused)
230 {
231  if(object)
232  {
233  return native(object)->setPausedMapping(paused);
234  }
235  else
236  {
237  UERROR("object is null!");
238  }
239 }
240 
241 int renderNative(const void *object) {
242  if(object)
243  {
244  return native(object)->Render();
245  }
246  else
247  {
248  UERROR("object is null!");
249  return -1;
250  }
251 }
252 
253 bool startCameraNative(const void *object) {
254  if(object)
255  {
256  return native(object)->startCamera();
257  }
258  else
259  {
260  UERROR("object is null!");
261  return false;
262  }
263 }
264 
265 void stopCameraNative(const void *object) {
266  if(object)
267  {
268  native(object)->stopCamera();
269  }
270  else
271  {
272  UERROR("object is null!");
273  }
274 }
275 
276 void setCameraNative(const void *object, int type) {
277  if(object)
278  {
280  }
281  else
282  {
283  UERROR("object is null!");
284  }
285 }
286 
287 void postOdometryEventNative(const void *object,
288  float x, float y, float z, float qx, float qy, float qz, float qw,
289  float fx, float fy, float cx, float cy,
290  double stamp,
291  const void * yPlane, const void * uPlane, const void * vPlane, int yPlaneLen, int rgbWidth, int rgbHeight, int rgbFormat,
292  const void * depth, int depthLen, int depthWidth, int depthHeight, int depthFormat,
293  const void * conf, int confLen, int confWidth, int confHeight, int confFormat,
294  const void * points, int pointsLen, int pointsChannels,
295  float vx, float vy, float vz, float vqx, float vqy, float vqz, float vqw,
296  float p00, float p11, float p02, float p12, float p22, float p32, float p23,
297  float t0, float t1, float t2, float t3, float t4, float t5, float t6, float t7)
298 {
299  if(object)
300  {
301  native(object)->postOdometryEvent(
302  (qx==0.0f && qy==0.0f && qz==0.0f && qw==0.0f)?rtabmap::Transform():rtabmap::Transform(x,y,z,qx,qy,qz,qw),
303  fx,fy,cx,cy, 0,0,0,0,
305  stamp, 0,
306  yPlane, uPlane, vPlane, yPlaneLen, rgbWidth, rgbHeight, rgbFormat,
307  depth, depthLen, depthWidth, depthHeight, depthFormat,
308  conf, confLen, confWidth, confHeight, confFormat,
309  (const float *)points, pointsLen, pointsChannels,
310  rtabmap::Transform(vx, vy, vz, vqx, vqy, vqz, vqw),
311  p00, p11, p02, p12, p22, p32, p23,
312  t0, t1, t2, t3, t4, t5, t6, t7);
313  }
314  else
315  {
316  UERROR("object is null!");
317  return;
318  }
319 }
320 
321 ImageNative getPreviewImageNative(const char * databasePath)
322 {
323  ImageNative imageNative;
324  imageNative.data = 0;
325  imageNative.objectPtr = 0;
327  if(driver.openConnection(databasePath))
328  {
329  cv::Mat image = driver.loadPreviewImage();
330  if(image.empty())
331  {
332  return imageNative;
333  }
334  cv::Mat * imagePtr = new cv::Mat();
335  // We should add alpha channel
336  cv::cvtColor(image, *imagePtr, cv::COLOR_BGR2BGRA);
337  std::vector<cv::Mat> channels;
338  cv::split(*imagePtr, channels);
339  channels.back() = cv::Scalar(255);
340  cv::merge(channels, *imagePtr);
341  imageNative.objectPtr = imagePtr;
342  imageNative.data = imagePtr->data;
343  imageNative.width = imagePtr->cols;
344  imageNative.height = imagePtr->rows;
345  imageNative.channels = imagePtr->channels();
346  }
347  return imageNative;
348 }
349 
351 {
352  if(image.objectPtr)
353  {
354  delete (cv::Mat*)image.objectPtr;
355  }
356 }
357 
358 
359 // Parameters
360 void setOnlineBlendingNative(const void *object, bool enabled)
361 {
362  if(object)
363  native(object)->setOnlineBlending(enabled);
364  else
365  UERROR("object is null!");
366 }
367 void setMapCloudShownNative(const void *object, bool shown)
368 {
369  if(object)
370  native(object)->setMapCloudShown(shown);
371  else
372  UERROR("object is null!");
373 }
374 void setOdomCloudShownNative(const void *object, bool shown)
375 {
376  if(object)
377  native(object)->setOdomCloudShown(shown);
378  else
379  UERROR("object is null!");
380 }
381 void setMeshRenderingNative(const void *object, bool enabled, bool withTexture)
382 {
383  if(object)
384  native(object)->setMeshRendering(enabled, withTexture);
385  else
386  UERROR("object is null!");
387 }
388 void setPointSizeNative(const void *object, float value)
389 {
390  if(object)
391  native(object)->setPointSize(value);
392  else
393  UERROR("object is null!");
394 }
395 void setFOVNative(const void *object, float angle)
396 {
397  if(object)
398  native(object)->setFOV(angle);
399  else
400  UERROR("object is null!");
401 }
402 void setOrthoCropFactorNative(const void *object, float value)
403 {
404  if(object)
405  native(object)->setOrthoCropFactor(value);
406  else
407  UERROR("object is null!");
408 }
409 void setGridRotationNative(const void *object, float value)
410 {
411  if(object)
412  native(object)->setGridRotation(value);
413  else
414  UERROR("object is null!");
415 }
416 void setLightingNative(const void *object, bool enabled)
417 {
418  if(object)
419  native(object)->setLighting(enabled);
420  else
421  UERROR("object is null!");
422 }
423 void setBackfaceCullingNative(const void *object, bool enabled)
424 {
425  if(object)
426  native(object)->setBackfaceCulling(enabled);
427  else
428  UERROR("object is null!");
429 }
430 void setWireframeNative(const void *object, bool enabled)
431 {
432  if(object)
433  native(object)->setWireframe(enabled);
434  else
435  UERROR("object is null!");
436 }
437 void setLocalizationModeNative(const void *object, bool enabled)
438 {
439  if(object)
440  native(object)->setLocalizationMode(enabled);
441  else
442  UERROR("object is null!");
443 }
444 void setDataRecorderModeNative(const void *object, bool enabled)
445 {
446  if(object)
447  native(object)->setDataRecorderMode(enabled);
448  else
449  UERROR("object is null!");
450 }
451 void setTrajectoryModeNative(const void *object, bool enabled)
452 {
453  if(object)
454  native(object)->setTrajectoryMode(enabled);
455  else
456  UERROR("object is null!");
457 }
458 void setGraphOptimizationNative(const void *object, bool enabled)
459 {
460  if(object)
461  native(object)->setGraphOptimization(enabled);
462  else
463  UERROR("object is null!");
464 }
465 void setNodesFilteringNative(const void *object, bool enabled)
466 {
467  if(object)
468  native(object)->setNodesFiltering(enabled);
469  else
470  UERROR("object is null!");
471 }
472 void setGraphVisibleNative(const void *object, bool visible)
473 {
474  if(object)
475  native(object)->setGraphVisible(visible);
476  else
477  UERROR("object is null!");
478 }
479 void setGridVisibleNative(const void *object, bool visible)
480 {
481  if(object)
482  native(object)->setGridVisible(visible);
483  else
484  UERROR("object is null!");
485 }
486 void setFullResolutionNative(const void *object, bool enabled)
487 {
488  if(object)
489  native(object)->setFullResolution(enabled);
490  else
491  UERROR("object is null!");
492 }
493 void setSmoothingNative(const void *object, bool enabled)
494 {
495  if(object)
496  native(object)->setSmoothing(enabled);
497  else
498  UERROR("object is null!");
499 }
500 void setAppendModeNative(const void *object, bool enabled)
501 {
502  if(object)
503  native(object)->setAppendMode(enabled);
504  else
505  UERROR("object is null!");
506 }
507 void setUpstreamRelocalizationAccThrNative(const void * object, float value)
508 {
509  if(object)
511  else
512  UERROR("object is null!");
513 }
514 void setMaxCloudDepthNative(const void *object, float value)
515 {
516  if(object)
517  native(object)->setMaxCloudDepth(value);
518  else
519  UERROR("object is null!");
520 }
521 void setMinCloudDepthNative(const void *object, float value)
522 {
523  if(object)
524  native(object)->setMinCloudDepth(value);
525  else
526  UERROR("object is null!");
527 }
528 void setCloudDensityLevelNative(const void *object, int value)
529 {
530  if(object)
532  else
533  UERROR("object is null!");
534 }
535 void setMeshAngleToleranceNative(const void *object, float value)
536 {
537  if(object)
539  else
540  UERROR("object is null!");
541 }
542 void setMeshDecimationFactorNative(const void *object, float value)
543 {
544  if(object)
546  else
547  UERROR("object is null!");
548 }
549 void setMeshTriangleSizeNative(const void *object, int value)
550 {
551  if(object)
552  native(object)->setMeshTriangleSize(value);
553  else
554  UERROR("object is null!");
555 }
556 void setClusterRatioNative(const void *object, float value)
557 {
558  if(object)
559  native(object)->setClusterRatio(value);
560  else
561  UERROR("object is null!");
562 }
563 void setMaxGainRadiusNative(const void *object, float value)
564 {
565  if(object)
566  native(object)->setMaxGainRadius(value);
567  else
568  UERROR("object is null!");
569 }
570 void setRenderingTextureDecimationNative(const void *object, int value)
571 {
572  if(object)
574  else
575  UERROR("object is null!");
576 }
577 void setBackgroundColorNative(const void *object, float gray)
578 {
579  if(object)
580  native(object)->setBackgroundColor(gray);
581  else
582  UERROR("object is null!");
583 }
584 void setDepthConfidenceNative(const void *object, int value)
585 {
586  if(object)
587  native(object)->setDepthConfidence(value);
588  else
589  UERROR("object is null!");
590 }
591 
592 void setExportPointCloudFormatNative(const void *object, const char * format)
593 {
594  if(object)
596  else
597  UERROR("object is null!");
598 }
599 
600 int setMappingParameterNative(const void *object, const char * key, const char * value)
601 {
602  if(object)
603  return native(object)->setMappingParameter(key, value);
604  else
605  UERROR("object is null!");
606  return -1;
607 }
608 
609 void setGPSNative(const void *object, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing)
610 {
611  rtabmap::GPS gps(stamp, longitude, latitude, altitude, accuracy, bearing);
612  if(object)
613  return native(object)->setGPS(gps);
614  else
615  UERROR("object is null!");
616 }
617 
618 void addEnvSensorNative(const void *object, int type, float value)
619 {
620  if(object)
621  return native(object)->addEnvSensor(type, value);
622  else
623  UERROR("object is null!");
624 }
setNodesFilteringNative
void setNodesFilteringNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:465
RTABMapApp::setMinCloudDepth
void setMinCloudDepth(float value)
Definition: RTABMapApp.cpp:2480
setMeshAngleToleranceNative
void setMeshAngleToleranceNative(const void *object, float value)
Definition: NativeWrapper.cpp:535
RTABMapApp::recover
bool recover(const std::string &from, const std::string &to)
Definition: RTABMapApp.cpp:2671
setClusterRatioNative
void setClusterRatioNative(const void *object, float value)
Definition: NativeWrapper.cpp:556
name
postOdometryEventNative
void postOdometryEventNative(const void *object, float x, float y, float z, float qx, float qy, float qz, float qw, float fx, float fy, float cx, float cy, double stamp, 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 void *points, int pointsLen, int pointsChannels, 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: NativeWrapper.cpp:287
cy
const double cy
RTABMapApp::setSmoothing
void setSmoothing(bool enabled)
Definition: RTABMapApp.cpp:2431
RTABMapApp::setGridRotation
void setGridRotation(float value)
Definition: RTABMapApp.cpp:2338
format
std::string format(const std::string &str, const std::vector< std::string > &find, const std::vector< std::string > &replace)
x1
x1
ImageNative::height
int height
Definition: NativeWrapper.hpp:123
RTABMapApp::setFullResolution
void setFullResolution(bool enabled)
Definition: RTABMapApp.cpp:2423
setDataRecorderModeNative
void setDataRecorderModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:444
setUpstreamRelocalizationAccThrNative
void setUpstreamRelocalizationAccThrNative(const void *object, float value)
Definition: NativeWrapper.cpp:507
RTABMapApp.h
setupGraphicNative
void setupGraphicNative(const void *object, int width, int height)
Definition: NativeWrapper.cpp:203
RTABMapApp::setAppendMode
void setAppendMode(bool enabled)
Definition: RTABMapApp.cpp:2447
RTABMapApp::setGraphOptimization
void setGraphOptimization(bool enabled)
Definition: RTABMapApp.cpp:2369
setBackfaceCullingNative
void setBackfaceCullingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:423
ImageNative::width
int width
Definition: NativeWrapper.hpp:122
RTABMapApp::setOnlineBlending
void setOnlineBlending(bool enabled)
Definition: RTABMapApp.cpp:2309
RTABMapApp::setScreenRotation
void setScreenRotation(int displayRotation, int cameraRotation)
Definition: RTABMapApp.cpp:360
rtabmap::DBDriver::openConnection
bool openConnection(const std::string &url, bool overwritten=false)
Definition: DBDriver.cpp:86
RTABMapApp::SetCameraType
void SetCameraType(tango_gl::GestureCamera::CameraType camera_type)
Definition: RTABMapApp.cpp:2273
setMeshDecimationFactorNative
void setMeshDecimationFactorNative(const void *object, float value)
Definition: NativeWrapper.cpp:542
fx
const double fx
setMappingParameterNative
int setMappingParameterNative(const void *object, const char *key, const char *value)
Definition: NativeWrapper.cpp:600
setMaxCloudDepthNative
void setMaxCloudDepthNative(const void *object, float value)
Definition: NativeWrapper.cpp:514
setMeshTriangleSizeNative
void setMeshTriangleSizeNative(const void *object, int value)
Definition: NativeWrapper.cpp:549
onTouchEventNative
void onTouchEventNative(const void *object, int touch_count, int event, float x0, float y0, float x1, float y1)
Definition: NativeWrapper.cpp:214
RTABMapApp::setLocalizationMode
void setLocalizationMode(bool enabled)
Definition: RTABMapApp.cpp:2355
setOdomCloudShownNative
void setOdomCloudShownNative(const void *object, bool shown)
Definition: NativeWrapper.cpp:374
setOnlineBlendingNative
void setOnlineBlendingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:360
RTABMapApp::setWireframe
void setWireframe(bool enabled)
Definition: RTABMapApp.cpp:2350
RTABMapApp::setDataRecorderMode
void setDataRecorderMode(bool enabled)
Definition: RTABMapApp.cpp:2463
rtabmap::GPS
Definition: GPS.h:35
type
RTABMapApp::setMeshTriangleSize
void setMeshTriangleSize(int value)
Definition: RTABMapApp.cpp:2500
RTABMapApp::SetViewPort
void SetViewPort(int width, int height)
Definition: RTABMapApp.cpp:1140
setMeshRenderingNative
void setMeshRenderingNative(const void *object, bool enabled, bool withTexture)
Definition: NativeWrapper.cpp:381
saveNative
void saveNative(const void *object, const char *databasePath)
Definition: NativeWrapper.cpp:86
setupCallbacksNative
void setupCallbacksNative(const void *object, void *classPtr, void(*progressCallback)(void *, int, int), void(*initCallback)(void *, int, const char *), void(*statsUpdatedCallback)(void *, int, int, int, int, float, int, int, int, int, int, int, float, int, float, int, float, float, float, float, int, int, float, float, float, float, float, float), void(*cameraInfoEventCallback)(void *, int, const char *, const char *))
Definition: NativeWrapper.cpp:23
y
Matrix3f y
RTABMapApp::cancelProcessing
void cancelProcessing()
Definition: RTABMapApp.cpp:2691
getPreviewImageNative
ImageNative getPreviewImageNative(const char *databasePath)
Definition: NativeWrapper.cpp:321
RTABMapApp::setMaxCloudDepth
void setMaxCloudDepth(float value)
Definition: RTABMapApp.cpp:2475
RTABMapApp::setGraphVisible
void setGraphVisible(bool visible)
Definition: RTABMapApp.cpp:2396
releasePreviewImageNative
void releasePreviewImageNative(ImageNative image)
Definition: NativeWrapper.cpp:350
RTABMapApp::stopCamera
void stopCamera()
Definition: RTABMapApp.cpp:999
RTABMapApp::postProcessing
int postProcessing(int approach)
Definition: RTABMapApp.cpp:3703
setGraphOptimizationNative
void setGraphOptimizationNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:458
native
RTABMapApp * native(const void *object)
Definition: NativeWrapper.cpp:13
RTABMapApp
Definition: RTABMapApp.h:53
setRenderingTextureDecimationNative
void setRenderingTextureDecimationNative(const void *object, int value)
Definition: NativeWrapper.cpp:570
NativeWrapper.hpp
ImageNative::channels
int channels
Definition: NativeWrapper.hpp:124
setGridVisibleNative
void setGridVisibleNative(const void *object, bool visible)
Definition: NativeWrapper.cpp:479
RTABMapApp::setRenderingTextureDecimation
void setRenderingTextureDecimation(int value)
Definition: RTABMapApp.cpp:2515
destroyNativeApplication
void destroyNativeApplication(const void *object)
Definition: NativeWrapper.cpp:49
RTABMapApp::setPointSize
void setPointSize(float value)
Definition: RTABMapApp.cpp:2326
RTABMapApp::setGridVisible
void setGridVisible(bool visible)
Definition: RTABMapApp.cpp:2402
setDepthConfidenceNative
void setDepthConfidenceNative(const void *object, int value)
Definition: NativeWrapper.cpp:584
writeExportedMeshNative
bool writeExportedMeshNative(const void *object, const char *directory, const char *name)
Definition: NativeWrapper.cpp:179
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
setMapCloudShownNative
void setMapCloudShownNative(const void *object, bool shown)
Definition: NativeWrapper.cpp:367
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
openDatabaseNative
int openDatabaseNative(const void *object, const char *databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
Definition: NativeWrapper.cpp:73
app
QApplication * app
Definition: tools/DataRecorder/main.cpp:59
setAppendModeNative
void setAppendModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:500
vy
StridedVectorType vy(make_vector(y, *n, std::abs(*incy)))
setFOVNative
void setFOVNative(const void *object, float angle)
Definition: NativeWrapper.cpp:395
RTABMapApp::setMeshAngleTolerance
void setMeshAngleTolerance(float value)
Definition: RTABMapApp.cpp:2490
RTABMapApp::setUpstreamRelocalizationAccThr
void setUpstreamRelocalizationAccThr(float value)
Definition: RTABMapApp.cpp:2458
rtabmap::DBDriverSqlite3
Definition: DBDriverSqlite3.h:40
rtabmap::DBDriver::loadPreviewImage
cv::Mat loadPreviewImage() const
Definition: DBDriver.cpp:1183
createNativeApplication
const void * createNativeApplication()
Definition: NativeWrapper.cpp:17
RTABMapApp::setBackfaceCulling
void setBackfaceCulling(bool enabled)
Definition: RTABMapApp.cpp:2346
RTABMapApp::setMaxGainRadius
void setMaxGainRadius(float value)
Definition: RTABMapApp.cpp:2510
x0
x0
ImageNative::objectPtr
const void * objectPtr
Definition: NativeWrapper.hpp:120
DBDriverSqlite3.h
exportMeshNative
bool exportMeshNative(const void *object, 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: NativeWrapper.cpp:136
tango_gl::GestureCamera::TouchEvent
TouchEvent
Definition: gesture_camera.h:36
RTABMapApp::save
void save(const std::string &databasePath)
Definition: RTABMapApp.cpp:2616
RTABMapApp::setMeshDecimationFactor
void setMeshDecimationFactor(float value)
Definition: RTABMapApp.cpp:2495
recoverNative
bool recoverNative(const void *object, const char *from, const char *to)
Definition: NativeWrapper.cpp:98
object
z
z
x
x
setCloudDensityLevelNative
void setCloudDensityLevelNative(const void *object, int value)
Definition: NativeWrapper.cpp:528
glm::angle
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
setGPSNative
void setGPSNative(const void *object, double stamp, double longitude, double latitude, double altitude, double accuracy, double bearing)
Definition: NativeWrapper.cpp:609
startCameraNative
bool startCameraNative(const void *object)
Definition: NativeWrapper.cpp:253
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
setSmoothingNative
void setSmoothingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:493
RTABMapApp::setDepthConfidence
void setDepthConfidence(int value)
Definition: RTABMapApp.cpp:2529
renderNative
int renderNative(const void *object)
Definition: NativeWrapper.cpp:241
RTABMapApp::setBackgroundColor
void setBackgroundColor(float gray)
Definition: RTABMapApp.cpp:2521
key
const gtsam::Symbol key( 'X', 0)
f
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
postProcessingNative
int postProcessingNative(const void *object, int approach)
Definition: NativeWrapper.cpp:123
y1
CEPHES_EXTERN_EXPORT double y1(double x)
RTABMapApp::setMappingParameter
int setMappingParameter(const std::string &key, const std::string &value)
Definition: RTABMapApp.cpp:2554
addEnvSensorNative
void addEnvSensorNative(const void *object, int type, float value)
Definition: NativeWrapper.cpp:618
RTABMapApp::setOrthoCropFactor
void setOrthoCropFactor(float value)
Definition: RTABMapApp.cpp:2334
RTABMapApp::setupSwiftCallbacks
void setupSwiftCallbacks(void *classPtr, void(*progressCallback)(void *, int, int), void(*initCallback)(void *, int, const char *), void(*statsUpdatedCallback)(void *, int, int, int, int, float, int, int, int, int, int, int, float, int, float, int, float, float, float, float, int, int, float, float, float, float, float, float), void(*cameraInfoCallback)(void *, int, const char *, const char *))
Definition: RTABMapApp.cpp:312
setLightingNative
void setLightingNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:416
qz
RealQZ< MatrixXf > qz(4)
RTABMapApp::setClusterRatio
void setClusterRatio(float value)
Definition: RTABMapApp.cpp:2505
rtabmap::Transform
Definition: Transform.h:41
cancelProcessingNative
void cancelProcessingNative(const void *object)
Definition: NativeWrapper.cpp:111
setPausedMappingNative
void setPausedMappingNative(const void *object, bool paused)
Definition: NativeWrapper.cpp:229
RTABMapApp::setMapCloudShown
void setMapCloudShown(bool shown)
Definition: RTABMapApp.cpp:2313
initGlContentNative
void initGlContentNative(const void *object)
Definition: NativeWrapper.cpp:192
y0
CEPHES_EXTERN_EXPORT double y0(double x)
setOrthoCropFactorNative
void setOrthoCropFactorNative(const void *object, float value)
Definition: NativeWrapper.cpp:402
RTABMapApp::postExportation
bool postExportation(bool visualize)
Definition: RTABMapApp.cpp:3492
RTABMapApp::openDatabase
int openDatabase(const std::string &databasePath, bool databaseInMemory, bool optimize, bool clearDatabase)
Definition: RTABMapApp.cpp:373
ImageNative::data
void * data
Definition: NativeWrapper.hpp:121
RTABMapApp::setExportPointCloudFormat
void setExportPointCloudFormat(const std::string &format)
Definition: RTABMapApp.cpp:2538
setFullResolutionNative
void setFullResolutionNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:486
setTrajectoryModeNative
void setTrajectoryModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:451
RTABMapApp::setFOV
void setFOV(float angle)
Definition: RTABMapApp.cpp:2330
setPointSizeNative
void setPointSizeNative(const void *object, float value)
Definition: NativeWrapper.cpp:388
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
setGridRotationNative
void setGridRotationNative(const void *object, float value)
Definition: NativeWrapper.cpp:409
setWireframeNative
void setWireframeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:430
p22
p22
setScreenRotationNative
void setScreenRotationNative(const void *object, int displayRotation)
Definition: NativeWrapper.cpp:61
RTABMapApp::setPausedMapping
void setPausedMapping(bool paused)
Definition: RTABMapApp.cpp:2284
setGraphVisibleNative
void setGraphVisibleNative(const void *object, bool visible)
Definition: NativeWrapper.cpp:472
setExportPointCloudFormatNative
void setExportPointCloudFormatNative(const void *object, const char *format)
Definition: NativeWrapper.cpp:592
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
cx
const double cx
RTABMapApp::startCamera
bool startCamera()
Definition: RTABMapApp.cpp:906
postExportationNative
bool postExportationNative(const void *object, bool visualize)
Definition: NativeWrapper.cpp:166
stopCameraNative
void stopCameraNative(const void *object)
Definition: NativeWrapper.cpp:265
setCameraNative
void setCameraNative(const void *object, int type)
Definition: NativeWrapper.cpp:276
RTABMapApp::InitializeGLContent
void InitializeGLContent()
Definition: RTABMapApp.cpp:1130
ImageNative
Definition: NativeWrapper.hpp:118
RTABMapApp::setMeshRendering
void setMeshRendering(bool enabled, bool withTexture)
Definition: RTABMapApp.cpp:2322
UERROR
#define UERROR(...)
setLocalizationModeNative
void setLocalizationModeNative(const void *object, bool enabled)
Definition: NativeWrapper.cpp:437
value
value
RTABMapApp::setNodesFiltering
void setNodesFiltering(bool enabled)
Definition: RTABMapApp.cpp:2391
conf
RTABMapApp::setOdomCloudShown
void setOdomCloudShown(bool shown)
Definition: RTABMapApp.cpp:2317
setMinCloudDepthNative
void setMinCloudDepthNative(const void *object, float value)
Definition: NativeWrapper.cpp:521
RTABMapApp::addEnvSensor
void addEnvSensor(int type, float value)
Definition: RTABMapApp.cpp:2607
fy
const double fy
vx
StridedVectorType vx(make_vector(x, *n, std::abs(*incx)))
setBackgroundColorNative
void setBackgroundColorNative(const void *object, float gray)
Definition: NativeWrapper.cpp:577
setMaxGainRadiusNative
void setMaxGainRadiusNative(const void *object, float value)
Definition: NativeWrapper.cpp:563
RTABMapApp::setTrajectoryMode
void setTrajectoryMode(bool enabled)
Definition: RTABMapApp.cpp:2363


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