task_panel_p.h
Go to the documentation of this file.
1 /*********************************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2017, Bielefeld University
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 Bielefeld University 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: Robert Haschke
36  Desc: Monitor manipulation tasks and visualize their solutions
37 */
38 
39 #pragma once
40 
41 #include "task_panel.h"
42 #include "ui_task_panel.h"
43 #include "ui_task_view.h"
44 #include "ui_global_settings.h"
45 #include <moveit_task_constructor_msgs/ExecuteTaskSolutionAction.h>
47 
48 #include <rviz/panel.h>
50 #include <QPointer>
51 
52 namespace moveit_rviz_plugin {
53 
54 class BaseTaskModel;
55 class TaskListModel;
56 class TaskDisplay;
57 
58 class TaskPanelPrivate : public Ui_TaskPanel
59 {
60 public:
61  TaskPanelPrivate(TaskPanel* q_ptr);
62 
63  TaskPanel* q_ptr;
64  QButtonGroup* tool_buttons_group;
66 
68 };
69 
70 class TaskViewPrivate : public Ui_TaskView
71 {
72 public:
73  TaskViewPrivate(TaskView* q_ptr);
74 
76  inline std::pair<TaskListModel*, TaskDisplay*> getTaskListModel(const QModelIndex& index) const;
77 
79  inline std::pair<BaseTaskModel*, QModelIndex> getTaskModel(const QModelIndex& index) const;
80 
82  void configureTaskListModel(TaskListModel* model);
86  void configureInsertedModels(const QModelIndex& parent, int first, int last);
87 
89  void lock(TaskDisplay* display);
90 
91  TaskView* q_ptr;
92  QPointer<TaskDisplay> locked_display_;
94 };
95 
96 class GlobalSettingsWidgetPrivate : public Ui_GlobalSettingsWidget
97 {
98 public:
100 
103 };
104 } // namespace moveit_rviz_plugin
moveit_rviz_plugin::GlobalSettingsWidgetPrivate::properties
rviz::PropertyTreeModel * properties
Definition: task_panel_p.h:134
panel.h
moveit_rviz_plugin::TaskViewPrivate::q_ptr
TaskView * q_ptr
Definition: task_panel_p.h:123
moveit_rviz_plugin::TaskPanelPrivate::window_manager_
rviz::WindowManagerInterface * window_manager_
Definition: task_panel_p.h:99
moveit_rviz_plugin::TaskViewPrivate::locked_display_
QPointer< TaskDisplay > locked_display_
Definition: task_panel_p.h:124
moveit_rviz_plugin::GlobalSettingsWidget
Definition: task_panel.h:166
rviz::PropertyTreeModel
moveit_rviz_plugin::TaskPanelPrivate::TaskPanelPrivate
TaskPanelPrivate(TaskPanel *q_ptr)
Definition: task_panel.cpp:207
moveit_rviz_plugin::TaskViewPrivate::lock
void lock(TaskDisplay *display)
unlock locked_display_ if given display is different
Definition: task_panel.cpp:324
moveit_rviz_plugin::GlobalSettingsWidgetPrivate::GlobalSettingsWidgetPrivate
GlobalSettingsWidgetPrivate(GlobalSettingsWidget *q_ptr, rviz::Property *root)
Definition: task_panel.cpp:590
moveit_rviz_plugin::TaskViewPrivate::exec_action_client_
actionlib::SimpleActionClient< moveit_task_constructor_msgs::ExecuteTaskSolutionAction > exec_action_client_
Definition: task_panel_p.h:125
moveit_rviz_plugin::TaskViewPrivate::getTaskModel
std::pair< BaseTaskModel *, QModelIndex > getTaskModel(const QModelIndex &index) const
retrieve TaskModel corresponding to given index
Definition: task_panel.cpp:285
moveit_rviz_plugin::TaskViewPrivate::configureExistingModels
void configureExistingModels()
configure all TaskListModels that were already created when TaskView gets instantiated
Definition: task_panel.cpp:295
rviz::Property
actionlib::SimpleActionClient< moveit_task_constructor_msgs::ExecuteTaskSolutionAction >
moveit_rviz_plugin::TaskPanelPrivate::tool_buttons_group
QButtonGroup * tool_buttons_group
Definition: task_panel_p.h:96
moveit_rviz_plugin::TaskViewPrivate::configureTaskListModel
void configureTaskListModel(TaskListModel *model)
configure a (new) TaskListModel
Definition: task_panel.cpp:290
moveit_rviz_plugin::TaskPanelPrivate::q_ptr
TaskPanel * q_ptr
Definition: task_panel_p.h:95
simple_action_client.h
property_tree_model.h
moveit_rviz_plugin::TaskViewPrivate::configureInsertedModels
void configureInsertedModels(const QModelIndex &parent, int first, int last)
configure newly inserted models
Definition: task_panel.cpp:301
task_panel.h
moveit_rviz_plugin
moveit_rviz_plugin::TaskView
Definition: task_panel.h:113
moveit_rviz_plugin::GlobalSettingsWidgetPrivate::q_ptr
GlobalSettingsWidget * q_ptr
Definition: task_panel_p.h:133
moveit_rviz_plugin::GlobalSettingsWidgetPrivate
Definition: task_panel_p.h:128
moveit_rviz_plugin::TaskViewPrivate::getTaskListModel
std::pair< TaskListModel *, TaskDisplay * > getTaskListModel(const QModelIndex &index) const
retrieve TaskListModel corresponding to given index
Definition: task_panel.cpp:280
rviz::WindowManagerInterface
moveit_rviz_plugin::TaskPanelPrivate::property_root
rviz::Property * property_root
Definition: task_panel_p.h:97
moveit_rviz_plugin::TaskViewPrivate::TaskViewPrivate
TaskViewPrivate(TaskView *q_ptr)
Definition: task_panel.cpp:256


visualization
Author(s): Robert Haschke
autogenerated on Thu Feb 27 2025 03:39:51