-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal_static_vars.py
74 lines (60 loc) · 2.48 KB
/
global_static_vars.py
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
import sys
code_path = "C:/Experiment/Teachingnicdraw/" #for Bratislava
images_dir = code_path +"Images/"
experiment_dir = images_dir + "Experiments_raw/"
# Set the color and size for drawing
draw_color = 'black'
draw_size = 4
lower_edge_canvas = 1009
# specify resolutions of both screens
width_main, height_main = 1366, 768
width_side, height_side = 1920, 1080
#Speed of robot movements
default_speed = 0.08
# Borders of area where NN lifts hand too high and we control manually downwards
y_upper = 135
y_lower = 0
x_lower = 750
x_upper = 1030
#The maximum rescale applied, so that the robot doesn't overdo the increase in size
max_rescale = 1.5
#The size of the drawing field the robot can use
drawing_area_x = 1592
drawing_area_y = 840
left_limit_x = 164
center_y = drawing_area_y/2 + 10
center_x = width_side/2
# Static vars of robot
rightArmDofs = ['r_shoulder_z','r_shoulder_y','r_arm_x','r_elbow_y','r_wrist_z','r_wrist_x','r_thumb_z','r_thumb_x','r_indexfinger_x','r_middlefingers_x']
leftArmDofs = ['l_shoulder_z','l_shoulder_y','l_arm_x','l_elbow_y','l_wrist_z','l_wrist_x','l_thumb_z','l_thumb_x','l_indexfinger_x','l_middlefingers_x']
# Last column is time stamp
parking_position = [-8.0, -15.0, 16.0, 74.0, -24.0, 35.0, -71.0, -104.0, -180.0, -180.0, 0]
ready_position = [-8.0, 46.0, 13.0, 99.0, 44.0, 99.0, -70.0, 32.0, -180.0, 180.0, 800]
steady_position = [13.0, 36.0, 25.0, 106.0, 66.0, -180.0, -70.0, 26.0, -180.0, 172.0, 1100]
parking_time = 1.500
### These variables are set as arguments when executing in command line,
### so they may differ from initial config
line_args = {
'country': "en",
'participant': "nicodraws",
'path_folder_participant': "empty"
}
# The first category is a trial for the user to get used to it. We do record it, but just ignore it in the statistics
# since it's easier to actively ignore it.
category_trial = "apple"
category_trial_sk = "jablko"
categories_no_imitation = ["leaf", "spider", "pizza", "palm tree", "sheep"]
categories_sk_no_imitation = ["list", "pavúk", "pizza", "palma", "ovca"]
categories_fixed_imitation = ["square", "triangle"]
categories_fixed_imitation_sk = ["štvorec", "trojuholník"]
categories_imitation_mixed = ["light bulb", "cake", "face", "bee"]
categories_sk_imitation_mixed = ["žiarovka", "koláč", "tvár", "včela"]
category_imitation_last = "flower"
category_sk_imitation_last = "kvetina"
monitorWidth = 47.7
viewdist = 25.4
monitorname = 'testMonitor'
scrn = 1
min_duration = 0.05
duration_down = 0.4
duration_const = 0.08