Skip to content

Commit

Permalink
add custom_data to EstimationFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Aug 14, 2024
1 parent f3d192f commit 24893c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/glim/odometry/estimation_frame.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <memory>
#include <unordered_map>
#include <Eigen/Core>
#include <Eigen/Geometry>

Expand Down Expand Up @@ -64,5 +65,7 @@ struct EstimationFrame {
FrameID frame_id; ///< Coordinate frame of $frame
gtsam_points::PointCloud::ConstPtr frame; ///< Deskewed points for state estimation
std::vector<gtsam_points::GaussianVoxelMap::Ptr> voxelmaps; ///< Multi-resolution voxelmaps

std::unordered_map<std::string, std::shared_ptr<void>> custom_data; ///< User-defined custom data
};
} // namespace glim
1 change: 1 addition & 0 deletions src/glim/odometry/estimation_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ EstimationFrame::Ptr EstimationFrame::clone_wo_points() const {
cloned->raw_frame.reset();
cloned->frame.reset();
cloned->voxelmaps.clear();
cloned->custom_data.clear();
return cloned;
}

Expand Down

0 comments on commit 24893c1

Please sign in to comment.