Skip to content

Commit

Permalink
Adjust Global Frame in odometry pipeline (#331)
Browse files Browse the repository at this point in the history
* Our API is amazing

* Make name more consistent

* Add public setter/getter the Eigen way, so that our beatiful naming of
attributes doesn't break

* Add back

---------

Co-authored-by: Benedikt Mersch <benedikt.mersch@gmail.com>
  • Loading branch information
tizianoGuadagnino and benemer authored Apr 19, 2024
1 parent e045128 commit cc8d18e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cpp/kiss_icp/pipeline/KissICP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,15 @@ class KissICP {
Vector3dVectorTuple Voxelize(const std::vector<Eigen::Vector3d> &frame) const;

std::vector<Eigen::Vector3d> LocalMap() const { return local_map_.Pointcloud(); };
Sophus::SE3d pose() const { return last_pose_; }
Sophus::SE3d delta() const { return last_delta_; }

const VoxelHashMap &VoxelMap() const { return local_map_; };
VoxelHashMap &VoxelMap() { return local_map_; };

const Sophus::SE3d &pose() const { return last_pose_; }
Sophus::SE3d &pose() { return last_pose_; }

const Sophus::SE3d &delta() const { return last_delta_; }
Sophus::SE3d &delta() { return last_delta_; }

private:
Sophus::SE3d last_pose_;
Expand Down

0 comments on commit cc8d18e

Please sign in to comment.