BoxToGraspCandidatesWidgetController.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 * @package ARCHES::gui-plugins::BoxToGraspCandidatesWidgetController
17 * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18 * @date 2020
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22#pragma once
23
25
31
32#include <RobotAPI/gui-plugins/BoxToGraspCandidates/ui_BoxToGraspCandidatesWidget.h>
33#include <RobotAPI/interface/observers/GraspCandidateObserverInterface.h>
36
37namespace armarx
38{
39 /**
40 \page RobotAPI-GuiPlugins-BoxToGraspCandidates BoxToGraspCandidates
41 \brief The BoxToGraspCandidates allows visualizing ...
42
43 \image html BoxToGraspCandidates.png
44 The user can
45
46 API Documentation \ref BoxToGraspCandidatesWidgetController
47
48 \see BoxToGraspCandidatesGuiPlugin
49 */
50
51 /**
52 * \class BoxToGraspCandidatesWidgetController
53 * \brief BoxToGraspCandidatesWidgetController brief one line description
54 *
55 * Detailed description
56 */
59 BoxToGraspCandidatesWidgetController>,
60 public virtual ArVizComponentPluginUser,
62 {
63 Q_OBJECT
64
65 public:
68
69 void loadSettings(QSettings* settings) override;
70 void saveSettings(QSettings* settings) override;
71
72 static QString
74 {
75 return "Grasping.BoxToGraspCandidates";
76 }
77
78 void
79 onInitComponent() override
80 {
81 }
82
83 void onConnectComponent() override;
84
85 QPointer<QDialog> getConfigDialog(QWidget* parent);
86 void configured() override;
87 public slots:
88 void update();
89
90 private:
91 std::mutex _mutex;
92 QPointer<SimpleConfigDialog> _dialog;
93 Ui::BoxToGraspCandidatesWidget _ui;
94
103
105 std::string _gc_topic_name;
106 armarx::grasping::GraspCandidatesTopicInterfacePrx _gc_topic;
107 };
108} // namespace armarx
#define ARMARXCOMPONENT_IMPORT_EXPORT
void onInitComponent() override
Pure virtual hook for the subclass.
void loadSettings(QSettings *settings) override
Implement to load the settings that are part of the GUI configuration.
void saveSettings(QSettings *settings) override
Implement to save the settings as part of the GUI configuration.
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
This file offers overloads of toIce() and fromIce() functions for STL container types.