forked from Lukaszm94/RobotSimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefaultvalues.cpp
81 lines (70 loc) · 1.38 KB
/
defaultvalues.cpp
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
73
74
75
76
77
78
79
80
81
#include "defaultvalues.h"
DefaultValues::DefaultValues()
{
}
MachineCoordinates DefaultValues::getMachineCoordinates()
{
MachineCoordinates machineCoordinates;
double defaultAngle = 10;
for(int i = 0; i < COORDINATES_COUNT; i++) {
machineCoordinates.setFi(i, defaultAngle);
}
return machineCoordinates;
}
MachineParameters DefaultValues::getMachineParameters()
{
MachineParameters machineParameters;
machineParameters.l_1 = 200;
machineParameters.l_2 = 500;
machineParameters.l_3 = 500;
machineParameters.l_4 = 200;
machineParameters.l_5 = 200;
machineParameters.l_6 = 200;
machineParameters.d = 200;
machineParameters.e = 100;
machineParameters.h = 500;
return machineParameters;
}
ApproachVector DefaultValues::getApproachVector()
{
ApproachVector approachVector;
approachVector.psi = 45;
approachVector.theta = 45;
return approachVector;
}
Deltas DefaultValues::getDeltas()
{
Deltas deltas;
deltas.d_1 = -1;
deltas.d_2 = 1;
deltas.d_5 = 1;
return deltas;
}
KinematicsMode DefaultValues::getKinematicsMode()
{
return KinematicsMode::FORWARD;
}
int DefaultValues::getTrajectoryInterpolationPointsCount()
{
return 60;
}
double DefaultValues::getJointsSpeed()
{
return 40;
}
Point DefaultValues::getStartPoint()
{
Point p;
p.x = 800;
p.y = 200;
p.z = 500;
return p;
}
Point DefaultValues::getFinishPoint()
{
Point p;
p.x = 200;
p.y = 800;
p.z = 700;
return p;
}