function u=Dynamics(Tr,Tl,v,omega,theta)
m=10; % The robot mass
Ra=0.05; % The radius of the wheels
a=0.05; % The distance between the center of mass and wheels axis
L = 0.5; % The lateral distance of the wheels to the center
J=5; % The robot mass moment of inertia
M=[m 0 m*a*sin(theta);
0 m -m*a*cos(theta);
m*a*sin(theta) -m*a*cos(theta) J];
V=[0 0 m*a*omega*cos(theta);
0 0 m*a*omega*sin(theta);
0 0 0];
S=[cos(theta) -a*sin(theta);
sin(theta) a*cos(theta);
0 1];
B=[cos(theta)/Ra cos(theta)/Ra;
sin(theta)/Ra sin(theta)/Ra;
L/Ra -L/Ra];
Sdot=[-omega*sin(theta) -a*omega*cos(theta);
omega*cos(theta) -a*omega*sin(theta);
0 0];
Mh=S'*M*S;
Vh=S'*M*Sdot+S'*V'*S;
Bh=S'*B;
T=[Tr;Tl];
ve=[v;omega];
vdot=inv(Mh)*(T-Vh*ve);
u=[vdot(1);vdot(2)];
没有合适的资源?快使用搜索试试~ 我知道了~
87361021differential-drive-robot.rar_Wheeled Mobile Robot_differ
共3个文件
m:2个
mdl:1个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 177 浏览量
2022-07-15
20:47:58
上传
评论
收藏 14KB RAR 举报
温馨提示
a differential drive simulation using matlab, cinematic modelisation
资源详情
资源评论
资源推荐
收起资源包目录
87361021differential-drive-robot.rar (3个子文件)
ToTal
Dynamics.m 769B
slprj
_sfprj
test
_self
sfun
src
f3
_self
sfun
src
ToTal
_self
sfun
src
total.mdl 68KB
Kinematics.m 200B
共 3 条
- 1
四散
- 粉丝: 49
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0