对头文件添加了注释

dingzijian_develop
Dingzijian 1 year ago
parent 6f92476840
commit 33ef5f9305

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file commondialog.h
* @author
* @brief CommonDialog
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef COMMONDIALOG_H #ifndef COMMONDIALOG_H
#define COMMONDIALOG_H #define COMMONDIALOG_H
@ -16,13 +30,15 @@ public:
explicit CommonDialog(QWidget *parent = 0); explicit CommonDialog(QWidget *parent = 0);
~CommonDialog(); ~CommonDialog();
void setContent(QString); void setContent(QString); //设置窗口显示内容
private: private:
//窗口控件
QDialogButtonBox *buttonBox; QDialogButtonBox *buttonBox;
QLabel *content; QLabel *content;
void confirm(); void confirm(); //点击确定后delete此窗口
}; };
#endif // COMMONDIALOG_H #endif // COMMONDIALOG_H

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file directcontrol.h
* @author
* @brief DirectControl
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef DIRECTCONTROL_H #ifndef DIRECTCONTROL_H
#define DIRECTCONTROL_H #define DIRECTCONTROL_H
@ -20,17 +34,22 @@ public:
explicit DirectControl(QWidget *parent = 0); explicit DirectControl(QWidget *parent = 0);
~DirectControl(); ~DirectControl();
void direct_control_send(); void direct_control_send(); //发送信息到控制节点
private: private:
//窗口控件
double linear, angular; double linear, angular;
QDialogButtonBox *buttonBox; QDialogButtonBox *buttonBox;
QLabel *robortname; QLabel *robortname;
//手动控制节点
DirectControlNode *direct_control_node; DirectControlNode *direct_control_node;
void reject(); void reject();
protected: protected:
//按键按和释放消息处理
void keyPressEvent(QKeyEvent *event); void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event); void keyReleaseEvent(QKeyEvent *event);
}; };

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file messagebox.h
* @author
* @brief MessageBoxMissonWinodw
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef MESSAGEBOX_H #ifndef MESSAGEBOX_H
#define MESSAGEBOX_H #define MESSAGEBOX_H
@ -8,9 +22,6 @@
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QTextEdit> #include <QTextEdit>
namespace Ui {
class MessageBox;
}
class MessageBox : public QDialog class MessageBox : public QDialog
{ {
@ -20,27 +31,29 @@ public:
explicit MessageBox(QWidget *parent); explicit MessageBox(QWidget *parent);
~MessageBox(); ~MessageBox();
QString robortmission;
Q_SIGNALS: Q_SIGNALS:
//发送数据的信号,不需要实体函数,在头文件定义就可以 //信号函数
void sendData(std::string, int, std::string); void sendData(std::string, int, std::string);
private: private:
QString robortmission;
//窗口控件
QLabel *mission_robort; QLabel *mission_robort;
QLabel *people_find; QLabel *people_find;
QTextEdit *mission_page; QTextEdit *mission_page;
QTextEdit *people_page; QTextEdit *people_page;
Ui::MessageBox *ui;
void accept(); void accept();
void reject(); void reject();
protected: protected:
void paintEvent(QPaintEvent *event) override; void paintEvent(QPaintEvent *event) override; //绘制MessageBox的边框
private Q_SLOTS: private Q_SLOTS:
void get_connect_robort(QString);//得到数据的槽函数 //槽函数
void get_connect_robort(QString); //接收机器人是否连接成功的信息
}; };
#endif // MESSAGEBOX_H #endif // MESSAGEBOX_H

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file missionopen.h
* @author
* @brief MissionOpenMissionWindow
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef MISSIONOPEN_H #ifndef MISSIONOPEN_H
#define MISSIONOPEN_H #define MISSIONOPEN_H
@ -10,11 +24,6 @@
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <string> #include <string>
namespace Ui {
class MissionOpen;
}
class MissionOpen : public QDialog class MissionOpen : public QDialog
{ {
Q_OBJECT Q_OBJECT
@ -22,22 +31,28 @@ class MissionOpen : public QDialog
public: public:
explicit MissionOpen(QWidget *parent = 0); explicit MissionOpen(QWidget *parent = 0);
~MissionOpen(); ~MissionOpen();
QString name; //任务名称
Q_SIGNALS: Q_SIGNALS:
void sendData(QString); //信号函数
void sendCloseSignal(); void sendData(QString); //连接missionwindow的getData()槽函数创建missionwindow窗口
void sendCloseSignal(); //连接mainwindow的getCloseSignal槽函数隐藏mainwindow窗口
private: private:
QString name; //任务名称
//窗口控件
QDialogButtonBox *buttonBox; QDialogButtonBox *buttonBox;
QLabel *missionname; QLabel *missionname;
QComboBox *inputtype; QComboBox *inputtype;
Ui::MissionOpen *ui;
//任务子窗口
MissionWindow *missionwindow; MissionWindow *missionwindow;
void accept(); void accept();
void reject(); void reject();
//基本窗口设置
void basicFrameSet(); void basicFrameSet();
}; };

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file missionset.h
* @author
* @brief MissionSet
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef MISSIONSET_H #ifndef MISSIONSET_H
#define MISSIONSET_H #define MISSIONSET_H
@ -7,10 +21,6 @@
#include <QComboBox> #include <QComboBox>
#include <QDialogButtonBox> #include <QDialogButtonBox>
namespace Ui {
class MissionSet;
}
class MissionSet : public QDialog class MissionSet : public QDialog
{ {
Q_OBJECT Q_OBJECT
@ -20,19 +30,18 @@ public:
~MissionSet(); ~MissionSet();
private: private:
QDialogButtonBox *buttonBox;
//窗口控件
QDialogButtonBox *buttonBox;
QLabel *missionname; QLabel *missionname;
QLabel *missiontype; QLabel *missiontype;
QLineEdit *inputname; QLineEdit *inputname;
QComboBox *inputtype; QComboBox *inputtype;
Ui::MissionSet *ui;
void accept(); void accept();
void reject(); void reject();
//基本窗口设置
void basicFrameSet(); void basicFrameSet();
}; };

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file robortset.h
* @author
* @brief RobortSet
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef ROBORTSET_H #ifndef ROBORTSET_H
#define ROBORTSET_H #define ROBORTSET_H
@ -7,10 +21,6 @@
#include <QComboBox> #include <QComboBox>
#include <QDialogButtonBox> #include <QDialogButtonBox>
namespace Ui {
class RobortSet;
}
class RobortSet : public QDialog class RobortSet : public QDialog
{ {
Q_OBJECT Q_OBJECT
@ -19,25 +29,23 @@ public:
explicit RobortSet(QWidget *parent = 0); explicit RobortSet(QWidget *parent = 0);
~RobortSet(); ~RobortSet();
QString robortmission;
Q_SIGNALS: Q_SIGNALS:
//发送数据的信号,不需要实体函数,在头文件定义就可以 //信号函数
void sendData(std::string, int, std::string); void sendData(std::string, int, std::string); //告知Mission类机器人设置完成
private: private:
QDialogButtonBox *buttonBox;
QString robortmission; //机器人所属任务
//窗口控件
QDialogButtonBox *buttonBox;
QLabel *robortname; QLabel *robortname;
QLabel *roborttype; QLabel *roborttype;
QLabel *robortip; QLabel *robortip;
QLineEdit *inputname; QLineEdit *inputname;
QComboBox *inputtype; QComboBox *inputtype;
QLineEdit *inputip; QLineEdit *inputip;
Ui::RobortSet *ui;
void accept(); void accept();
void reject(); void reject();

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file robortupdate.h
* @author
* @brief RobortSet
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef ROBORTUPDATE_H #ifndef ROBORTUPDATE_H
#define ROBORTUPDATE_H #define ROBORTUPDATE_H
@ -9,10 +23,6 @@
#include "../dialog/commondialog.h" #include "../dialog/commondialog.h"
namespace Ui {
class RobortUpdate;
}
class RobortUpdate : public QDialog class RobortUpdate : public QDialog
{ {
Q_OBJECT Q_OBJECT
@ -20,22 +30,21 @@ class RobortUpdate : public QDialog
public: public:
explicit RobortUpdate(QWidget *parent = 0); explicit RobortUpdate(QWidget *parent = 0);
~RobortUpdate(); ~RobortUpdate();
void getRobortID(int);
void getRobortID(int); //获取机器人id号
private: private:
QDialogButtonBox *buttonBox;
//窗口控件
QDialogButtonBox *buttonBox;
QLabel *robortname; QLabel *robortname;
QLabel *roborttype; QLabel *roborttype;
QLabel *robortip; QLabel *robortip;
QLineEdit *inputname; QLineEdit *inputname;
QComboBox *inputtype; QComboBox *inputtype;
QLineEdit *inputip; QLineEdit *inputip;
CommonDialog *commondialog; CommonDialog *commondialog; //更新完成后显示此对话框
Ui::RobortUpdate *ui;
void accept(); void accept();
void reject(); void reject();

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file mainwindow.h
* @author
* @brief MainWindow
* @version 1.0
* @date 2023-06-28
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef MAINWINDOW_H #ifndef MAINWINDOW_H
#define MAINWINDOW_H #define MAINWINDOW_H
@ -20,10 +34,6 @@
#include <QGridLayout> #include <QGridLayout>
#include <QProcess> #include <QProcess>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow class MainWindow : public QMainWindow
{ {
Q_OBJECT Q_OBJECT
@ -33,19 +43,20 @@ public:
~MainWindow(); ~MainWindow();
private: private:
Ui::MainWindow *ui;
QProcess *process; //启动roscore QProcess *process; //启动roscore
QPushButton *startbutton; //创建任务按钮 QPushButton *startbutton; //创建任务按钮
QPushButton *openbutton; //打开任务按钮 QPushButton *openbutton; //打开任务按钮
MissionSet *missionset; //任务设置窗口 MissionSet *missionset; //任务设置窗口
MissionOpen *missionopen; //任务打开窗口 MissionOpen *missionopen; //任务打开窗口
//基本窗口设置 //窗口控件
QMenuBar *menubar; QMenuBar *menubar;
QWidget *centralwidget; QWidget *centralwidget;
QStatusBar *statusbar; QStatusBar *statusbar;
QFrame *frame; QFrame *frame;
QGridLayout *gridLayout; QGridLayout *gridLayout;
//基本窗口设置
void basicFrameSet(); void basicFrameSet();
private Q_SLOTS: private Q_SLOTS:

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file missionwindow.h
* @author
* @brief MissionWindow使
* @version 1.0
* @date 2023-06-29
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef MISSIONWINDOW_H #ifndef MISSIONWINDOW_H
#define MISSIONWINDOW_H #define MISSIONWINDOW_H
@ -27,10 +40,6 @@
#include <QThread> #include <QThread>
namespace Ui {
class MissionWindow;
}
class MissionWindow : public QWidget class MissionWindow : public QWidget
{ {
Q_OBJECT Q_OBJECT
@ -48,11 +57,11 @@ public:
GroundRobort *tab_ground; GroundRobort *tab_ground;
Q_SIGNALS: Q_SIGNALS:
//信号函数
void sendRobortData(std::string, int, int, std::string); void sendRobortData(std::string, int, int, std::string);
private: private:
Ui::MissionWindow *ui;
MyViz *myviz;
int type; int type;
std::vector<std::string> robort; std::vector<std::string> robort;
std::string name; std::string name;
@ -62,16 +71,25 @@ private:
QPushButton *StartMission; QPushButton *StartMission;
QPushButton *TerminateMission; QPushButton *TerminateMission;
//用于显示雷达扫描图像
MyViz *myviz;
//显示任务执行信息等情况
MessageBox *message; MessageBox *message;
//创建机器人时显示此对话框
RobortSet *robortset; RobortSet *robortset;
//信息发送和接收节点
TcpReceiveNode *tcpreceivenode; TcpReceiveNode *tcpreceivenode;
UdpReceiveNode *udpreceivenode; UdpReceiveNode *udpreceivenode;
UdpSendNode *udpsendnode; UdpSendNode *udpsendnode;
ManageNode *managenode; ManageNode *managenode;
private Q_SLOTS: private Q_SLOTS:
void getData(QString); //槽函数
void getData(std::string, int, std::string); void getData(QString); //接收MainWindow窗口的信息从数据库查找相关任务信息
void getData(std::string, int, std::string); //创建新机器人后显示机器人内容,便于后期可能的扩展
void toRobortSet(); void toRobortSet();
void startMission(); void startMission();
void terminateMission(); void terminateMission();

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file direct_control_node.h
* @author
* @brief DirectControlNodeunitree_legged_sdk
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef DIRECT_CONTROL_NODE_H #ifndef DIRECT_CONTROL_NODE_H
#define DIRECT_CONTROL_NODE_H #define DIRECT_CONTROL_NODE_H

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file manage_node.h
* @author
* @brief ManageNode
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef MANAGE_NODE_H #ifndef MANAGE_NODE_H
#define MANAGE_NODE_H #define MANAGE_NODE_H

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file tcp_port_receive_node.h
* @author
* @brief TcpReceiveNodeTCP/IP
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef TCP_PORT_RECEIVE_NODE_H #ifndef TCP_PORT_RECEIVE_NODE_H
#define TCP_PORT_RECEIVE_NODE_H #define TCP_PORT_RECEIVE_NODE_H

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file tcp_port_send_node.h
* @author
* @brief TcpSendNodeTCP/IP
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef TCP_PORT_SEND_NODE_H #ifndef TCP_PORT_SEND_NODE_H
#define TCP_PORT_SEND_NODE_H #define TCP_PORT_SEND_NODE_H

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file udp_port_receive_node.h
* @author
* @brief UdpReceiveNodeUDP/IP
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef UDP_PORT_RECEIVE_NODE_H #ifndef UDP_PORT_RECEIVE_NODE_H
#define UDP_PORT_RECEIVE_NODE_H #define UDP_PORT_RECEIVE_NODE_H

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file udp_port_send_node.h
* @author
* @brief UdpSendNodeUDP/IP
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef UDP_PORT_SEND_NODE_H #ifndef UDP_PORT_SEND_NODE_H
#define UDP_PORT_SEND_NODE_H #define UDP_PORT_SEND_NODE_H

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file ground_robort.h
* @author
* @brief GroundRobort
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef GROUND_ROBORT_H #ifndef GROUND_ROBORT_H
#define GROUND_ROBORT_H #define GROUND_ROBORT_H
@ -24,10 +38,6 @@
#include <QTextEdit> #include <QTextEdit>
#include <QLabel> #include <QLabel>
namespace Ui {
class GroundRobort;
}
class GroundRobort : public QWidget class GroundRobort : public QWidget
{ {
Q_OBJECT Q_OBJECT
@ -36,6 +46,7 @@ public:
explicit GroundRobort(QWidget *parent = 0); explicit GroundRobort(QWidget *parent = 0);
~GroundRobort(); ~GroundRobort();
//测试是否成功连接
Ping* m_ping; Ping* m_ping;
QThread* m_pingThread; QThread* m_pingThread;
@ -45,36 +56,38 @@ private:
std::string name; std::string name;
int id; int id;
//基本控件
QPushButton *join_mission; QPushButton *join_mission;
QPushButton *stop_mission; QPushButton *stop_mission;
QPushButton *directcontrol_button; QPushButton *directcontrol_button;
DirectControl *directcontrol; DirectControl *directcontrol;
QPushButton *modify_settings; QPushButton *modify_settings;
QPushButton *delete_robort; QPushButton *delete_robort;
QTextEdit *robort_name; QTextEdit *robort_name;
QTextEdit *robort_type; QTextEdit *robort_type;
QTextEdit *robort_ip; QTextEdit *robort_ip;
QTextEdit *robort_ping; QTextEdit *robort_ping;
//更新机器人信息
RobortUpdate *robortupdate; RobortUpdate *robortupdate;
//通信节点
UdpReceiveNode *udpreceivenode; UdpReceiveNode *udpreceivenode;
UdpSendNode *udpsendnode; UdpSendNode *udpsendnode;
Q_SIGNALS: Q_SIGNALS:
void send_connected_robort(QString); //信号函数
void send_connected_robort(QString); //发送是否连接成功信息到MissionWindow类
public Q_SLOTS: public Q_SLOTS:
void getRobortData(std::string, int, int, std::string); //槽函数
void directControl(); void getRobortData(std::string, int, int, std::string); //接收MissionWindow从数据库中查找到到机器人相关信息
void getPing(QString); void directControl(); //直接控制
void deleteThisRobort(); void getPing(QString); //判断连接情况
void updateThisRobort(); void deleteThisRobort(); //从数据库删除此机器人信息
void joinMission(); void updateThisRobort(); //从数据库更新此机器人信息
void stopMission(); void joinMission(); //加入任务
void stopMission(); //停止任务
}; };

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file sky_robort.h
* @author
* @brief SkyRobort
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef SKY_ROBORT_H #ifndef SKY_ROBORT_H
#define SKY_ROBORT_H #define SKY_ROBORT_H
@ -24,10 +37,6 @@
#include <QTextEdit> #include <QTextEdit>
#include <QLabel> #include <QLabel>
namespace Ui {
class SkyRobort;
}
class SkyRobort : public QWidget class SkyRobort : public QWidget
{ {
Q_OBJECT Q_OBJECT
@ -36,6 +45,7 @@ public:
explicit SkyRobort(QWidget *parent = 0); explicit SkyRobort(QWidget *parent = 0);
~SkyRobort(); ~SkyRobort();
//测试是否成功连接
Ping* m_ping; Ping* m_ping;
QThread* m_pingThread; QThread* m_pingThread;
@ -45,36 +55,37 @@ private:
std::string name; std::string name;
int id; int id;
//基本控件
QPushButton *join_mission; QPushButton *join_mission;
QPushButton *stop_mission; QPushButton *stop_mission;
QPushButton *directcontrol_button; QPushButton *directcontrol_button;
DirectControl *directcontrol; DirectControl *directcontrol;
QPushButton *modify_settings; QPushButton *modify_settings;
QPushButton *delete_robort; QPushButton *delete_robort;
QTextEdit *robort_name; QTextEdit *robort_name;
QTextEdit *robort_type; QTextEdit *robort_type;
QTextEdit *robort_ip; QTextEdit *robort_ip;
QTextEdit *robort_ping; QTextEdit *robort_ping;
//更新机器人信息
RobortUpdate *robortupdate; RobortUpdate *robortupdate;
//通信节点
UdpReceiveNode *udpreceivenode; UdpReceiveNode *udpreceivenode;
UdpSendNode *udpsendnode; UdpSendNode *udpsendnode;
Q_SIGNALS: Q_SIGNALS:
void send_connected_robort(QString); //信号函数
void send_connected_robort(QString); //发送是否连接成功信息到MissionWindow类
public Q_SLOTS: public Q_SLOTS:
void getRobortData(std::string, int, int, std::string); void getRobortData(std::string, int, int, std::string); //接收MissionWindow从数据库中查找到到机器人相关信息
void directControl(); void directControl(); //直接控制
void getPing(QString); void getPing(QString); //判断连接情况
void deleteThisRobort(); void deleteThisRobort(); //从数据库删除此机器人信息
void updateThisRobort(); void updateThisRobort(); //从数据库更新此机器人信息
void joinMission(); void joinMission(); //加入任务
void stopMission(); void stopMission(); //停止任务
}; };
#endif // SKY_ROBORT_H #endif // SKY_ROBORT_H

@ -26,6 +26,17 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE. * POSSIBILITY OF SUCH DAMAGE.
*/ */
/**
* ************************************************************************
* @file myviz.h
* @author
* @brief MyViz
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*/
#ifndef MYVIZ_H #ifndef MYVIZ_H
#define MYVIZ_H #define MYVIZ_H
@ -35,7 +46,7 @@ namespace rviz
{ {
class Display; class Display;
class RenderPanel; class RenderPanel;
class VisualizationManager;; class VisualizationManager;
} }
// BEGIN_TUTORIAL // BEGIN_TUTORIAL

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file ping.h
* @author
* @brief PingIP
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef PING_H #ifndef PING_H
#define PING_H #define PING_H
@ -26,10 +40,11 @@ public:
void init(QString); void init(QString);
Q_SIGNALS: Q_SIGNALS:
void sendPing(QString); //信号函数
void sendPing(QString); //发送结果信息到其他类
private Q_SLOTS: private Q_SLOTS:
int getResult(); int getResult(); //得到结果信息
}; };

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file plan.hpp
* @author
* @brief Plan
* @version 1.0
* @date 2023-06-29
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef PLAN_H #ifndef PLAN_H
#define PLAN_H #define PLAN_H
#include <iostream> #include <iostream>

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file sqlite.h
* @author
* @brief sqlite
* @version 1.0
* @date 2023-06-27
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef SQLITE_H #ifndef SQLITE_H
#define SQLITE_H #define SQLITE_H

@ -1,3 +1,17 @@
/**
* ************************************************************************
* @file receive_transform.hpp
* @author
* @brief jsonROS
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef RECEIVE_TRANSFORM_HPP #ifndef RECEIVE_TRANSFORM_HPP
#define RECEIVE_TRANSFORM_HPP #define RECEIVE_TRANSFORM_HPP
@ -20,7 +34,7 @@ std::string get_message_type(std::string &s)
} }
int goal_receive_transform(geometry_msgs::PoseStamped &goal, std::string &s) int goal_receive_transform(geometry_msgs::PoseStamped &goal, std::string &s)
{
const auto& j = json::parse(s, nullptr, false); const auto& j = json::parse(s, nullptr, false);

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file send_transform.hpp
* @author
* @brief ROSjson
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef SEND_TRANSFORM_HPP #ifndef SEND_TRANSFORM_HPP
#define SEND_TRANSFORM_HPP #define SEND_TRANSFORM_HPP

@ -1,3 +1,16 @@
/**
* ************************************************************************
* @file video.h
* @author
* @brief Video
* @version 1.0
* @date 2023-06-30
* ************************************************************************
*
* @copyright Copyright (c) 2023 XXX
* For study and research only, no reprinting
* ************************************************************************
*/
#ifndef VIDEO_H #ifndef VIDEO_H
#define VIDEO_H #define VIDEO_H
@ -26,11 +39,13 @@ public:
void init(QString, int); void init(QString, int);
protected: protected:
void paintEvent(QPaintEvent *event) override;
void paintEvent(QPaintEvent *event) override; //绘制Video的边框
private Q_SLOTS: private Q_SLOTS:
void openCamera(); //槽函数
void closeCamera(); void openCamera(); //接收从机器人窗口发来的消息
void closeCamera(); //接收从机器人窗口发来的消息
}; };

Loading…
Cancel
Save