jogjech / slamit_ORBSLAM2_on_Android

Due to personal tech stack change, I'm focusing more on Web and backend dev instead of Mechanical Engineering. Thus this repository will not be maintained. Feel free to fork and change whatever you want. :)
95 stars 34 forks source link

ArrayIndexOutOfBoundsException [DatasetMode] #9

Open augmentedreality01 opened 6 years ago

augmentedreality01 commented 6 years ago

I got the following error while running the dataset mode. Dataset is rgbd_dataset_freiburg_1_360 with TUM1.yaml.

java.lang.ArrayIndexOutOfBoundsException at orb.slam2.android.ORBSLAMForDataSetActivity$2$1.run(ORBSLAMForDataSetActivity.java:143).

These are the relevant lines in code: int[] resultInt = OrbNdkHelper.startCurrentORB(timestamp, pix, w, h); resultImg = Bitmap.createBitmap(w, h, Config.RGB_565); resultImg.setPixels(resultInt, 0, w, 0, 0, w, h);

Any suggestions?