MCPcopy Create free account
hub / github.com/PRBonn/MapClosures / IntegrateFrame

Method IntegrateFrame

cpp/map_closures/VoxelMap.cpp:79–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77 max_distance_(max_distance) {}
78
79void VoxelMap::IntegrateFrame(const Vector3dVector &points, const Eigen::Matrix4d &pose) {
80 const Eigen::Matrix3d R = pose.block<3, 3>(0, 0);
81 const Eigen::Vector3d t = pose.block<3, 1>(0, 3);
82 std::vector<Eigen::Vector3d> points_transformed(points.size());
83 std::transform(points.cbegin(), points.cend(), points_transformed.begin(),
84 [&](const auto &point) { return R * point + t; });
85 AddPoints(points_transformed);
86}
87
88void VoxelMap::AddPoints(const Vector3dVector &points) {
89 std::for_each(points.cbegin(), points.cend(), [&](const Eigen::Vector3d &point) {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
cbeginMethod · 0.80
cendMethod · 0.80

Tested by

no test coverage detected