Skip to content

Commit 994b268

Browse files
committed
remove const ref for move to work
1 parent 1620d9a commit 994b268

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpp/kiss_icp/pipeline/KissICP.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace kiss_icp::pipeline {
3535
KissICP::Vector3dVectorTuple KissICP::RegisterFrame(const std::vector<Eigen::Vector3d> &frame,
3636
const std::vector<double> &timestamps) {
3737
// Preprocess the input cloud
38-
const auto &preprocessed_frame = preprocessor_.Preprocess(frame, timestamps, last_delta_);
38+
Vector3dVector preprocessed_frame = preprocessor_.Preprocess(frame, timestamps, last_delta_);
3939

4040
// Voxelize
4141
const auto &[source, frame_downsample] = Voxelize(preprocessed_frame);
@@ -69,8 +69,8 @@ KissICP::Vector3dVectorTuple KissICP::RegisterFrame(const std::vector<Eigen::Vec
6969

7070
KissICP::Vector3dVectorTuple KissICP::Voxelize(const std::vector<Eigen::Vector3d> &frame) const {
7171
const auto voxel_size = config_.voxel_size;
72-
const auto frame_downsample = kiss_icp::VoxelDownsample(frame, voxel_size * 0.5);
73-
const auto source = kiss_icp::VoxelDownsample(frame_downsample, voxel_size * 1.5);
72+
Vector3dVector frame_downsample = kiss_icp::VoxelDownsample(frame, voxel_size * 0.5);
73+
Vector3dVector source = kiss_icp::VoxelDownsample(frame_downsample, voxel_size * 1.5);
7474
return {std::move(source), std::move(frame_downsample)};
7575
}
7676
void KissICP::Reset() {

0 commit comments

Comments
 (0)