-
Notifications
You must be signed in to change notification settings - Fork 109
/
settings.py
57 lines (47 loc) · 1.52 KB
/
settings.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
# ***************************
# Settings
# ***************************
# The range of each leg joint in degrees
ALPHA_MAX_ANGLE = 90
BETA_MAX_ANGLE = 180
GAMMA_MAX_ANGLE = 180
BODY_MAX_ANGLE = 40
# LEG STANCE
# would define the starting leg position used to compute
# the target ground contact for inverse kinematics poses
# femur/ beta = -leg_stance
# tibia/ gamma = leg_stance
LEG_STANCE_MAX_ANGLE = 90
# HIP STANCE
# would defined the starting hip position used to compute
# the target ground contact for inverse kinematics poses
# coxia/alpha angle of
# right_front = -hip_stance
# left_front = +hip_stance
# left_back = -hip_stance
# right_back = +hip_stance
# left_middle = 0
# right_middle = 0
HIP_STANCE_MAX_ANGLE = 45
# Too slow? set UPDATE_MODE='mouseup'
# Makes widgets only start updating when you release the mouse button
UPDATE_MODE = "drag"
DEBUG_MODE = False
ASSERTION_ENABLED = False
# The inverse kinematics solver already updates the points of the hexapod
# But there is no guarantee that this pose is correct
# So better update a fresh hexapod with the resulting poses
RECOMPUTE_HEXAPOD = True
PRINT_IK_LOCAL_LEG = False
PRINT_IK = False
PRINT_MODEL_ON_UPDATE = False
# 1 - Use the daq slider UI
# 2 - Use the generic slider UI
# Anything else defaults to the generic input UI, which I prefer
WHICH_POSE_CONTROL_UI = 0
# Make it more granular to prevent overloading the server
SLIDER_ANGLE_RESOLUTION = 1.5
INPUT_DIMENSIONS_RESOLUTION = 1
UI_GRAPH_HEIGHT = "600px"
UI_GRAPH_WIDTH = "63%"
UI_SIDEBAR_WIDTH = "37%"