10 #include <ArmarXGui/interface/RemoteGuiInterface.h>
17 namespace gui = RemoteGui;
35 MappingRemoteGui::createRemoteGuiTab()
43 "Use this button to create a map after you collected enough data:");
47 boxLayout.addChild(line);
54 const auto package = gui::makeLineEdit(outputDirPackageField)
55 .value(params.mapStorageDir.serialize().package);
57 gui::makeLineEdit(outputDirPathField).value(params.mapStorageDir.serialize().path);
60 boxLayout.addChild(line);
68 MappingRemoteGui::run()
70 constexpr
int kCycleDurationMs = 100;
72 CycleUtil
c(kCycleDurationMs);
73 while (!runningTask->isStopped())
81 c.waitForCycleDuration();
86 MappingRemoteGui::handleEvents(RemoteGui::TabProxy& tab)
89 const RemoteGui::ButtonProxy createMapButton = tab.getButton(CREATE_MAP_BUTTON);
92 if (createMapButton.clicked())
94 const RemoteGuiCallee::ButtonClickContext ctx{
97 tab.getValue<std::string>(outputDirPathField).get()}};
107 if (!runningTask->isStopped())
119 tab.internalSetDisabled(CREATE_MAP_BUTTON,
false);
125 tab.internalSetDisabled(CREATE_MAP_BUTTON,
true);