-
Notifications
You must be signed in to change notification settings - Fork 1
/
__conf__.py
47 lines (39 loc) · 1.33 KB
/
__conf__.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
import numpy as np
from control import controller_traffic
###############################
# FLASK SETTINGS #
###############################
run_flask = True # set to False to disable flask
flask_port = 1234
flask_threaded = True
###############################
# ROBOT SETTINGS #
###############################
max_speed = 0.5
max_w = 1.0
###############################
# DYNAMIC SPEED SETTINGS #
###############################
dynamic_speed = True
ar_max = 0.04
acceleration_factor = 1.1
deceleration_factor = 0.5
# coordinate system calibration
pixel_25cm_distance = 40
first_cut_to_image_edge_in_pixels = 17
meter_to_pixel_ratio = 0.25 / pixel_25cm_distance # ratio of pixels on screen to meters in real world
position_gain = 0.01
omega_gain = 1
num_of_mask_offsets = 10
angularvel_factor_p = 50
tx, ty, wi = 248, 117, 265 # transformation result offset x, offset y and length of square
orig_sqre = [[219, 146], [602, 145], [528, 402], [244, 403]] # original map of pixels: define in clockwise direction
pts1 = np.float32(orig_sqre)
pts2 = np.float32([[tx, ty + wi], [tx + wi, ty + wi], [tx + wi, ty], [tx, ty]])
full_dim = (640, 480)
proc_dim = (160, 120)
# line detection bounds
min_line_match = 120
min_match_ratio = 0.6
min_split_r = 0.8
marker_ids = set(controller_traffic.aryco_id_to_split_name.keys())