RemoteGui.h
Go to the documentation of this file.
1/*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @author Fabian Reister ( fabian dot reister at kit dot edu )
17 * @date 2021
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#pragma once
23
25
26#include <ArmarXGui/interface/RemoteGuiInterface.h>
29
31{
32
34 {
35 public:
36 virtual void loadGraph() = 0;
37 virtual void loadDataFromMemory() = 0;
38 virtual void alignBoundingBox() = 0;
39 virtual void selectBoundingBoxCorner(int i) = 0;
40 virtual void findAssociations() = 0;
41 virtual void computeCoarseCorrection() = 0;
42 virtual void computeFineCorrection() = 0;
43 virtual void storeRegistrationResult() = 0;
44 };
45
47 {
48 public:
49 RemoteGui(const RemoteGuiInterfacePrx& remoteGui, RemoteGuiCallee& callee);
50
51 void enable();
52 void disable();
53
54 private:
55 void handleEvents(armarx::RemoteGui::TabProxy& tab) override;
56 const std::string& tabName() const override;
57
58 RemoteGuiCallee& callee;
59
60 void createRemoteGuiTab();
61
62 const std::string remoteGuiTabMame = "Map registration";
63
64 const std::string loadGraphButtonName = "Load SLAM graph";
65 const std::string loadDataFromMemoryButtonName = "Load data from memory";
66 const std::string selectBoundingBoxCornerButtonName = "select bb corner";
67 const std::string alignBoundingBoxButtonName = "Align (bounding box)";
68 const std::string findAssociationsButtonName = "Find associations";
69 const std::string computeCoarseCorrectionButtonName = "Coarse alignment (locally)";
70 const std::string computeFineCorrectionButtonName = "Fine alignment (locally)";
71 const std::string storeRegistrationResultButtonName = "Store registration result";
72 };
73
74} // namespace armarx::cartographer_map_registration
RemoteGui(const RemoteGuiInterfacePrx &remoteGui, RemoteGuiCallee &callee)
Definition RemoteGui.cpp:20