Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
benemer committed Jan 17, 2025
1 parent bdce66a commit 0979f1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/mapmos/pybind/Deskew.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
#include "Deskew.hpp"

#include <tbb/blocked_range.h>
#include <tbb/concurrent_vector.h>
#include <tbb/global_control.h>
#include <tbb/info.h>
#include <tbb/parallel_for.h>
#include <tbb/task_arena.h>

#include <Eigen/Core>
#include <Eigen/Geometry>
Expand All @@ -40,9 +36,6 @@ namespace mapmos {
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 Down
7 changes: 7 additions & 0 deletions src/mapmos/pybind/Deskew.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,20 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#pragma once
#include <tbb/global_control.h>
#include <tbb/task_arena.h>

#include <Eigen/Core>
#include <sophus/se3.hpp>
#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);

} // namespace mapmos

0 comments on commit 0979f1f

Please sign in to comment.