sot-talos-balance  2.0.5
Collection of dynamic-graph entities aimed at implementing balance control on talos.
joint_torque_controller_sim_conf.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 """
3 Created on Mon Feb 9 13:55:16 2015
4 @author: adelpret
5 """
6 import numpy as np
7 
8 NJ = 32
9 
10 COULOMB_FRICTION_COMPENSATION_PERCENTAGE = 0.0
11 k_p_torque = np.array(
12  NJ
13  * [
14  0.5,
15  ]
16 )
17 # torque control proportional gains
18 k_d_torque = np.array(
19  NJ
20  * [
21  0.0,
22  ]
23 )
24 # torque control derivative gains
25 k_i_torque = np.array(
26  NJ
27  * [
28  3.0,
29  ]
30 )
31 # torque control integral gains
32 torque_integral_saturation = np.array(
33  NJ
34  * [
35  0.0,
36  ]
37 )
38 poly_sign_dq = 3
39 # order of polynomial to approximate Coulomb friction around zero velocity
40 k_d_velocity = np.array(
41  NJ
42  * [
43  0.0,
44  ]
45 )
46 # torque control derivative gains
47 alpha_leaking = np.array(
48  [
49  75.0,
50  75.0,
51  75.0,
52  75.0,
53  75.0,
54  75.0,
55  75.0,
56  75.0,
57  75.0,
58  75.0,
59  75.0,
60  75.0,
61  0.0,
62  0.0,
63  0.0,
64  0.0,
65  0.0,
66  0.0,
67  0.0,
68  0.0,
69  0.0,
70  0.0,
71  0.0,
72  0.0,
73  0.0,
74  0.0,
75  0.0,
76  0.0,
77  0.0,
78  0.0,
79  0.0,
80  0.0,
81  ]
82 )
83 
84 # # PARAMETERS OF R_hip_y JOINT 0
85 # k_p_torque[0] = 12.0;
86 # # PARAMETERS OF R_hip_r JOINT 1
87 # k_p_torque[1] = 5; #15.0 # could easily go up to 20, but it's a bit less stable
88 # # PARAMETERS OF R_hip_p JOINT 2
89 # k_p_torque[2] = 6; #with delay 30 ms
90 # # PARAMETERS OF R_knee JOINT 3
91 # k_p_torque[3] = 10.0; # with 12 it starts vibrating at low velocity
92 # # PARAMETERS OF R_ankle pitch JOINT 4
93 # k_p_torque[4] = 10.0; # 10 feels good, but maybe i could go higher
94 # # PARAMETERS OF R_ankle roll JOINT 5
95 # k_p_torque[5] = 15.0; # could go higher, but it feels already good
96 # # PARAMETERS OF Left hip pitch JOINT 8
97 # k_p_torque[8] = 6.0; # with delay 20 ms