simulation_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_SIMULATION_WIDGET_H
37 #define MOVEIT_MOVEIT_SETUP_ASSISTANT_WIDGETS_SIMULATION_WIDGET_H
38 
39 // Qt
40 #include <QScrollArea>
41 #include <QTextEdit>
42 #include <QString>
43 
44 // SA
45 #ifndef Q_MOC_RUN
47 #endif
48 
49 #include "header_widget.h"
50 #include "setup_screen_widget.h" // a base class for screens in the setup assistant
51 
52 namespace moveit_setup_assistant
53 {
54 // ******************************************************************************************
55 // ******************************************************************************************
56 // Class for showing changes needed to help user bring his robot into gazebo simulation
57 // ******************************************************************************************
58 // ******************************************************************************************
60 {
61  Q_OBJECT
62 
63 public:
64  // ******************************************************************************************
65  // Public Functions
66  // ******************************************************************************************
67 
68  SimulationWidget(QWidget* parent, moveit_setup_assistant::MoveItConfigDataPtr config_data);
69 
70 private Q_SLOTS:
71 
72  // ******************************************************************************************
73  // Slot Event Functions
74  // ******************************************************************************************
75 
76  // Called the copy to clipboard button is clicked
77  void copyURDF(const QString& link);
78 
80  void generateURDFClick();
81 
82 private:
83  // ******************************************************************************************
84  // Qt Components
85  // ******************************************************************************************
86 
87  QTextEdit* simulation_text_;
89  QLabel* copy_urdf_;
90 
92  moveit_setup_assistant::MoveItConfigDataPtr config_data_;
93 };
94 
95 } // namespace moveit_setup_assistant
96 
97 #endif
SimulationWidget(QWidget *parent, moveit_setup_assistant::MoveItConfigDataPtr config_data)
moveit_setup_assistant::MoveItConfigDataPtr config_data_
Contains all the configuration data for the setup assistant.
void generateURDFClick()
Generate URDF button clicked.


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