forked from DigiScore/RAMI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
59 lines (49 loc) · 1.31 KB
/
config.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
# [HARDWARE]
xarm_connected = True
eda_live = False
eeg_live = False
# [PLAY PARAMS]
silence_listener = False
duration_of_piece = 240 # in sec
speed = 5 # dynamic tempo of the all processes: 1 = slow, 10 = fast
temperature = 0
# [XARM]
xarm1_port = '192.168.1.222'
xarm_x_extents = [-500, 500] # cartesian coords in mm
xarm_y_extents = [-500, 500]
xarm_z_extents = [55, 1000]
# xarm_ballet_x_extents = [400, 400]
# xarm_ballet_y_extents = [-250, 250]
# xarm_ballet_z_extents = [150, 400]
xarm_irregular_shape_extents = 50
xarm_fenced = True
# [SOUND IN]
mic_sensitivity = 10000
mic_in_prediction = 0.36
mic_in_logging = True
# [BITALINO]
baudrate = 10
channels = [0]
mac_address = "00:21:08:35:17:C0" #
# "98:D3:B1:FD:3D:1F" # '/dev/cu.BITalino-3F-AE' (Linux)
# [STREAMING]
stream_list = ['rnd_poetry',
'eeg2flow',
'flow2core',
'core2flow',
'audio2core',
'audio2flow',
'flow2audio',
'eda2flow']
# [DEBUG]
# debug = logging.INFO
# [DATAWRITER]
data_writer = True
"""
Notes:
To check available ports, run the following code:
from serial.tools import list_ports
available_ports = list_ports.comports()
print(f'available ports: {[x.device for x in available_ports]}')
May need `sudo chmod 666 /dev/ttyACM0`
"""