-
Notifications
You must be signed in to change notification settings - Fork 3
/
param_init.m
52 lines (40 loc) · 1.04 KB
/
param_init.m
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
% some A1 parameter
param.total_mass = 16;
param.inertia = [0.1158533 0 0; 0 0.1277999 0; 0 0 0.1336542];
param.g = 9.805;
% used to visualize the robot body
param.vis_bl = 0.6;
param.vis_bw = 0.3;
param.vis_bh = 0.08;
param.vis_lw = 0.03;
% number of legs, leg kinematics and fk jacobian generation
param.leg_l1 = 0.22;
param.leg_l2 = 0.20;
param.num_leg = 4;
param.num_dof_per_leg = 3;
param.num_dof = 12;
% camera parameters
% transformation between robot frame and camera frame
param.p_rc = [param.vis_bl/2;0;0];
param.R_rc = [ 0 0 1;
-1 0 0;
0 -1 0];
param.focus_len = 1;
param.horiz_film = 0.4;
param.verti_film = 0.3;
% noise of sensor measurement
param.noise_acc_bias = 1e-4;
param.noise_gyro_bias = 1e-4;
param.noise_rho = 1e-4;
param.noise_acc = 1e-4;
param.noise_gyro = 1e-4;
param.noise_ja = 1e-4;
param.noise_jav = 1e-4;
param.noise_feature_px = 1e-4;
% hardware data
param.data_duration = 0;
param.lc_init = 0.21;
param.test_imm = 0;
param.test_receding = 0;
param.has_mocap = 1;
param.has_contact_flag = 1;