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 {
9 class QNodeDialog;
10 }
11 
12 class QNodeDialog : public QDialog
13 {
14  Q_OBJECT
15 
16 public:
17  ~QNodeDialog();
18  explicit QNodeDialog(QWidget* parent = nullptr);
19 
20  static bool Connect(const std::string& ros_master_uri, 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 
34 {
35 private:
37  RosManager() : _node(nullptr)
38  {
39  }
40  void stopROS();
41 
42 public:
43  static RosManager& get();
44  ~RosManager();
45  static ros::NodeHandlePtr getNode();
46 };
47 
48 #endif // QNODEDIALOG_H
#define nullptr
Ui::QNodeDialog * ui
Definition: qnodedialog.h:30
ros::NodeHandlePtr _node
Definition: qnodedialog.h:36


plotjuggler_ros
Author(s): Davide Faconti
autogenerated on Fri Jun 23 2023 02:28:03