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 
34 #include <RobotAPI/interface/observers/GraspCandidateObserverInterface.h>
35 
36 #include <RobotAPI/gui-plugins/BoxToGraspCandidates/ui_BoxToGraspCandidatesWidget.h>
37 
38 namespace armarx
39 {
40  /**
41  \page RobotAPI-GuiPlugins-BoxToGraspCandidates BoxToGraspCandidates
42  \brief The BoxToGraspCandidates allows visualizing ...
43 
44  \image html BoxToGraspCandidates.png
45  The user can
46 
47  API Documentation \ref BoxToGraspCandidatesWidgetController
48 
49  \see BoxToGraspCandidatesGuiPlugin
50  */
51 
52  /**
53  * \class BoxToGraspCandidatesWidgetController
54  * \brief BoxToGraspCandidatesWidgetController brief one line description
55  *
56  * Detailed description
57  */
60  public armarx::ArmarXComponentWidgetControllerTemplate < BoxToGraspCandidatesWidgetController >,
61  public virtual ArVizComponentPluginUser,
62  public virtual RobotStateComponentPluginUser
63  {
64  Q_OBJECT
65 
66  public:
68  virtual ~BoxToGraspCandidatesWidgetController() = default;
69 
70  void loadSettings(QSettings* settings) override;
71  void saveSettings(QSettings* settings) override;
72 
73  static QString GetWidgetName()
74  {
75  return "Grasping.BoxToGraspCandidates";
76  }
77 
78  void onInitComponent() override {}
79  void onConnectComponent() override;
80 
81  QPointer<QDialog> getConfigDialog(QWidget* parent);
82  void configured() override;
83  public slots:
84  void update();
85 
86  private:
87  std::mutex _mutex;
88  QPointer<SimpleConfigDialog> _dialog;
89  Ui::BoxToGraspCandidatesWidget _ui;
90 
99 
100  VirtualRobot::RobotPtr _robot;
101  std::string _gc_topic_name;
102  armarx::grasping::GraspCandidatesTopicInterfacePrx _gc_topic;
103  };
104 }
105 
106 
ArVizComponentPlugin.h
SpinBoxToVector.h
RobotStateComponentPlugin.h
armarx::ArmarXComponentWidgetControllerTemplate
Definition: ArmarXComponentWidgetController.h:69
SimpleConfigDialog.h
armarx::BoxToGraspCandidatesWidgetController::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: BoxToGraspCandidatesWidgetController.h:78
armarx::BoxToGraspCandidatesWidgetController::GetWidgetName
static QString GetWidgetName()
Definition: BoxToGraspCandidatesWidgetController.h:73
ArmarXGuiPlugin.h
armarx::BoxToGraspCandidatesWidgetController
BoxToGraspCandidatesWidgetController brief one line description.
Definition: BoxToGraspCandidatesWidgetController.h:58
armarx::ArVizComponentPluginUser
Provides a ready-to-use ArViz client arviz as member variable.
Definition: ArVizComponentPlugin.h:36
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
armarx::SpinBoxToVector< QDoubleSpinBox, 3 >
armarx::armem::server::ltm::util::mongodb::detail::update
bool update(mongocxx::collection &coll, const nlohmann::json &query, const nlohmann::json &update)
Definition: mongodb.cpp:67
SpinBoxToPose.h
armarx::SpinBoxToPose< QDoubleSpinBox >
armarx::RobotStateComponentPluginUser
Definition: RobotStateComponentPlugin.h:167
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition: Bus.h:18
ImportExportComponent.h