Main Page
Namespaces
Classes
Files
File List
File Members
src
yes_no_button_interface.h
Go to the documentation of this file.
1
#ifndef YES_NO_BUTTON_INTERFACE_H
2
#define YES_NO_BUTTON_INTERFACE_H
3
4
#ifndef Q_MOC_RUN
5
#include <
ros/ros.h
>
6
#include <
rviz/panel.h
>
7
#include <boost/thread.hpp>
8
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
9
# include <QtWidgets>
10
#else
11
# include <QtGui>
12
#endif
13
#endif
14
15
#include <jsk_gui_msgs/YesNo.h>
16
17
18
namespace
jsk_rviz_plugins
19
{
20
21
class
YesNoButtonInterface
:
public
rviz::Panel
22
{
23
Q_OBJECT
24
public
:
25
YesNoButtonInterface
(QWidget* parent = 0);
26
27
virtual
void
onInitialize
();
28
virtual
void
load
(
const
rviz::Config
&
config
);
29
virtual
void
save
(
rviz::Config
config)
const
;
30
31
protected
Q_SLOTS:
32
void
respondYes
();
33
void
respondNo
();
34
protected
:
35
virtual
bool
requested
(
36
jsk_gui_msgs::YesNo::Request& req,
37
jsk_gui_msgs::YesNo::Response& res);
38
QHBoxLayout*
layout_
;
39
QPushButton*
yes_button_
;
40
QPushButton*
no_button_
;
41
bool
yes_
;
42
bool
need_user_input_
;
43
boost::mutex
mutex_
;
44
ros::ServiceServer
yes_no_button_service_
;
45
};
46
47
}
// namespace jsk_rviz_plugins
48
49
50
#endif // YES_NO_BUTTON_INTERFACE_H
jsk_rviz_plugins::YesNoButtonInterface::yes_no_button_service_
ros::ServiceServer yes_no_button_service_
Definition:
yes_no_button_interface.h:44
jsk_rviz_plugins::YesNoButtonInterface::respondYes
void respondYes()
Definition:
yes_no_button_interface.cpp:61
jsk_rviz_plugins::YesNoButtonInterface::respondNo
void respondNo()
Definition:
yes_no_button_interface.cpp:68
panel.h
jsk_rviz_plugins::YesNoButtonInterface::onInitialize
virtual void onInitialize()
Definition:
yes_no_button_interface.cpp:34
jsk_rviz_plugins::YesNoButtonInterface
Definition:
yes_no_button_interface.h:21
jsk_rviz_plugins
Definition:
__init__.py:1
config
config
jsk_rviz_plugins::YesNoButtonInterface::load
virtual void load(const rviz::Config &config)
Definition:
yes_no_button_interface.cpp:80
jsk_rviz_plugins::YesNoButtonInterface::save
virtual void save(rviz::Config config) const
Definition:
yes_no_button_interface.cpp:75
rviz::Config
jsk_rviz_plugins::YesNoButtonInterface::requested
virtual bool requested(jsk_gui_msgs::YesNo::Request &req, jsk_gui_msgs::YesNo::Response &res)
Definition:
yes_no_button_interface.cpp:45
jsk_rviz_plugins::YesNoButtonInterface::no_button_
QPushButton * no_button_
Definition:
yes_no_button_interface.h:40
jsk_rviz_plugins::YesNoButtonInterface::YesNoButtonInterface
YesNoButtonInterface(QWidget *parent=0)
Definition:
yes_no_button_interface.cpp:15
ros::ServiceServer
jsk_rviz_plugins::YesNoButtonInterface::layout_
QHBoxLayout * layout_
Definition:
yes_no_button_interface.h:38
rviz::Panel
ros.h
jsk_rviz_plugins::YesNoButtonInterface::yes_
bool yes_
Definition:
yes_no_button_interface.h:41
jsk_rviz_plugins::YesNoButtonInterface::need_user_input_
bool need_user_input_
Definition:
yes_no_button_interface.h:42
jsk_rviz_plugins::YesNoButtonInterface::yes_button_
QPushButton * yes_button_
Definition:
yes_no_button_interface.h:39
jsk_rviz_plugins::YesNoButtonInterface::mutex_
boost::mutex mutex_
Definition:
yes_no_button_interface.h:43
jsk_rviz_plugins
Author(s): Kei Okada
, Yohei Kakiuchi
, Shohei Fujii
, Ryohei Ueda
autogenerated on Sat Mar 20 2021 03:03:18