thesis/diffdrive.m

11 lines
233 B
Matlab
Raw Normal View History

function dq = diffdrive(t, q, u_discr, sim_data)
theta = q(3);
2024-09-06 15:49:04 +02:00
%dq = T(q)*W*u
% T_q (unicycle)
T_q = [cos(theta), 0; sin(theta), 0; 0, 1];
% W*u
Wu = diffdrive_to_uni(u_discr, sim_data);
dq = T_q*Wu;
2024-07-14 15:16:05 +02:00
end