empty_service_call_interface.h
Go to the documentation of this file.
1 #ifndef EMPTY_SERCICE_CALL_INTERFACE_H
2 #define EMPTY_SERCICE_CALL_INTERFACE_H
3 
4 #ifndef Q_MOC_RUN
5 #include <ros/ros.h>
6 #include <rviz/panel.h>
7 #include <std_srvs/Empty.h>
8 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
9 # include <QtWidgets>
10 #else
11 # include <QtGui>
12 #endif
13 #endif
14 
15 namespace jsk_rviz_plugins
16 {
18  {
19  std::string icon_file_path;
20  std::string service_name;
21  std::string text;
22  };
23 
25  {
26  Q_OBJECT
27  public:
28  EmptyServiceCallInterfaceAction( QWidget* parent = 0 );
29 
30  virtual void load( const rviz::Config& config );
31  virtual void save( rviz::Config config ) const;
32 
33  protected Q_SLOTS:
34  void callRequestEmptyCommand(int button_id);
35  void parseROSParameters();
36  protected:
38  std::vector<ServiceCallButtonInfo> service_call_button_infos_;
39  QVBoxLayout* layout;
40  QHBoxLayout* h_layout;
41  QSignalMapper* signal_mapper;
42  };
43 }
44 
45 #endif
panel.h
rviz::Panel
ros.h
jsk_rviz_plugins::ServiceCallButtonInfo::service_name
std::string service_name
Definition: empty_service_call_interface.h:20
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::nh_
ros::NodeHandle nh_
Definition: empty_service_call_interface.h:37
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::signal_mapper
QSignalMapper * signal_mapper
Definition: empty_service_call_interface.h:41
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::save
virtual void save(rviz::Config config) const
Definition: empty_service_call_interface.cpp:72
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::service_call_button_infos_
std::vector< ServiceCallButtonInfo > service_call_button_infos_
Definition: empty_service_call_interface.h:38
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::EmptyServiceCallInterfaceAction
EmptyServiceCallInterfaceAction(QWidget *parent=0)
Definition: empty_service_call_interface.cpp:11
jsk_rviz_plugins::ServiceCallButtonInfo::icon_file_path
std::string icon_file_path
Definition: empty_service_call_interface.h:19
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::h_layout
QHBoxLayout * h_layout
Definition: empty_service_call_interface.h:40
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::load
virtual void load(const rviz::Config &config)
Definition: empty_service_call_interface.cpp:77
jsk_rviz_plugins::ServiceCallButtonInfo::text
std::string text
Definition: empty_service_call_interface.h:21
jsk_rviz_plugins::ServiceCallButtonInfo
Definition: empty_service_call_interface.h:17
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::parseROSParameters
void parseROSParameters()
Definition: empty_service_call_interface.cpp:38
jsk_rviz_plugins::EmptyServiceCallInterfaceAction
Definition: empty_service_call_interface.h:24
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::callRequestEmptyCommand
void callRequestEmptyCommand(int button_id)
Definition: empty_service_call_interface.cpp:62
jsk_rviz_plugins::EmptyServiceCallInterfaceAction::layout
QVBoxLayout * layout
Definition: empty_service_call_interface.h:39
config
config
jsk_rviz_plugins
Definition: __init__.py:1
rviz::Config
ros::NodeHandle


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Mon Jan 22 2024 03:47:13