-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.py
65 lines (55 loc) · 1.54 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
60
61
62
63
64
65
# [HARDWARE]
dobot_connected = True
xarm_connected = False
eeg_live = True
eda_live = True
# [PLAY PARAMS]
silence_listener = False
duration_of_piece = 2000000 # in sec
continuous_line = False # set to `True` to not jump between points
speed = 5 # dynamic tempo of the all processes: 1 = slow, 10 = fast
staves = 0
temperature = 0
viz = True
# [DOBOT]
dobot1_port = "COM6" # "/dev/cu.usbmodem14601" # "'COM4' # 'COM4' or 'COM10' (Windows), '/dev/ttyACM0' (Linux)
dobot_verbose = False
x_extents = [160, 350]
y_extents = [-150, 150]
z_extents = [0, 150]
irregular_shape_extents = 50
# [XARM]
xarm1_port = '192.168.1.222'
xarm2_port = '192.168.1.223'
xarm_x_extents = [350, 600]
xarm_y_extents = [-250, 250]
xarm_z_extents = [155, 600]
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
xarm_multi_pen = True
# [BITALINO]
baudrate = 10
channels = [0]
mac_address = "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
"""
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`
"""