perception_widget.h
Go to the documentation of this file.
1 /*********************************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2018, Mohamad Ayman.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the following
15  * disclaimer in the documentation and/or other materials provided
16  * with the distribution.
17  * * The name of Mohamad Ayman may not be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
23  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
24  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
28  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31  * POSSIBILITY OF SUCH DAMAGE.
32  *********************************************************************/
33 
34 /* Author: Mohamad Ayman */
35 
36 #ifndef MOVEIT_MOVEIT_SETUP_ASSISTANT_WIDGETS_PERCEPTION_WIDGET_
37 #define MOVEIT_MOVEIT_SETUP_ASSISTANT_WIDGETS_PERCEPTION_WIDGET_
38 
39 // Qt
40 #include <QWidget>
41 #include <QComboBox>
42 #include <QGroupBox>
43 #include <QString>
44 #include <QLineEdit>
45 
46 // SA
47 #ifndef Q_MOC_RUN
49 #endif
50 
51 #include "header_widget.h"
52 #include "setup_screen_widget.h" // a base class for screens in the setup assistant
53 
54 namespace moveit_setup_assistant
55 {
56 // ******************************************************************************************
57 // User Interface for setting up 3D sensor config
58 // ******************************************************************************************
60 {
61  Q_OBJECT
62 
63 public:
64  // ******************************************************************************************
65  // Public Functions
66  // ******************************************************************************************
67 
68  PerceptionWidget(QWidget* parent, moveit_setup_assistant::MoveItConfigDataPtr config_data);
69 
71  virtual void focusGiven();
72 
74  virtual bool focusLost();
75 
78 
79  // ******************************************************************************************
80  // Qt Components
81  // ******************************************************************************************
82 
84 
85  // Group form for each plugin option
86  QGroupBox* point_cloud_group_;
87  QGroupBox* depth_map_group_;
88 
89  // Point Cloud plugin feilds
91  QLineEdit* max_range_field_;
97 
98  // Depth Map plugin feilds
99  QLineEdit* image_topic_field_;
100  QLineEdit* queue_size_field_;
108 
109 private Q_SLOTS:
110 
111  // ******************************************************************************************
112  // Slot Event Functions
113  // ******************************************************************************************
114 
116  void sensorPluginChanged(int index);
117 
118 private:
119  // ******************************************************************************************
120  // Variables
121  // ******************************************************************************************
122 
124  moveit_setup_assistant::MoveItConfigDataPtr config_data_;
125 };
126 
127 } // namespace moveit_setup_assistant
128 
129 #endif
PerceptionWidget(QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data)
virtual void focusGiven()
Received when this widget is chosen from the navigation menu.
virtual bool focusLost()
Received when another widget is chosen from the navigation menu.
moveit_setup_assistant::MoveItConfigDataPtr config_data_
Contains all the configuration data for the setup assistant.
void loadSensorPluginsComboBox()
Populate the combo dropdown box with sensor plugins.
void sensorPluginChanged(int index)
Called when the selected item in the sensor_plugin_field_ combobox is changed.


moveit_setup_assistant
Author(s): Dave Coleman
autogenerated on Sun Oct 18 2020 13:19:28