Git Product home page Git Product logo

android-viotester's People

Contributors

bercon avatar oseiskar avatar pekkaran avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

android-viotester's Issues

Make Firebase optional

So that app/google-services.json is not needed. Could, for example, check the existence of that file in one of the Gradle scripts and only add the Firebase dependencies if present. See, e.g.,

def hasCustomVio = new File("custom-vio").exists()

Tracking not Initialize, Every time Pose gets null every time with all flavor.

Hii, @pekkaran

This demo is great for VIO.
I run this dome app and collect the VIO data but In this case, the tracking status does not Initialize every time and also getPose(); getting null every time.

And also checked c++ function for getting Pose, but it's fired -1 every time. Below are functions, we are using for the gets Pose, but it's not working.

Can you guide us on How we can Initialize the tracking points and get the Pose successfully?

  1. JNIEXPORT jdoubleArray JNICALL Java_org_example_viotester_AlgorithmWorker_getPose(
    JNIEnv *env, jobject) {
    auto algorithm = std::atomic_load(&algorithmPtr);
    if (algorithm) {
    recorder::Pose pose;
    bool hasPose = algorithm->pose(pose);
    // Pragnesh did updated this code
    if (!hasPose) {
    return NULL;
    }
    jdoubleArray result = env->NewDoubleArray(8);
    jdouble buf[8];
    buf[0] = pose.time;
    buf[1] = pose.position.x;
    buf[2] = pose.position.y;
    buf[3] = pose.position.z;
    buf[4] = pose.orientation.x;
    buf[5] = pose.orientation.y;
    buf[6] = pose.orientation.z;
    buf[7] = pose.orientation.w;
    env->SetDoubleArrayRegion(result, 0, 8, buf);
    return result;
    }
    return NULL;

  2. JNIEXPORT jint JNICALL Java_org_example_viotester_AlgorithmWorker_getTrackingStatus(
    JNIEnv *, jobject) {
    auto algorithm = std::atomic_load(&algorithmPtr);
    if (algorithm) return algorithm->trackingStatus();
    return -1;
    }

Here are logs :
2022-04-26 13:51:08.504 11144-12723/? E/pragnesh: focalLengthX 484.068 focalLengthY 483.6075 principalPointX 317.23218 principalPointY 241.6948
2022-04-26 13:51:08.505 11144-12723/? E/pragnesh: time 0.0 qx 0.0 qy 0.0 qz 0.0 qw 0.0 x 0.0 y 0.0 z 0.0
2022-04-26 13:51:08.505 11144-12723/? E/pragnesh: status -1
2022-04-26 13:51:08.537 11144-12723/? E/pragnesh: focalLengthX 484.068 focalLengthY 483.6075 principalPointX 317.23218 principalPointY 241.6948
2022-04-26 13:51:08.538 11144-12723/? E/pragnesh: time 0.0 qx 0.0 qy 0.0 qz 0.0 qw 0.0 x 0.0 y 0.0 z 0.0
2022-04-26 13:51:08.538 11144-12723/? E/pragnesh: status -1
2022-04-26 13:51:08.570 11144-12723/? E/pragnesh: focalLengthX 484.068 focalLengthY 483.6075 principalPointX 317.23218 principalPointY 241.6948
2022-04-26 13:51:08.570 11144-12723/? E/pragnesh: time 0.0 qx 0.0 qy 0.0 qz 0.0 qw 0.0 x 0.0 y 0.0 z 0.0
2022-04-26 13:51:08.570 11144-12723/? E/pragnesh: status -1
2022-04-26 13:51:08.587 11144-12723/? E/pragnesh: focalLengthX 484.068 focalLengthY 483.6075 principalPointX 317.23218 principalPointY 241.6948
2022-04-26 13:51:08.588 11144-12723/? E/pragnesh: time 0.0 qx 0.0 qy 0.0 qz 0.0 qw 0.0 x 0.0 y 0.0 z 0.0
2022-04-26 13:51:08.588 11144-12723/? E/pragnesh: status -1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.