Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not estimate gravity value directly #48

Open
VRichardJP opened this issue May 31, 2024 · 1 comment
Open

Why not estimate gravity value directly #48

VRichardJP opened this issue May 31, 2024 · 1 comment

Comments

@VRichardJP
Copy link
Contributor

In DLIO, local gravity value is a fixed parameter and can be used to estimate the initial orientation/bias of the robot.

However, most IMU sensors do measure and report gravity, for example something like this: acc={x=0.1, y=0.2, z=9.76}. Thus the gravity value can be calibrated automatically like so: gravity = (avg_acc - initial_bias).norm()), and it is not necessary to set the gravity value anymore

What do you think?

@VRichardJP
Copy link
Contributor Author

If anyone is interested, this is how I have implemented here:

      Eigen::Vector3f grav_vec (0., 0., this->gravity_);

      if (this->gravity_estimate_) {
        // Estimate gravity magnitude
        this->gravity_ = (accel_avg - this->state.b.accel).norm();
        grav_vec = Eigen::Vector3f (0., 0., this->gravity_);
      }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant