leftwheelloc.m

来自「该程序用PID系统实现差动转向车辆控制」· M 代码 · 共 11 行

M
11
字号
%% Author: epokh
%% Website: www.epokh.org/drupy
%% This software is under GPL

function leftpos=LeftWheelLoc(position,bw)
%% this function calculate the left wheel position of the robot
theta=position(3);
lx=position(1)+bw/2*cos(theta+pi/2);
ly=position(2)+bw/2*sin(theta+pi/2);
leftpos=[lx,ly];
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?