qnodedialog.h
Go to the documentation of this file.
1 #ifndef QNODEDIALOG_H
2 #define QNODEDIALOG_H
3 
4 #include <QDialog>
5 #include <ros/ros.h>
6 
7 namespace Ui {
8 class QNodeDialog;
9 }
10 
11 class QNodeDialog : public QDialog
12 {
13  Q_OBJECT
14 
15 public:
16  ~QNodeDialog();
17  explicit QNodeDialog(QWidget *parent = 0);
18 
19  static bool Connect(const std::string &ros_master_uri,
20  const std::string &hostname = "localhost");
21 
22 private slots:
23  void on_checkBoxUseEnvironment_toggled(bool checked);
24 
25  void on_pushButtonConnect_pressed();
26 
27  void on_pushButtonCancel_pressed();
28 
29 private:
30  Ui::QNodeDialog *ui;
31 
32 };
33 
34 
36 {
37 private:
39  RosManager(): _node(nullptr) {}
40  void stopROS();
41 
42 public:
43  static RosManager& get();
44  ~RosManager();
45  static ros::NodeHandlePtr getNode();
46 };
47 
48 
49 
50 #endif // QNODEDIALOG_H
Ui::QNodeDialog * ui
Definition: qnodedialog.h:30
ros::NodeHandlePtr _node
Definition: qnodedialog.h:38


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17