Main Page
Namespaces
Namespace List
Namespace Members
All
b
c
d
f
g
h
i
l
m
n
p
s
w
Functions
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
w
Typedefs
Enumerations
Enumerator
Files
File List
File Members
All
Functions
Macros
visualization_tools
include
moveit
visualization_tools
task_solution_panel.h
Go to the documentation of this file.
1
/*********************************************************************
2
* Software License Agreement (BSD License)
3
*
4
* Copyright (c) 2017, Yannick Jonetzko
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: Yannick Jonetzko */
36
37
#pragma once
38
39
#ifndef Q_MOC_RUN
40
#include <
ros/ros.h
>
41
#endif
42
43
#include <
rviz/panel.h
>
44
45
#include <QSlider>
46
#include <QLabel>
47
#include <QPushButton>
48
49
namespace
moveit_rviz_plugin
{
50
class
TaskSolutionPanel :
public
rviz::Panel
51
{
52
Q_OBJECT
53
54
public
:
55
TaskSolutionPanel
(QWidget* parent =
nullptr
);
56
57
~TaskSolutionPanel
()
override
;
58
59
void
onInitialize
()
override
;
60
void
onEnable
();
61
void
onDisable
();
62
void
update
(
int
way_point_count);
63
64
// Switches between pause and play mode
65
void
pauseButton
(
bool
check);
66
67
void
setSliderPosition
(
int
position);
68
69
int
getSliderPosition
()
const
{
return
slider_
->sliderPosition(); }
70
71
bool
isPaused
()
const
{
return
paused_
; }
72
73
private
Q_SLOTS:
74
void
sliderValueChanged
(
int
value);
75
void
buttonClicked
();
76
77
protected
:
78
QSlider*
slider_
;
79
QLabel*
maximum_label_
;
80
QLabel*
minimum_label_
;
81
QPushButton*
button_
;
82
83
bool
paused_
;
84
bool
empty_
;
85
};
86
87
}
// namespace moveit_rviz_plugin
panel.h
moveit_rviz_plugin::TaskSolutionPanel::empty_
bool empty_
Definition:
task_solution_panel.h:148
rviz::Panel
moveit_rviz_plugin::TaskSolutionPanel::isPaused
bool isPaused() const
Definition:
task_solution_panel.h:135
ros.h
moveit_rviz_plugin::TaskSolutionPanel::paused_
bool paused_
Definition:
task_solution_panel.h:147
moveit_rviz_plugin::TaskSolutionPanel::onInitialize
void onInitialize() override
Definition:
task_solution_panel.cpp:79
moveit_rviz_plugin::TaskSolutionPanel::button_
QPushButton * button_
Definition:
task_solution_panel.h:145
moveit_rviz_plugin::TaskSolutionPanel::onDisable
void onDisable()
Definition:
task_solution_panel.cpp:114
moveit_rviz_plugin::TaskSolutionPanel::onEnable
void onEnable()
Definition:
task_solution_panel.cpp:110
moveit_rviz_plugin::TaskSolutionPanel::slider_
QSlider * slider_
Definition:
task_solution_panel.h:142
moveit_rviz_plugin::TaskSolutionPanel::getSliderPosition
int getSliderPosition() const
Definition:
task_solution_panel.h:133
moveit_rviz_plugin::TaskSolutionPanel::TaskSolutionPanel
TaskSolutionPanel(QWidget *parent=nullptr)
Definition:
task_solution_panel.cpp:73
moveit_rviz_plugin::TaskSolutionPanel::minimum_label_
QLabel * minimum_label_
Definition:
task_solution_panel.h:144
moveit_rviz_plugin::TaskSolutionPanel::sliderValueChanged
void sliderValueChanged(int value)
Definition:
task_solution_panel.cpp:148
moveit_rviz_plugin::TaskSolutionPanel::maximum_label_
QLabel * maximum_label_
Definition:
task_solution_panel.h:143
moveit_rviz_plugin
moveit_rviz_plugin::TaskSolutionPanel::pauseButton
void pauseButton(bool check)
Definition:
task_solution_panel.cpp:132
moveit_rviz_plugin::TaskSolutionPanel::buttonClicked
void buttonClicked()
Definition:
task_solution_panel.cpp:159
moveit_rviz_plugin::TaskSolutionPanel::update
void update(int way_point_count)
Definition:
task_solution_panel.cpp:119
moveit_rviz_plugin::TaskSolutionPanel::~TaskSolutionPanel
~TaskSolutionPanel() override
Definition:
task_solution_panel.cpp:77
moveit_rviz_plugin::TaskSolutionPanel::setSliderPosition
void setSliderPosition(int position)
Definition:
task_solution_panel.cpp:144
visualization
Author(s): Robert Haschke
autogenerated on Thu Feb 27 2025 03:39:51