No BSD License  

Highlights from
Framework for differential steering vehicle

image thumbnail
from Framework for differential steering vehicle by Paolo Di Prodi
A framework for a differential steering vehicle controlled by a PID system tuned with a genetic algo

new_position=deadReckonSpace(position,sr,sl,bw)
%% Author: epokh
%% Website: www.epokh.org/drupy
%% This software is under GPL

function new_position=deadReckonSpace(position,sr,sl,bw)
%% This function calculate the new position of the robot
%% according to the space covered by the right wheel and by the left wheel
x0=position(1);
y0=position(2);
theta0=position(3);
theta=theta0+(sr-sl)/bw;
x=x0+(sr+sl)/2*(cos(theta));
y=y0+(sr+sl)/2*(sin(theta));
new_position=[x,y,theta];

end

Contact us at files@mathworks.com