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 
37 namespace 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,
61  public virtual RobotStateComponentPluginUser
62  {
63  Q_OBJECT
64 
65  public:
67  virtual ~BoxToGraspCandidatesWidgetController() = default;
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 
100  SpinBoxToVector<QDoubleSpinBox, 3> _transversal_r;
103 
104  VirtualRobot::RobotPtr _robot;
105  std::string _gc_topic_name;
106  armarx::grasping::GraspCandidatesTopicInterfacePrx _gc_topic;
107  };
108 } // namespace armarx
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:79
armarx::BoxToGraspCandidatesWidgetController::GetWidgetName
static QString GetWidgetName()
Definition: BoxToGraspCandidatesWidgetController.h:73
ArmarXGuiPlugin.h
armarx::BoxToGraspCandidatesWidgetController
BoxToGraspCandidatesWidgetController brief one line description.
Definition: BoxToGraspCandidatesWidgetController.h:57
armarx::ArVizComponentPluginUser
Provides a ready-to-use ArViz client arviz as member variable.
Definition: ArVizComponentPlugin.h:35
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:68
SpinBoxToPose.h
armarx::SpinBoxToPose< QDoubleSpinBox >
armarx::RobotStateComponentPluginUser
Definition: RobotStateComponentPlugin.h:165
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition: Bus.h:19
ImportExportComponent.h