-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathlaikago_config.py
65 lines (45 loc) · 1.32 KB
/
laikago_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
import numpy as np
class SimConfig(object):
CONTROLLER_DT = 0.005
N_SUBSTEP = 1
KP = 0.
KD = 0.
INITIAL_POS_WORLD_TO_BASEJOINT = [0, 0, 0.5]
INITIAL_QUAT_WORLD_TO_BASEJOINT = [0.5, 0.5, 0.5, 0.5]
PRINT_ROBOT_INFO = True
class PnCConfig(object):
CONTROLLER_DT = SimConfig.CONTROLLER_DT
SAVE_DATA = True
SAVE_FREQ = 1
PRINT_ROBOT_INFO = SimConfig.PRINT_ROBOT_INFO
class WBCConfig(object):
# Max normal force per contact
RF_Z_MAX = 300.0
# Task Hierarchy Weights
W_COM = 10.0
W_BASE_ORI = 20.0
W_CONTACT_FOOT = 60.0
W_SWING_FOOT = 40.0
# Task Gains
KP_COM = np.array([20., 20., 20])
KD_COM = np.array([2., 2., 2.])
KP_BASE_ORI = np.array([20., 20., 20])
KD_BASE_ORI = np.array([2., 2., 2.])
KP_FOOT_POS = np.array([40., 40., 40.])
KD_FOOT_POS = np.array([4., 4., 4.])
# Regularization terms
LAMBDA_Q_DDOT = 1e-8
LAMBDA_RF = 1e-7
B_TRQ_LIMIT = False
# Integration Parameters
VEL_CUTOFF_FREQ = 2.0 #Hz
POS_CUTOFF_FREQ = 1.0 #Hz
MAX_POS_ERR = 0.2 #Radians
class PushRecoveryConfig(object):
INIT_STAND_DUR = 4.0
RF_Z_MAX_TIME = 0.1
INITIAL_COM_POS = np.array([0., 0., 0.4])
INITIAL_BASE_ORI = np.array([0.5, 0.5, 0.5, 0.5])
class PushRecoveryState(object):
STAND = 0
BALANCE = 1