GLIM
Loading...
Searching...
No Matches
map_editor.hpp
1#pragma once
2
3#include <unordered_map>
4
5#include <spdlog/spdlog.h>
6#include <guik/progress_modal.hpp>
7#include <glim/mapping/sub_map.hpp>
8#include <gtsam_points/types/point_cloud_cpu.hpp>
9
10#include <glim/viewer/editor/map_cell.hpp>
11#include <glim/viewer/editor/points_selector.hpp>
12
13namespace glim {
14
16class MapEditor {
17public:
18 MapEditor(const std::string& init_map_path);
19 ~MapEditor();
20
21 void run();
22
23private:
24 void main_menu();
25
26 void ui_callback();
27
28 std::vector<glim::SubMap::Ptr> load_submaps(guik::ProgressInterface& progress, const std::string& map_path);
29
30 bool save_submaps(guik::ProgressInterface& progress, const std::string& save_path);
31
32private:
33 std::shared_ptr<spdlog::logger> logger;
34 std::unique_ptr<guik::ProgressModal> progress_modal;
35
36 std::string map_path;
37 std::string init_map_path;
38
39 std::vector<glim::SubMap::Ptr> submaps;
40 std::unique_ptr<PointsSelector> selector;
41};
42
43} // namespace glim
Interactive map editor.
Definition map_editor.hpp:16