fixed android build

This commit is contained in:
matlabbe
2021-06-09 17:45:01 -04:00
parent 766301b175
commit d7b5fa5d17
3 changed files with 7 additions and 3 deletions

View File

@@ -174,6 +174,7 @@ RTABMapApp::RTABMapApp() :
trajectoryMode_(false),
rawScanSaved_(false),
smoothing_(true),
depthFromMotion_(false),
cameraColor_(true),
fullResolution_(false),
appendMode_(true),
@@ -565,7 +566,7 @@ int RTABMapApp::openDatabase(const std::string & databasePath, bool databaseInMe
polygonsLowRes = rtabmap::util3d::organizedFastMesh(cloud, meshAngleToleranceDeg_*M_PI/180.0, false, meshTrianglePix_+LOW_RES_PIX);
}
#ifdef DEBUG_RENDERING_PERFORMANCE
LOGW("Mesh simplication, %d polygons, %d points (%fs)", (int)polygons.size(), (int)cloud->size(), time.ticks());
LOGW("Mesh simplication, %d polygons, %d points (%fs)", (int)polygons.size(), (int)cloud->size(), timer.ticks());
#endif
}
else

View File

@@ -219,7 +219,6 @@ class RTABMapApp : public UEventsHandler {
bool cameraColor_;
bool fullResolution_;
bool appendMode_;
bool proximityDetection_;
float maxCloudDepth_;
float minCloudDepth_;
int cloudDensityLevel_;

View File

@@ -905,7 +905,11 @@ Java_com_introlab_rtabmap_RTABMapLib_postOdometryEvent(
stamp,
yPtr, uPtr, vPtr, yPlaneLen, rgbWidth, rgbHeight, rgbFormat,
depthPtr, depthLen, depthWidth, depthHeight, depthFormat,
pointsPtr, pointsLen);
0,0,0,0,0,
pointsPtr, pointsLen, 4,
0,0,0,0,0,0,0,
0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0);
}
else
{