mirror of
https://github.com/introlab/rtabmap.git
synced 2026-10-08 02:57:46 +08:00
Fixed occlusion image origin offset (iOS and android). Android: disabled maximum odom image rate for faster feedback in First-Person. Min/Max range parameters also filter scans. Fixed background renderer not showing image (ARCore Java driver).
This commit is contained in:
@@ -307,8 +307,6 @@ public class ARCoreSharedCamera {
|
||||
}
|
||||
mTOFImageReader.stopBackgroundThread();
|
||||
}
|
||||
|
||||
private long mPreviousTime = 0;
|
||||
|
||||
/**
|
||||
* Return true if the given array contains the given integer.
|
||||
@@ -335,8 +333,6 @@ public class ARCoreSharedCamera {
|
||||
close();
|
||||
|
||||
startBackgroundThread();
|
||||
|
||||
mPreviousTime = System.currentTimeMillis();
|
||||
|
||||
if(cameraTextureId == -1)
|
||||
{
|
||||
@@ -641,13 +637,6 @@ public class ARCoreSharedCamera {
|
||||
if(!RTABMapActivity.DISABLE_LOG) Log.d(TAG, String.format("pose=%f %f %f q=%f %f %f %f stamp=%f", pose.tx(), pose.ty(), pose.tz(), pose.qx(), pose.qy(), pose.qz(), pose.qw(), stamp));
|
||||
RTABMapLib.postCameraPoseEvent(RTABMapActivity.nativeApplication, pose.tx(), pose.ty(), pose.tz(), pose.qx(), pose.qy(), pose.qz(), pose.qw(), stamp);
|
||||
|
||||
int rateMs = 100; // send images at most 10 Hz (to save battery)
|
||||
if(System. currentTimeMillis() - mPreviousTime < rateMs)
|
||||
{
|
||||
return;
|
||||
}
|
||||
mPreviousTime = System. currentTimeMillis();
|
||||
|
||||
CameraIntrinsics intrinsics = camera.getImageIntrinsics();
|
||||
try{
|
||||
Image image = frame.acquireCameraImage();
|
||||
@@ -683,7 +672,7 @@ public class ARCoreSharedCamera {
|
||||
frame.transformCoordinates2d(
|
||||
Coordinates2d.OPENGL_NORMALIZED_DEVICE_COORDINATES,
|
||||
QUAD_COORDS,
|
||||
Coordinates2d.TEXTURE_NORMALIZED,
|
||||
Coordinates2d.IMAGE_NORMALIZED,
|
||||
texCoord);
|
||||
|
||||
float[] p = new float[16];
|
||||
|
||||
@@ -1075,6 +1075,7 @@ public class RTABMapActivity extends FragmentActivity implements OnClickListener
|
||||
|
||||
setAndroidOrientation();
|
||||
|
||||
updateCameraDriverSettings();
|
||||
updatePreferences();
|
||||
|
||||
if(mState == State.STATE_MAPPING || mState == State.STATE_CAMERA)
|
||||
|
||||
Reference in New Issue
Block a user