moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
perception_widget.hpp
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#pragma once
37
38// Qt
39class QComboBox;
40class QGroupBox;
41class QLineEdit;
42
43// SA
46
47namespace moveit_setup
48{
49namespace app
50{
51// ******************************************************************************************
52// User Interface for setting up 3D sensor config
53// ******************************************************************************************
55{
56 Q_OBJECT
57
58public:
59 // ******************************************************************************************
60 // Public Functions
61 // ******************************************************************************************
62
63 void onInit() override;
64
66 void focusGiven() override;
67
69 bool focusLost() override;
70
73
75 {
76 return setup_step_;
77 }
78
79 // ******************************************************************************************
80 // Qt Components
81 // ******************************************************************************************
82
84
85 // Group form for each plugin option
87 QGroupBox* depth_map_group_;
88
89 // Point Cloud plugin fields
91 QLineEdit* max_range_field_;
97
98 // Depth Map plugin fields
108
109private Q_SLOTS:
110
111 // ******************************************************************************************
112 // Slot Event Functions
113 // ******************************************************************************************
114
116 void sensorPluginChanged(int index);
117
118private:
119 // ******************************************************************************************
120 // Variables
121 // ******************************************************************************************
122 Perception setup_step_;
123};
124
125} // namespace app
126} // namespace moveit_setup
The GUI code for one SetupStep.
Contains all of the non-GUI code necessary for doing one "screen" worth of setup.
SetupStep & getSetupStep() override
Return a reference to the SetupStep object.
void loadSensorPluginsComboBox()
Populate the combo dropdown box with sensor plugins.
void focusGiven() override
Received when this widget is chosen from the navigation menu.
bool focusLost() override
Received when another widget is chosen from the navigation menu.