-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathPathController.h
executable file
·64 lines (54 loc) · 1.3 KB
/
PathController.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
54
55
56
57
58
59
60
61
62
63
64
//
// PathController.h
// urModernDriverTest
//
// Created by dantheman on 4/4/16.
//
//
//
// Copyright (c) 2016, 2021 Daniel Moore, Madeline Gannon, and The Frank-Ratchye STUDIO for Creative Inquiry All rights reserved.
////
#pragma once
#include "ofMain.h"
#include "Path.h"
#include "Path3D.h"
namespace ofxRobotArm{
class PathController{
public:
PathController();
~PathController();
enum PathState{
NOT_READY = 0,
LOADED,
DRAWING,
PAUSED,
FINISHED,
READY
};
enum PathType{
BASE_PATH = 0,
GML_PATH,
TWO_D_PATH,
THREE_D_PATH,
RECORDED_PATH
};
void setup();
void setup(vector<Path *> paths);
void update();
ofMatrix4x4 getNextPose();
void draw();
void addPath(Path *path);
void pauseDrawing();
void startDrawing();
void endDrawing();
void loadPath(string file);
int size();
vector<Path *> paths;
int pathIndex;
PathState currentState;
void keyPressed(int key);
bool isDone;
bool pause;
private:
};
}