-
Notifications
You must be signed in to change notification settings - Fork 5
/
robotConnection.h
47 lines (31 loc) · 992 Bytes
/
robotConnection.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef __APOLO__ROBOT_CONNECTION__H
#define __APOLO__ROBOT_CONNECTION__H
#include "mrcore.h"
#include "definitions.h"
#include "connectionLog.h"
#include "connectionParameters.h"
#include "nodeTree.h"
#include "wx/wx.h"
#include <wx/socket.h>
class RobotConnection :wxDialog
{
public:
RobotConnection(wxWindow *parent,const wxString& name);
void SendData(NodeTree *robot);
void* ConnectClient(void* client);
void* UpdateServerState(void *server);
bool getLogVisible(){return logVisible;}
ConnectionLog *getLog(){return connectionLog;}
void ShowConnLog(bool showLog);
void HandleThreads(Thread <RobotConnection>thid,NodeTree *robot,bool close=false,bool server=true);
void getIP(wxString &ip);
void Disconnect(NodeTree *robot);
void ReceiveData(NodeTree *robot);
private:
bool logVisible;
wxWindow *window;
vector<Thread<RobotConnection> > v_threads;
vector<NodeTree*> r_connected;
ConnectionLog *connectionLog;
};
#endif // __APOLO__ROBOT_CONNECTION__H