Main Page
Namespaces
Classes
Files
File List
File Members
src
widgets
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
48
#include <
moveit/setup_assistant/tools/moveit_config_data.h
>
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
// ******************************************************************************************
59
class
PerceptionWidget
:
public
SetupScreenWidget
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
77
void
loadSensorPluginsComboBox
();
78
79
// ******************************************************************************************
80
// Qt Components
81
// ******************************************************************************************
82
83
QComboBox*
sensor_plugin_field_
;
84
85
// Group form for each plugin option
86
QGroupBox*
point_cloud_group_
;
87
QGroupBox*
depth_map_group_
;
88
89
// Point Cloud plugin feilds
90
QLineEdit*
point_cloud_topic_field_
;
91
QLineEdit*
max_range_field_
;
92
QLineEdit*
point_subsample_field_
;
93
QLineEdit*
padding_offset_field_
;
94
QLineEdit*
padding_scale_field_
;
95
QLineEdit*
max_update_rate_field_
;
96
QLineEdit*
filtered_cloud_topic_field_
;
97
98
// Depth Map plugin feilds
99
QLineEdit*
image_topic_field_
;
100
QLineEdit*
queue_size_field_
;
101
QLineEdit*
near_clipping_field_
;
102
QLineEdit*
far_clipping_field_
;
103
QLineEdit*
shadow_threshold_field_
;
104
QLineEdit*
depth_padding_scale_field_
;
105
QLineEdit*
depth_padding_offset_field_
;
106
QLineEdit*
depth_filtered_cloud_topic_field_
;
107
QLineEdit*
depth_max_update_rate_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
moveit_setup_assistant::PerceptionWidget::point_cloud_group_
QGroupBox * point_cloud_group_
Definition:
perception_widget.h:86
moveit_setup_assistant::PerceptionWidget::PerceptionWidget
PerceptionWidget(QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data)
Definition:
perception_widget.cpp:49
moveit_setup_assistant::PerceptionWidget::filtered_cloud_topic_field_
QLineEdit * filtered_cloud_topic_field_
Definition:
perception_widget.h:96
moveit_setup_assistant::PerceptionWidget::padding_offset_field_
QLineEdit * padding_offset_field_
Definition:
perception_widget.h:93
moveit_setup_assistant::PerceptionWidget::depth_padding_offset_field_
QLineEdit * depth_padding_offset_field_
Definition:
perception_widget.h:105
moveit_setup_assistant::PerceptionWidget::max_update_rate_field_
QLineEdit * max_update_rate_field_
Definition:
perception_widget.h:95
moveit_setup_assistant::PerceptionWidget::queue_size_field_
QLineEdit * queue_size_field_
Definition:
perception_widget.h:100
moveit_setup_assistant::PerceptionWidget::focusGiven
virtual void focusGiven()
Received when this widget is chosen from the navigation menu.
Definition:
perception_widget.cpp:193
moveit_setup_assistant::PerceptionWidget::sensor_plugin_field_
QComboBox * sensor_plugin_field_
Definition:
perception_widget.h:83
moveit_setup_assistant::PerceptionWidget::depth_map_group_
QGroupBox * depth_map_group_
Definition:
perception_widget.h:87
moveit_setup_assistant::PerceptionWidget::focusLost
virtual bool focusLost()
Received when another widget is chosen from the navigation menu.
Definition:
perception_widget.cpp:201
moveit_setup_assistant::PerceptionWidget::depth_max_update_rate_field_
QLineEdit * depth_max_update_rate_field_
Definition:
perception_widget.h:107
moveit_setup_assistant::PerceptionWidget::point_cloud_topic_field_
QLineEdit * point_cloud_topic_field_
Definition:
perception_widget.h:90
moveit_setup_assistant::PerceptionWidget::padding_scale_field_
QLineEdit * padding_scale_field_
Definition:
perception_widget.h:94
moveit_setup_assistant::PerceptionWidget::config_data_
moveit_setup_assistant::MoveItConfigDataPtr config_data_
Contains all the configuration data for the setup assistant.
Definition:
perception_widget.h:124
moveit_setup_assistant::PerceptionWidget::image_topic_field_
QLineEdit * image_topic_field_
Definition:
perception_widget.h:99
moveit_setup_assistant::PerceptionWidget::loadSensorPluginsComboBox
void loadSensorPluginsComboBox()
Populate the combo dropdown box with sensor plugins.
Definition:
perception_widget.cpp:283
moveit_setup_assistant
Definition:
compute_default_collisions.h:42
moveit_setup_assistant::PerceptionWidget
Definition:
perception_widget.h:59
moveit_setup_assistant::PerceptionWidget::far_clipping_field_
QLineEdit * far_clipping_field_
Definition:
perception_widget.h:102
moveit_setup_assistant::PerceptionWidget::max_range_field_
QLineEdit * max_range_field_
Definition:
perception_widget.h:91
header_widget.h
moveit_setup_assistant::PerceptionWidget::shadow_threshold_field_
QLineEdit * shadow_threshold_field_
Definition:
perception_widget.h:103
moveit_setup_assistant::PerceptionWidget::depth_padding_scale_field_
QLineEdit * depth_padding_scale_field_
Definition:
perception_widget.h:104
SetupScreenWidget
Definition:
setup_screen_widget.h:45
moveit_setup_assistant::PerceptionWidget::sensorPluginChanged
void sensorPluginChanged(int index)
Called when the selected item in the sensor_plugin_field_ combobox is changed.
Definition:
perception_widget.cpp:261
setup_screen_widget.h
moveit_config_data.h
moveit_setup_assistant::PerceptionWidget::point_subsample_field_
QLineEdit * point_subsample_field_
Definition:
perception_widget.h:92
moveit_setup_assistant::PerceptionWidget::near_clipping_field_
QLineEdit * near_clipping_field_
Definition:
perception_widget.h:101
moveit_setup_assistant::PerceptionWidget::depth_filtered_cloud_topic_field_
QLineEdit * depth_filtered_cloud_topic_field_
Definition:
perception_widget.h:106
moveit_setup_assistant
Author(s): Dave Coleman
autogenerated on Sun Oct 18 2020 13:19:28