-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
63 lines (53 loc) · 1.24 KB
/
Copy pathmain.cpp
File metadata and controls
63 lines (53 loc) · 1.24 KB
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
//============================================================================
// Name : main.cpp
// Author : Giuseppe Giliberto, Giuseppe Puglisi, Giuseppe Sgroi
// Version : 2.0
// Copyright : Universita' degli Studi di Catania
// Description : Forward and Inverse Kinematics 3D / 2D
//============================================================================
#include <cstdlib>
#include <iostream>
#include <math.h>
#define _USE_MATH_DEFINES
#include "GeometryArms.h"
#include "Kinematics3d.h"
#include "Kinematics2d.h"
#include "Utility.h"
using namespace std;
//============================================================================
int main(int argc, char *argv[]) {
//system("COLOR 0A");
int scelta;
GeometryArms g;
g.sGeoA.L1 = 0;
g.sGeoA.L2 = 0;
Kinematics3d K3d;
Kinematics2d K2d;
while (scelta != 0) {
menu(g);
cin >> scelta;
//system("cls");
cls(); //clear screen
switch(scelta) {
case 0:
break;
case 1:
g.setGeometryArms();
break;
case 2:
K3d.setInputForward(g);
break;
case 3:
K3d.setInputInverse(g);
break;
case 4:
K2d.setInputForward(g);
break;
case 5:
K2d.setInputInverse(g);
break;
}
}
//system("PAUSE");
return EXIT_SUCCESS;
}