-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
58 lines (41 loc) · 1.38 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
# const int sender_osc_port_num = 8016;
# const int receiver_osc_port_num = 8020;
# const std::string osc_sender_ip = "127.0.0.1";
#############################################################
# [Reciver] Kinect
kinect_receiver_ip = "127.0.0.1"
kinect_receiver_port = 8017
# [Sender] PureData
# pd_sender_ip = "192.168.2.12"
# pd_sender_port = 8012
# [Sender] roomba
roomba_sender_ip = "127.0.0.1"
roomba_sender_port = 8013
#########################[TEST]###############################
# test roomba
test_sender_port = 8020
test_sender_ip="127.0.0.1"
# test roomba / kinect
test_receiver_port = 8016
test_receiver_ip="127.0.0.1"
#############################################################
# 多いほど複雑な動きが生成
pattern_num = 25
# 2x -> 2x slower
sample_num = 20000
# roombaのframeサイズ
frame_x_max = 1200
frame_y_max = 2700
frame_margin = 450
x_max_scale = frame_x_max - frame_margin*2
y_max_scale = frame_y_max - frame_margin*2
# カニが逃げる半径
initial_prohibited_area_radius = 10 # 初期値
prohibited_area_radius = 1000 # 可変な値
prohibited_area_radius = 2500 # 上限
prohibited_area_radius_acc = 5 # 更新の度合い(大きいほど早く更新)
# interaction_threshold = 1
# 磁石動かすサーボモーターの低さの最大値
z_max = 255
# 磁石動かすサーボモーターの通常の速さ (大きくすると早く動く)
z_speed = 10