Skip to content

Commit

Permalink
Simplify (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
benemer authored Jan 24, 2025
1 parent 24285a4 commit 8ac8269
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cpp/kiss_icp/core/Preprocessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ std::vector<Eigen::Vector3d> Preprocessor::Preprocess(const std::vector<Eigen::V
return frame;
} else {
const auto &omega = relative_motion.log();
const Sophus::SE3d &inverse_motion = relative_motion.inverse();
std::vector<Eigen::Vector3d> deskewed_frame(frame.size());
tbb::parallel_for(
// Index Range
Expand All @@ -70,7 +69,7 @@ std::vector<Eigen::Vector3d> Preprocessor::Preprocess(const std::vector<Eigen::V
for (size_t idx = r.begin(); idx < r.end(); ++idx) {
const auto &point = frame.at(idx);
const auto &stamp = timestamps.at(idx);
const auto pose = inverse_motion * Sophus::SE3d::exp(stamp * omega);
const auto pose = Sophus::SE3d::exp((stamp - 1.0) * omega);
deskewed_frame.at(idx) = pose * point;
};
});
Expand Down

0 comments on commit 8ac8269

Please sign in to comment.