You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Air_Ground_CEC/src/include/qnode.hpp

46 lines
823 B

#ifndef Air_Ground_CEC_QNODE_HPP_
#define Air_Ground_CEC_QNODE_HPP_
#ifndef Q_MOC_RUN
#include <ros/ros.h>
#endif
#include <iostream>
#include <QImage>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <std_msgs/String.h>
#include <ros/network.h>
#include <cv_bridge/cv_bridge.h>
#include <image_transport/image_transport.h>
#include <geometry_msgs/Twist.h>
#include <QThread>
using namespace std;
class QNode : public QThread{
Q_OBJECT
public:
QNode(int argc, char **argv);
virtual ~QNode();
bool init();
void SubAndPubTopic();
void KeyboardMove(char key, float speed_linear, float speed_trun);
private:
int init_argc;
char **init_argv;
ros::Subscriber cmdVel_sub;
ros::Publisher cmd_pub;
};
#endif