Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
benemer committed Jan 17, 2025
1 parent d903fbf commit 61491f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mapmos/pybind/Deskew.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@
#include <vector>

namespace mapmos {
static const auto tbb_control_settings = tbb::global_control(
tbb::global_control::max_allowed_parallelism, tbb::this_task_arena::max_concurrency());

std::vector<Eigen::Vector3d> Deskew(const std::vector<Eigen::Vector3d> &frame,
const std::vector<double> &timestamps,
const Sophus::SE3d &relative_motion) {
static const auto tbb_control_settings = tbb::global_control(
tbb::global_control::max_allowed_parallelism, tbb::this_task_arena::max_concurrency());

const std::vector<Eigen::Vector3d> &deskewed_frame = [&]() {
const auto &omega = relative_motion.log();
const Sophus::SE3d &inverse_motion = relative_motion.inverse();
Expand All @@ -62,4 +63,5 @@ std::vector<Eigen::Vector3d> Deskew(const std::vector<Eigen::Vector3d> &frame,
}();
return deskewed_frame;
}

} // namespace mapmos

0 comments on commit 61491f0

Please sign in to comment.