thesis/unicycle.m

8 lines
160 B
Matlab
Raw Normal View History

function dq = unicycle(t, q, u)
2024-07-14 15:16:05 +02:00
% u is (v;w)
% x is (x; y; theta)
theta = q(3);
G_q = [cos(theta), 0; sin(theta), 0; 0, 1];
dq = G_q*u;
2024-07-14 15:16:05 +02:00
end