-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
72 lines (52 loc) · 974 Bytes
/
main.cpp
File metadata and controls
72 lines (52 loc) · 974 Bytes
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
65
66
67
68
69
70
71
72
/**
* @file main.cpp
* @author Federico Adami, Francesco Olivieri, Eddie Veronese
* @brief
* @version 0.1
* @date 2023-06-22
*
* @copyright Copyright (c) 2023
*
*/
#include <math.h>
#include "link_attacher.hpp"
#include <iostream>
#include <string>
#include "task.hpp"
using namespace std;
using namespace Mathutils;
vector<string> models_list;
int main(int argc, char **argv){
init();
int n_task=0;
if(argc>1){
n_task=atoi(argv[1]);
}
Robot robot;
Models blocks = Models();
switch (n_task)
{
case 1:{
task1(robot, blocks);
break;
}
case 2:{
task2(robot, blocks);
break;
}
case 3:{
task3(robot, blocks);
break;
}
case 4:{
task4(robot, blocks);
break;
}
default:{
cout << "Non valid task number" << endl;
break;
}
}
cout << "HELo" << endl;
return 0;
}