qnode.h
Go to the documentation of this file.
1 #ifndef QNODE_H
2 #define QNODE_H
3 
4 #include <QThread>
5 #include <ros/ros.h>
6 #include <memory>
7 #include <igvc_msgs/velocity_pair.h>
8 
9 class QNode : public QThread
10 {
11  Q_OBJECT
12 public:
13  explicit QNode(int argc, char** argv);
14 
15  virtual ~QNode();
16 
17  bool init();
18 
19  void run();
20 
21  void encoderCallback(const igvc_msgs::velocity_pair& msg);
22 
23 signals:
24  void rosShutdown();
25 
26  void newVelocityData(float velocity);
27 
28  void newNodesList(QStringList nodes);
29 
30 private:
31  std::unique_ptr<ros::NodeHandle> nh;
32 
33  ros::Subscriber encoder_subscriber;
34 
35  int argc;
36  char** argv;
37 
38 };
39 
40 #endif // QNODE_H
bool init()
Definition: qnode.cpp:23
void newNodesList(QStringList nodes)
void run()
Definition: qnode.cpp:39
int argc
Definition: qnode.h:35
ros::Subscriber encoder_subscriber
Definition: qnode.h:33
QNode(int argc, char **argv)
Definition: qnode.cpp:7
void rosShutdown()
virtual ~QNode()
Definition: qnode.cpp:13
std::unique_ptr< ros::NodeHandle > nh
Definition: qnode.h:31
char ** argv
Definition: qnode.h:36
Definition: qnode.h:9
void encoderCallback(const igvc_msgs::velocity_pair &msg)
Definition: qnode.cpp:61
void newVelocityData(float velocity)


igvc
Author(s): Matthew Barulic , Al Chaussee
autogenerated on Sun May 10 2015 16:18:45