MappingRemoteGui.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
26
27#include <ArmarXGui/interface/RemoteGuiInterface.h>
29
31{
32
34 {
35 public:
40
42 virtual ~RemoteGuiCallee() = default;
43 };
44
45 namespace detail
46 {
52 } // namespace detail
53
55 {
56 public:
58
59 MappingRemoteGui(const RemoteGuiInterfacePrx& remoteGui,
60 RemoteGuiCallee& callee,
61 const Params& params);
62
63 void shutdown();
64
65 void enable();
66 void disable();
67
68 private:
69 RemoteGuiInterfacePrx remoteGui;
70
72
73 RemoteGuiCallee& callee;
74
76
77 void createRemoteGuiTab();
78
79 // thread function
80 void run();
81
82 void handleEvents(RemoteGui::TabProxy& tab);
83
84 const std::string CREATE_MAP_BUTTON = "Create map!";
85 const std::string outputDirPackageField = "package";
86 const std::string outputDirPathField = "path";
87
88 const Params params;
89 };
90
91} // namespace armarx::localization_and_mapping::components::cartographer_localization_and_mapping
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.
MappingRemoteGui(const RemoteGuiInterfacePrx &remoteGui, RemoteGuiCallee &callee, const Params &params)