Skip to content

Commit

Permalink
fix imu_cursor (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 authored Nov 26, 2024
1 parent eb805d2 commit feb0fe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glim/odometry/loose_initial_state_estimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ EstimationFrame::ConstPtr LooseInitialStateEstimation::initial_pose() {
imu_cursor++;
}

const Eigen::Vector3d acc_local = imu_data[i].middleRows<3>(1);
const Eigen::Vector3d acc_local = imu_data[imu_cursor].middleRows<3>(1);
sum_acc_odom += (T_odom_lidar[i].second * T_lidar_imu).linear() * acc_local.normalized();
}

Expand Down

0 comments on commit feb0fe6

Please sign in to comment.