This commit is contained in:
trung09122002
2026-09-23 13:36:48 +07:00
parent dbcbf84dc3
commit 0a1b1b13f1
38 changed files with 2331 additions and 138 deletions

View File

@@ -23,6 +23,7 @@
#include "vslam/rtabmap_params.h"
#include "vslam/slam_types.h"
#include "vslam/voxel_export.h"
#include "vslam/vslam_common.h"
namespace vslam {
@@ -75,11 +76,22 @@ class RtabmapSlam {
// Xuat occupancy grid hien tai. Dat, goi khi map_version doi.
StatusResponse ExportMap(OccupancyGrid* out);
// Xuat ban do VOXEL 3D. Dat hon ExportMap: no quet lai o bi chiem cua moi
// node. Goi cung nhip va cung ngan sach voi ExportMap -- xem Runtime::SlamLoop.
//
// `out->epoch` khong duoc dat o day: vong doi epoch la viec cua nguoi goi,
// chi ho moi biet tap truoc do la gi.
StatusResponse ExportVoxels(const VoxelExportOptions& opt, VoxelGrid* out);
StatusResponse Close(bool save_database);
const SlamStats& stats() const;
SlamMode mode() const;
// Duong dan DB DA GIAI (tuong doi -> MapDir(), {stamp} da no).
// Rong = DB trong RAM. Chi co nghia sau Init().
const std::string& database_path() const;
private:
std::unique_ptr<RtabmapSlamImpl> impl_;
};