setup_assistant_widget.h
Go to the documentation of this file.
1 /*********************************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2012, Willow Garage, Inc.
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  * * Neither the name of Willow Garage nor the names of its
18  * contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  *********************************************************************/
34 
35 /* Author: Dave Coleman */
36 
37 #pragma once
38 
39 // Qt
40 class QSplitter;
41 
42 // Setup Assistant
43 #include "navigation_widget.h"
44 #include "start_screen_widget.h"
46 #include "planning_groups_widget.h"
47 #include "robot_poses_widget.h"
48 #include "end_effectors_widget.h"
49 #include "virtual_joints_widget.h"
50 #include "passive_joints_widget.h"
52 #include "simulation_widget.h"
54 #include "perception_widget.h"
55 #include "controllers_widget.h"
56 
57 #ifndef Q_MOC_RUN
59 
60 // Other
61 #include <boost/program_options/variables_map.hpp> // for parsing input arguments
62 #include <boost/thread/mutex.hpp>
63 #endif
64 
65 // Forward declarations
66 namespace rviz
67 {
68 class GridDisplay;
69 class RenderPanel;
70 class VisualizationManager;
71 } // namespace rviz
72 
73 namespace moveit_rviz_plugin
74 {
75 class RobotStateDisplay;
76 }
77 
78 namespace moveit_setup_assistant
79 {
80 class SetupAssistantWidget : public QWidget
81 {
82  Q_OBJECT
83 
84 public:
85  // ******************************************************************************************
86  // Public Functions
87  // ******************************************************************************************
88 
94  SetupAssistantWidget(QWidget* parent, const boost::program_options::variables_map& args);
95 
100  ~SetupAssistantWidget() override;
101 
107  void moveToScreen(const int index);
108 
113  void closeEvent(QCloseEvent* event) override;
114 
122  virtual bool notify(QObject* rec, QEvent* ev);
123 
128  // void showRviz( bool show );
129 
130  // ******************************************************************************************
131  // Qt Components
132  // ******************************************************************************************
133 
134 private Q_SLOTS:
135  // ******************************************************************************************
136  // Slot Event Functions
137  // ******************************************************************************************
138 
143  void navigationClicked(const QModelIndex& index);
144 
148  void updateTimer();
149 
154 
159  void loadRviz();
160 
166  void setModalMode(bool isModal);
167 
173  void highlightLink(const std::string& link_name, const QColor& color);
174 
178  void highlightGroup(const std::string& group_name);
179 
183  void unhighlightAll();
184 
185  // received when virtual joints that change the reference frame are added
187 
188 private:
189  // ******************************************************************************************
190  // Variables
191  // ******************************************************************************************
192  QList<QString> nav_name_list_;
194 
195  QWidget* rviz_container_;
196  QSplitter* splitter_;
197  QStackedWidget* main_content_;
199  boost::mutex change_screen_lock_;
200 
201  // Rviz Panel
205 
206  // Screen Widgets
219 
221  MoveItConfigDataPtr config_data_;
222 
223  // ******************************************************************************************
224  // Private Functions
225  // ******************************************************************************************
226 };
227 } // namespace moveit_setup_assistant
moveit_setup_assistant::VirtualJointsWidget
Definition: virtual_joints_widget.h:56
default_collisions_widget.h
moveit_setup_assistant::SetupAssistantWidget::rviz_manager_
rviz::VisualizationManager * rviz_manager_
Definition: setup_assistant_widget.h:203
moveit_setup_assistant::SetupAssistantWidget::SetupAssistantWidget
SetupAssistantWidget(QWidget *parent, const boost::program_options::variables_map &args)
Definition: setup_assistant_widget.cpp:99
moveit_setup_assistant::PassiveJointsWidget
Definition: passive_joints_widget.h:81
moveit_setup_assistant::SetupAssistantWidget::highlightGroup
void highlightGroup(const std::string &group_name)
Definition: setup_assistant_widget.cpp:473
start_screen_widget.h
moveit_setup_assistant::SetupAssistantWidget::start_screen_widget_
StartScreenWidget * start_screen_widget_
Definition: setup_assistant_widget.h:207
moveit_setup_assistant::EndEffectorsWidget
Definition: end_effectors_widget.h:55
moveit_setup_assistant::StartScreenWidget
Start screen user interface for MoveIt Configuration Assistant.
Definition: start_screen_widget.h:60
end_effectors_widget.h
moveit_setup_assistant::SetupAssistantWidget::setModalMode
void setModalMode(bool isModal)
Definition: setup_assistant_widget.cpp:553
moveit_setup_assistant::SetupAssistantWidget::change_screen_lock_
boost::mutex change_screen_lock_
Definition: setup_assistant_widget.h:199
rviz::VisualizationManager
moveit_setup_assistant::SetupAssistantWidget::loadRviz
void loadRviz()
Definition: setup_assistant_widget.cpp:405
moveit_setup_assistant::SetupAssistantWidget::main_content_
QStackedWidget * main_content_
Definition: setup_assistant_widget.h:197
moveit_setup_assistant::SetupAssistantWidget::progressPastStartScreen
void progressPastStartScreen()
Definition: setup_assistant_widget.cpp:267
moveit_setup_assistant::SetupAssistantWidget::navigationClicked
void navigationClicked(const QModelIndex &index)
Definition: setup_assistant_widget.cpp:224
moveit_setup_assistant::SimulationWidget
Definition: simulation_widget.h:57
navigation_widget.h
moveit_setup_assistant::SetupAssistantWidget::virtualJointReferenceFrameChanged
void virtualJointReferenceFrameChanged()
Definition: setup_assistant_widget.cpp:211
moveit_setup_assistant::SetupAssistantWidget::author_information_widget_
AuthorInformationWidget * author_information_widget_
Definition: setup_assistant_widget.h:214
moveit_config_data.h
moveit_setup_assistant::PlanningGroupsWidget
Definition: planning_groups_widget.h:76
moveit_setup_assistant::AuthorInformationWidget
Definition: author_information_widget.h:49
moveit_setup_assistant::SetupAssistantWidget::config_data_
MoveItConfigDataPtr config_data_
Contains all the configuration data for the setup assistant.
Definition: setup_assistant_widget.h:221
moveit_setup_assistant::SetupAssistantWidget::moveToScreen
void moveToScreen(const int index)
Definition: setup_assistant_widget.cpp:233
moveit_setup_assistant::ControllersWidget
Definition: controllers_widget.h:57
moveit_setup_assistant::SetupAssistantWidget::unhighlightAll
void unhighlightAll()
Definition: setup_assistant_widget.cpp:492
perception_widget.h
moveit_setup_assistant::SetupAssistantWidget::perception_widget_
PerceptionWidget * perception_widget_
Definition: setup_assistant_widget.h:217
moveit_setup_assistant::SetupAssistantWidget::highlightLink
void highlightLink(const std::string &link_name, const QColor &color)
Definition: setup_assistant_widget.cpp:463
moveit_setup_assistant::SetupAssistantWidget::~SetupAssistantWidget
~SetupAssistantWidget() override
Definition: setup_assistant_widget.cpp:201
moveit_setup_assistant::SetupAssistantWidget::current_index_
int current_index_
Definition: setup_assistant_widget.h:198
moveit_setup_assistant::SetupAssistantWidget::rviz_render_panel_
rviz::RenderPanel * rviz_render_panel_
Definition: setup_assistant_widget.h:202
rviz
moveit_setup_assistant::SetupAssistantWidget
Definition: setup_assistant_widget.h:80
moveit_setup_assistant::SetupAssistantWidget::simulation_widget_
SimulationWidget * simulation_widget_
Definition: setup_assistant_widget.h:216
moveit_setup_assistant::SetupAssistantWidget::splitter_
QSplitter * splitter_
Definition: setup_assistant_widget.h:196
moveit_setup_assistant::RobotPosesWidget
Definition: robot_poses_widget.h:59
simulation_widget.h
moveit_setup_assistant::SetupAssistantWidget::rviz_container_
QWidget * rviz_container_
Definition: setup_assistant_widget.h:195
moveit_setup_assistant::DefaultCollisionsWidget
User interface for editing the default collision matrix list in an SRDF.
Definition: default_collisions_widget.h:74
robot_poses_widget.h
moveit_setup_assistant::SetupAssistantWidget::default_collisions_widget_
DefaultCollisionsWidget * default_collisions_widget_
Definition: setup_assistant_widget.h:208
moveit_setup_assistant::SetupAssistantWidget::robot_state_display_
moveit_rviz_plugin::RobotStateDisplay * robot_state_display_
Definition: setup_assistant_widget.h:204
moveit_setup_assistant
Definition: compute_default_collisions.h:46
moveit_setup_assistant::SetupAssistantWidget::notify
virtual bool notify(QObject *rec, QEvent *ev)
Definition: setup_assistant_widget.cpp:543
moveit_setup_assistant::NavigationWidget
Definition: navigation_widget.h:52
moveit_rviz_plugin
moveit_setup_assistant::SetupAssistantWidget::closeEvent
void closeEvent(QCloseEvent *event) override
Definition: setup_assistant_widget.cpp:522
moveit_setup_assistant::ConfigurationFilesWidget
Definition: configuration_files_widget.h:75
moveit_setup_assistant::SetupAssistantWidget::passive_joints_widget_
PassiveJointsWidget * passive_joints_widget_
Definition: setup_assistant_widget.h:213
moveit_setup_assistant::SetupAssistantWidget::robot_poses_widget_
RobotPosesWidget * robot_poses_widget_
Definition: setup_assistant_widget.h:210
moveit_setup_assistant::SetupAssistantWidget::planning_groups_widget
PlanningGroupsWidget * planning_groups_widget
Definition: setup_assistant_widget.h:209
moveit_setup_assistant::SetupAssistantWidget::virtual_joints_widget_
VirtualJointsWidget * virtual_joints_widget_
Definition: setup_assistant_widget.h:212
moveit_setup_assistant::SetupAssistantWidget::end_effectors_widget_
EndEffectorsWidget * end_effectors_widget_
Definition: setup_assistant_widget.h:211
index
unsigned int index
passive_joints_widget.h
moveit_setup_assistant::SetupAssistantWidget::configuration_files_widget_
ConfigurationFilesWidget * configuration_files_widget_
Definition: setup_assistant_widget.h:215
moveit_setup_assistant::SetupAssistantWidget::nav_name_list_
QList< QString > nav_name_list_
Definition: setup_assistant_widget.h:192
moveit_setup_assistant::SetupAssistantWidget::navs_view_
NavigationWidget * navs_view_
Definition: setup_assistant_widget.h:193
moveit_setup_assistant::SetupAssistantWidget::updateTimer
void updateTimer()
Definition: setup_assistant_widget.cpp:397
author_information_widget.h
args
moveit_rviz_plugin::RobotStateDisplay
rviz::RenderPanel
planning_groups_widget.h
configuration_files_widget.h
moveit_setup_assistant::SetupAssistantWidget::controllers_widget_
ControllersWidget * controllers_widget_
Definition: setup_assistant_widget.h:218
moveit_setup_assistant::PerceptionWidget
Definition: perception_widget.h:55
virtual_joints_widget.h
controllers_widget.h


moveit_setup_assistant
Author(s): Dave Coleman
autogenerated on Sat May 3 2025 02:28:04