-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
59 lines (47 loc) · 1.76 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
import os
##################################################
# DIRECTORIES.
##################################################
# Absolute root directory of this project.
PROJECT_PATH = os.getcwd() + '/'
# The redist path for OpenNI2 and NiTE2 containing the relevant files.
PRIMESENSE_REDIST_PATH = PROJECT_PATH + '/redist/'
RESOURCE_HAAR_CASCADES = PROJECT_PATH + '/resource/haarcascades/'
##################################################
# DISPLAY / UI.
##################################################
MAP_SCALE_FACTOR = 3
##################################################
# ROBOT SPECIFIC.
##################################################
# Axial length between the differential-drive robot's left and right wheels.
AXIAL_LENGTH = 26.0
# PID values.
PID_X = (0.15, 0, 0)
PID_Y = (0.15, 0, 0)
NORMAL_DRIVE_SPEED = 4
NORMAL_ROTATE_SPEED = 0.1745
ESCAPE_OBSTACLE_SPEED = 5
##################################################
# SLAM
##################################################
CONTROL_DELTA_TIME = 0.10
MEASURE_DELTA_TIME = 0
PF_NUM_PARTICLES = 120
GRID_MAP_RESOLUTION = 10.0
GRID_MAP_SIZE = (250, 250)
MOTION_NOISE = (1e-5, 1e-5, 1e-6, 1e-6)
OCCU_THRES = 0.90
# Kernel defining the shape representation of the robot projected on the grid
# map.
BODY_KERNEL_RADIUS = 2
PATH_COST_RADIUS = 7
##################################################
# SOUNDS
##################################################
SND_INIT = PROJECT_PATH + './resource/voice/m4_init.wav'
SND_GREET = PROJECT_PATH + './resource/voice/m4_greet.wav'
SND_APPROACH = PROJECT_PATH + './resource/voice/m4_approach_guest.wav'
SND_EXPLORE = PROJECT_PATH + './resource/voice/m4_explore.wav'
SND_SEE_HUMAN = PROJECT_PATH + './resource/voice/m4_see_human.wav'
SND_OOPS = PROJECT_PATH + './resource/voice/m4_oops.wav'