diff --git a/doc/空地协同无人侦查系统-软件设计规格说明书.doc b/doc/空地协同无人侦查系统-软件设计规格说明书.doc deleted file mode 100644 index e6854b4..0000000 Binary files a/doc/空地协同无人侦查系统-软件设计规格说明书.doc and /dev/null differ diff --git a/doc/空地协同无人侦查系统-软件需求构思及描述模板.docx b/doc/空地协同无人侦查系统-软件需求构思及描述模板.docx deleted file mode 100755 index e9dff3b..0000000 Binary files a/doc/空地协同无人侦查系统-软件需求构思及描述模板.docx and /dev/null differ diff --git a/doc/空地协同无人侦查系统-软件需求规格说明书.docx b/doc/空地协同无人侦查系统-软件需求规格说明书.docx deleted file mode 100644 index 8083faa..0000000 Binary files a/doc/空地协同无人侦查系统-软件需求规格说明书.docx and /dev/null differ diff --git a/src/include/qnode.hpp b/src/include/qnode.hpp deleted file mode 100644 index 8585220..0000000 --- a/src/include/qnode.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef Air_Ground_CEC_QNODE_HPP_ -#define Air_Ground_CEC_QNODE_HPP_ - -#ifndef Q_MOC_RUN -#include -#endif -#include - -#include -#include -#include - -#include -#include -#include -#include -#include -#include - -class QNode : public QThread{ - Q_OBJECT - -public: - QNode(int argc, char **argv); - virtual ~QNode(); - bool init(); - void SubAndPubTopic(); - void KeyboardMove(char key); - //void myCallback_img(const sensor_msgs::ImageConstPtr& msg);//camera callback function - //QImage image; - - -//Q_SIGNALS: - //void loggingCamera();//发出设置相机图片信号 - -private: - int init_argc; - char **init_argv; - - ros::Subscriber cmdVel_sub; - ros::Publisher cmd_pub; - //ros::Publisher chatter_publisher; - //QStringList logging_model; - //image_transport::Subscriber image_sub; - -//cv::Mat img; -}; - -#endif - diff --git a/src/main/main.cpp b/src/main/main.cpp deleted file mode 100644 index a983b77..0000000 --- a/src/main/main.cpp +++ /dev/null @@ -1,24 +0,0 @@ - -#include "../ui/mainwindow.hpp" - -#include - -#include - - - -int main(int argc, char** argv) -{ - - - QApplication app(argc, argv); - MainWindow CEC(0,0,0); - - CEC.show(); - return app.exec(); - - return(0); -} - - - diff --git a/src/main/qnode.cpp b/src/main/qnode.cpp deleted file mode 100644 index 35c7ed5..0000000 --- a/src/main/qnode.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include "../include/qnode.hpp" - -#include "sensor_msgs/image_encodings.h" - -QNode::QNode(int argc, char **argv) : init_argc(argc), init_argv(argv){ - - - -} - - -QNode::~QNode() { - if (ros::isStarted()) { - ros::shutdown(); // explicitly needed since we use ros::start(); - ros::waitForShutdown(); - } - wait(); -} - -bool QNode::init() { - - ros::init(init_argc,init_argv,"Air_Ground_CEC", - ros::init_options::AnonymousName | ros::init_options::NoSigintHandler); - SubAndPubTopic(); - return true; -} - -void QNode::SubAndPubTopic(){ - ros::NodeHandle n; - cmd_pub = n.advertise("cmd_vel", 1); -} - -void QNode::KeyboardMove(char key){ - std::map> moveBindings { - // {'key', {speed, turn}} - {'w', {1, 0}}, {'s', {-1, 0}}, {'a', {0, 1}}, {'d', {0, -1}}, - {'W', {1, 0}}, {'S', {-1, 0}}, {'A', {0, 1}}, {'D', {0, -1}} - }; - - float x = moveBindings[key][0]; - float z = moveBindings[key][1]; - - geometry_msgs::Twist twist; - twist.linear.x = x; - twist.angular.z = z; - cmd_pub.publish(twist); - ros::spinOnce(); -} - -/* -void QNode::myCallback_img(const sensor_msgs::ImageConstPtr &msg) -{ - try - { - cv_bridge::CvImageConstPtr cv_ptr = cv_bridge::toCvShare(msg, sensor_msgs::image_encodings::RGB8); - img = cv_ptr->image; - image = QImage(img.data,img.cols,img.rows,img.step[0],QImage::Format_RGB888);//change to QImage format - ROS_INFO("I'm setting picture in mul_t callback function!"); - Q_EMIT loggingCamera(); - } -catch (cv_bridge::Exception& e) - { - ROS_ERROR("Could not convert from '%s' to 'bgr8'.", msg->encoding.c_str()); - } -} -*/ diff --git a/src/ui/mainwindow.ui b/src/ui/mainwindow.ui deleted file mode 100644 index 143a854..0000000 --- a/src/ui/mainwindow.ui +++ /dev/null @@ -1,275 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 1600 - 900 - - - - MainWindow - - - - - - 1160 - 240 - 314 - 164 - - - - - - - - 100 - 50 - - - - - 100 - 50 - - - - - 15 - - - - - - - - - - - - 100 - 50 - - - - - 100 - 50 - - - - - 15 - - - - - - - - - - - - 100 - 50 - - - - - 100 - 50 - - - - - 15 - - - - - - - - - - - - 100 - 50 - - - - - 100 - 50 - - - - - 15 - - - - - - - - - - - - 100 - 50 - - - - - 100 - 50 - - - - - 15 - - - - 加速 - - - - - - - - - 610 - 60 - 321 - 211 - - - - TextLabel - - - - - - 60 - 30 - 502 - 654 - - - - - - - - 500 - 300 - - - - - 500 - 300 - - - - false - - - - - - UAV_VEDIO - - - false - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - 500 - 300 - - - - - 500 - 300 - - - - PATH - - - - - - - - - 720 - 500 - 431 - 301 - - - - - - - - - - 1250 - 570 - 89 - 25 - - - - PLAY - - - - - - - 0 - 0 - 1600 - 27 - - - - - - - -