Skip to content

Commit

Permalink
Fix include headers (#365)
Browse files Browse the repository at this point in the history
* Make voxel computation consistent across all source code, also use std::floor to have explicit control over type casting

* Use available function for conversion

* Make it a one liner

* remove numeric from includes

* New proposal

* remove numeric from include

* shrink diff

* Consistency as always

* Fix include header, follow IWYU

---------

Co-authored-by: tizianoGuadagnino <[email protected]>
Co-authored-by: Ignacio Vizzo <[email protected]>
  • Loading branch information
3 people authored Jul 12, 2024
1 parent 5d42087 commit 70c3e8d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cpp/kiss_icp/core/Preprocessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#include <tsl/robin_map.h>

#include <Eigen/Core>
#include <Eigen/Geometry>
#include <algorithm>
#include <cmath>
#include <sophus/se3.hpp>
#include <vector>

namespace {
Expand Down
2 changes: 0 additions & 2 deletions cpp/kiss_icp/core/Preprocessing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#pragma once

#include <Eigen/Core>
#include <sophus/se3.hpp>
#include <utility>
#include <vector>

namespace kiss_icp {
Expand Down
3 changes: 2 additions & 1 deletion cpp/kiss_icp/core/Threshold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@
// SOFTWARE.
#include "Threshold.hpp"

#include <Eigen/Core>
#include <Eigen/Geometry>
#include <cmath>
#include <sophus/se3.hpp>

namespace kiss_icp {
AdaptiveThreshold::AdaptiveThreshold(double initial_threshold,
Expand Down
3 changes: 1 addition & 2 deletions cpp/kiss_icp/core/VoxelHashMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@

#include <Eigen/Core>
#include <algorithm>
#include <tuple>
#include <utility>
#include <sophus/se3.hpp>
#include <vector>

namespace kiss_icp {
Expand Down
1 change: 1 addition & 0 deletions cpp/kiss_icp/metrics/Metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "Metrics.hpp"

#include <Eigen/Core>
#include <Eigen/Geometry>
#include <algorithm>
#include <cassert>
#include <cmath>
Expand Down

0 comments on commit 70c3e8d

Please sign in to comment.