mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
t/psmv: Rotate IMU into something like camera space
This commit is contained in:
parent
ccd139ab68
commit
c713ca61f2
|
@ -510,7 +510,10 @@ imu_data(TrackerPSMV &t,
|
|||
//! @todo use better measurements instead of the above "simple fusion"
|
||||
flexkalman::predict(t.filter_state, t.process_model, dt);
|
||||
auto meas = flexkalman::AbsoluteOrientationMeasurement{
|
||||
t.imu.getQuat(), Eigen::Vector3d::Constant(0.01)};
|
||||
Eigen::Quaterniond(
|
||||
Eigen::AngleAxisd(EIGEN_PI, Eigen::Vector3d::UnitY())) *
|
||||
t.imu.getQuat(),
|
||||
Eigen::Vector3d::Constant(0.01)};
|
||||
if (!flexkalman::correctUnscented(t.filter_state, meas)) {
|
||||
fprintf(stderr,
|
||||
"Got non-finite something when filtering IMU!\n");
|
||||
|
|
Loading…
Reference in a new issue