-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathRobotController.h
53 lines (39 loc) · 1.18 KB
/
RobotController.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
48
49
50
51
52
53
//
// RobotController.hpp
// example-urdf
//
// Created by Dan Moore on 3/21/22.
//
#pragma once
#include "ofMain.h"
#include "RobotDriver.h"
#include "URDriver.h"
#include "ABBDriver.h"
#include "XARMDriver.h"
#include "PandaDriver.h"
#include "RobotConstants.hpp"
#include "Plane.h"
namespace ofxRobotArm {
class RobotController {
public:
RobotController();
~RobotController();
void connect();
void disconnect();
void update(vector<double> pose, vector<double> smoothing);
void setType(RobotType type);
void setAddress(string ipAddress);
void setPort(int port);
void setEnableMovement(bool move);
bool isConnected();
vector<double> getCurrentPose();
RobotDriver * robot;
RobotType type;
string ipaddress;
int port;
vector<double> targetPose;
vector<double> currentPose;
ofParameter<bool> bMove;
ofParameter<bool> bDoReconnect;
};
}