forked from leggedrobotics/legged_gym
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplotting.m
More file actions
63 lines (52 loc) · 942 Bytes
/
plotting.m
File metadata and controls
63 lines (52 loc) · 942 Bytes
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
load('/home/wcompton/Repos/legged_gym_dev/legged_gym/scripts/play_data.mat')
t = [0:size(cmd, 1)-1] * 0.02;
figure(1)
clf
plot(t, cmd')
ylabel('command')
figure(2)
clf
plot(t, action')
ylabel('action')
figure(3)
clf
plot(t, (action ./ vecnorm(action, 2, 2))')
ylabel('normalized action')
legend('w_{des}', 'x_{des}', 'y_{des}', 'z_{des}')
figure(4)
clf
plot(t, quat')
ylabel('quat')
legend('x', 'y', 'z', 'w')
figure(5)
clf
plot(t, omega')
ylabel('Angular velocity')
legend('w_x', 'w_y', 'w_z')
figure(6)
clf
plot(t, pos')
ylabel('position')
legend('x', 'y', 'z')
figure(7)
clf
plot(t, vel')
ylabel("velocity")
legend('v_x', 'v_y', 'v_z')
figure(8)
clf
hold on
plot(t, dof(:, 1)')
plot(t, ddof(:, 1)')
ylabel('Foot')
legend('pos', 'vel')
figure(9)
clf
plot(t, ddof(:, 2:4)')
ylabel('Wheel Vel')
legend('wheel 1', 'wheel 2', 'wheel 3')
figure(10)
clf
plot(t, torque(:, 2:4)')
ylabel('Torque')
legend('wheel 1', 'wheel 2', 'wheel 3')