-
Notifications
You must be signed in to change notification settings - Fork 2
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
Fix imu system #36
base: master
Are you sure you want to change the base?
Fix imu system #36
Conversation
f349f63
to
4a2b06f
Compare
src/hdl_localization/pose_system.cpp
Outdated
dq = Eigen::AngleAxisf(gyro[0] * dt_, Vector3t::UnitX()) * Eigen::AngleAxisf(gyro[1] * dt_, Vector3t::UnitY()) * | ||
Eigen::AngleAxisf(gyro[2] * dt_, Vector3t::UnitZ()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あまり詳しくないのですが,unit vectorで回転する式は以下だと思いましたが違いますか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参照記事教えてもらえますか
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上記の式の書き方ちょっとミスっていると思います. 🙇
認識正しければ,上記のコードだと
この2つから参考しました
https://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToQuaternion/index.htm
https://gamedev.stackexchange.com/questions/98011/correct-way-to-integrate-scaled-axis-angular-velocity-into-a-quaternion
色々試しましたが有意差が見られないので一旦後回しにしようと思います |
Summary
IMUを用いたシステムの状態推定の計算を修正
Detail
Impact
Test
wheeltecのgazebo環境で動作確認
目視ではほぼ変化なし