大工至善|大学至真分享 http://blog.sciencenet.cn/u/lcj2212916

博文

[转载]【源码】简单的二维运动车辆转向模型与动画

已有 1654 次阅读 2019-2-25 18:44 |系统分类:科研笔记|文章来源:转载


该仿真模型求解了固定地形框架下简单车辆运动的XY位置,并用Matlab图形对结果进行可视化。

This Simulink model solves for the fixed terrain frame's XY position of the simple kinematic vehicle motion and visualizes the result using Matlab graphics. 


Simulink模型的基本模拟时间步长为h_fixed=0.05(s)或50ms。

The Simulink model's base simulation timestep is h_fixed=0.05(s), or 50ms.


在一台2GHz的Dell Inspiron笔记本电脑上,该模型以20fps到30fps的动画帧速率实现近实时的运算操作。

On a 2Ghz Dell Inspiron laptop this model achieves near real-time operation at animation frame rates of 20fps to 30fps.


Ackermann转向关系delta_Ack = L / R是轴距长度L和轮距W车辆的近似值,在恒定半径圆上以低速转动时不会打滑。

The Ackermann steering relationship delta_Ack = L / R is an approximation for a vehicle of wheelbase length L and track width W turning without slipping on a constant radius circle at low speed.


首先解压缩.zip文件,将目录更改为解压缩的文件夹,然后在Matlab命令提示下运行setup.m。

Get started by unzipping the .zip file, changing directories to the folder, then running setup.m at the Matlb command prompt. 


这将清空工作区,然后用运行Simulink模型和相关动画所需的变量填充该工作区。

This will clear the workspace then populate it with the necessary variables to run the Simulink model and associated animation. 


同时还将打开Simulink模型文件。

It will also open the Simulink model file.


参考文献:

(1) Thomas Gillespie, Fundamentals of Vehicle Dynamics, SAE, 1992 
(2) Milliken and Milliken, Race Car Vehicle Dynamics, SAE, 2005 
(3) J. Y. Wong, Theory of Ground Vehicles, 4th Ed., Wiley, 2008


完整源码下载地址:

http://page2.dfpan.com/fs/flcbj2b21c29416bae1/  


更多精彩文章请关注微信号:qrcode_for_gh_60b944f6c215_258.jpg




https://blog.sciencenet.cn/blog-69686-1164168.html

上一篇:[转载]【Jennifer Wortman Vaughan】感知器算法
下一篇:[转载]【新书推荐】【2019.12】在网络战争中幸存(第二版)
收藏 IP: 60.169.30.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-9-27 23:31

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部