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

Bug | Orientation is in the wrong coordinate frame #121

Open
nakai-omer opened this issue May 22, 2023 · 4 comments
Open

Bug | Orientation is in the wrong coordinate frame #121

nakai-omer opened this issue May 22, 2023 · 4 comments

Comments

@nakai-omer
Copy link

nakai-omer commented May 22, 2023

Hello,

We are using a VN-100T, and we are getting a roll when the IMU is flat on a surface. In other words, Z is pointing down.
image
From looking a little at the code we found a couple of issues:

  1. // Quaternion NED -> ENU
    Orientation is always converted to ENU even if use_enu is false.
  2. The above conversion actually breaks the orientation and causes the above mentioned issue. From our tests, the quaternion that arrives is already in ENU, so this conversion is redundant (nevertheless a conversion should exist if use_enu is false to turn it into NED).
  3. Pose is always converted to ECEF, and afaik should also be in ENU.
    geometry_msgs::msg::PoseWithCovarianceStamped msg;
    .

I don't mind issuing a PR, just would like to get assurance I am not missing something.

@dawonn
Copy link
Owner

dawonn commented May 22, 2023

Good eye, PRs are appreciated.

nakai-omer added a commit to nakai-omer/vectornav that referenced this issue May 22, 2023
nakai-omer added a commit to nakai-omer/vectornav that referenced this issue May 22, 2023
@nakai-omer
Copy link
Author

nakai-omer commented May 23, 2023

@dawonn created PR #122

nakai-omer added a commit to nakai-omer/vectornav that referenced this issue May 23, 2023
dawonn pushed a commit that referenced this issue Jul 3, 2023
@AngeLoGa
Copy link

Greetings, I have also been experiencing this issue when we bought a robot using a VectorNav IMU. My question is, seems that the PR was merged into ros2 branch. Have these changes been made on master branch as well? I'm currently working in Melodic but planning to update to Noetic...thanks from advance.

@dawonn
Copy link
Owner

dawonn commented Nov 30, 2023

@AngeLoGa , PRs are welcome.

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

3 participants