thesis/unicycle.m

8 lines
160 B
Matlab
Raw Normal View History

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