使用SolidWorks、MATLAB/Simulink和Unity实现虚拟现实中动态系统的仿真和可视化

Ismail Akharas, M. Hennessey, Eric Tornoe
{"title":"使用SolidWorks、MATLAB/Simulink和Unity实现虚拟现实中动态系统的仿真和可视化","authors":"Ismail Akharas, M. Hennessey, Eric Tornoe","doi":"10.1115/IMECE2020-23485","DOIUrl":null,"url":null,"abstract":"\n This paper introduces a novel method for playing dynamic animations of rigid body assemblies with internal motions in virtual reality (VR). Through previous research over a decade ago, an inexpensive, relatively straight-forward process has been developed that entailed using SolidWorks, MATLAB/Simulink, and movie player software to permit one to view 2D MP4 files, such as on a laptop, smart phone, etc. Inspired by the usefulness of these previous results, the approach presented here targets a VR environment, clearly representing a technological leap over viewing 2D MP4 files. It’s made possible by recent advances in VR & gaming software (e.g. Unity) along with some unique software interfacing, including use of CADLink, to permit importation of CAD files, such as from SolidWorks, into Unity. Those interested in VR visualization of their dynamic system can use the step-by-step process presented as a manual to guide them through the hardware and software setup and ultimately learn how to use SolidWorks, MATLAB/Simulink, and Unity interactively to visualize their simulations in VR. Another key point is that the analyst has considerable control and access over each step in the process, including the dynamic modeling, unlike that commonly found in large, structured dynamic simulation software packages.\n As an example to illustrate the process, a dynamic simulation of a classic pendulum/slider system was created using MATLAB/Simulink, which in effect numerically solves the ordinary differential equations of motion. The time-dependent displacement data for both the slider’s lateral movement and the pendulum’s angle, along with a time vector in incremental difference form, was saved as an Excel file. In turn, it was read by a C# script residing within Unity to permit an animation playback scenario of the SolidWorks CAD model of the entire pendulum/slider system (previously brought into Unity via CADLink with some reassembly), viewed more generally as an assembly with internal motions. Unity, a popular open-source piece of VR game development software used to produce both 2D and 3D video games and simulations, then serves as a platform to access the virtual world with the aid of an Oculus Rift (or Quest) VR headset and two hand controllers. In the end, the VR viewer can physically move around in the VR environment while at the same time view the playback motion of the pendulum/slider system from varying vantage points, just as one would expect in the real world. This work significantly advances the typical visualization experience with respect to dynamic system simulation & animation in addition to being widely applicable to generic mechanical assemblies.","PeriodicalId":23585,"journal":{"name":"Volume 7A: Dynamics, Vibration, and Control","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2020-11-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Simulation and Visualization of Dynamic Systems in Virtual Reality Using SolidWorks, MATLAB/Simulink, and Unity\",\"authors\":\"Ismail Akharas, M. Hennessey, Eric Tornoe\",\"doi\":\"10.1115/IMECE2020-23485\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"\\n This paper introduces a novel method for playing dynamic animations of rigid body assemblies with internal motions in virtual reality (VR). Through previous research over a decade ago, an inexpensive, relatively straight-forward process has been developed that entailed using SolidWorks, MATLAB/Simulink, and movie player software to permit one to view 2D MP4 files, such as on a laptop, smart phone, etc. Inspired by the usefulness of these previous results, the approach presented here targets a VR environment, clearly representing a technological leap over viewing 2D MP4 files. It’s made possible by recent advances in VR & gaming software (e.g. Unity) along with some unique software interfacing, including use of CADLink, to permit importation of CAD files, such as from SolidWorks, into Unity. Those interested in VR visualization of their dynamic system can use the step-by-step process presented as a manual to guide them through the hardware and software setup and ultimately learn how to use SolidWorks, MATLAB/Simulink, and Unity interactively to visualize their simulations in VR. Another key point is that the analyst has considerable control and access over each step in the process, including the dynamic modeling, unlike that commonly found in large, structured dynamic simulation software packages.\\n As an example to illustrate the process, a dynamic simulation of a classic pendulum/slider system was created using MATLAB/Simulink, which in effect numerically solves the ordinary differential equations of motion. The time-dependent displacement data for both the slider’s lateral movement and the pendulum’s angle, along with a time vector in incremental difference form, was saved as an Excel file. In turn, it was read by a C# script residing within Unity to permit an animation playback scenario of the SolidWorks CAD model of the entire pendulum/slider system (previously brought into Unity via CADLink with some reassembly), viewed more generally as an assembly with internal motions. Unity, a popular open-source piece of VR game development software used to produce both 2D and 3D video games and simulations, then serves as a platform to access the virtual world with the aid of an Oculus Rift (or Quest) VR headset and two hand controllers. In the end, the VR viewer can physically move around in the VR environment while at the same time view the playback motion of the pendulum/slider system from varying vantage points, just as one would expect in the real world. This work significantly advances the typical visualization experience with respect to dynamic system simulation & animation in addition to being widely applicable to generic mechanical assemblies.\",\"PeriodicalId\":23585,\"journal\":{\"name\":\"Volume 7A: Dynamics, Vibration, and Control\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2020-11-16\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Volume 7A: Dynamics, Vibration, and Control\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1115/IMECE2020-23485\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Volume 7A: Dynamics, Vibration, and Control","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1115/IMECE2020-23485","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

介绍了一种在虚拟现实(VR)中播放具有内运动的刚体组件动态动画的新方法。通过十多年前的研究,已经开发了一种便宜的,相对直接的过程,需要使用SolidWorks, MATLAB/Simulink和电影播放器软件来允许人们查看2D MP4文件,例如在笔记本电脑,智能手机等上。受到这些先前结果的启发,这里提出的方法针对VR环境,显然代表了观看2D MP4文件的技术飞跃。VR和游戏软件(如Unity)的最新进展以及一些独特的软件接口,包括使用CADLink,允许将CAD文件(如从SolidWorks)导入Unity,使其成为可能。那些对其动态系统的VR可视化感兴趣的人可以使用作为手册的逐步过程来指导他们完成硬件和软件设置,并最终学习如何使用SolidWorks, MATLAB/Simulink和Unity交互式地可视化他们在VR中的模拟。另一个关键点是,分析人员对过程中的每个步骤都有相当大的控制和访问权,包括动态建模,这与大型结构化动态仿真软件包中常见的情况不同。为说明这一过程,利用MATLAB/Simulink对经典摆滑系统进行了动力学仿真,实际上是数值解出了运动常微分方程。滑块横向运动和摆摆角度随时间变化的位移数据,以及增量差分形式的时间矢量,保存为Excel文件。反过来,它被驻留在Unity中的c#脚本读取,以允许整个摆/滑块系统的SolidWorks CAD模型的动画播放场景(以前通过CADLink与一些重组带入Unity),更一般地视为具有内部运动的组装。Unity是一款流行的开源虚拟现实游戏开发软件,用于制作2D和3D视频游戏和模拟,然后作为一个平台,在Oculus Rift(或Quest)虚拟现实头盔和两个手部控制器的帮助下进入虚拟世界。最后,VR观看者可以在VR环境中移动,同时从不同的有利位置观看钟摆/滑块系统的回放运动,就像人们在现实世界中所期望的那样。除了广泛适用于一般机械装配外,这项工作还显著地推进了动态系统仿真和动画方面的典型可视化经验。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
Simulation and Visualization of Dynamic Systems in Virtual Reality Using SolidWorks, MATLAB/Simulink, and Unity
This paper introduces a novel method for playing dynamic animations of rigid body assemblies with internal motions in virtual reality (VR). Through previous research over a decade ago, an inexpensive, relatively straight-forward process has been developed that entailed using SolidWorks, MATLAB/Simulink, and movie player software to permit one to view 2D MP4 files, such as on a laptop, smart phone, etc. Inspired by the usefulness of these previous results, the approach presented here targets a VR environment, clearly representing a technological leap over viewing 2D MP4 files. It’s made possible by recent advances in VR & gaming software (e.g. Unity) along with some unique software interfacing, including use of CADLink, to permit importation of CAD files, such as from SolidWorks, into Unity. Those interested in VR visualization of their dynamic system can use the step-by-step process presented as a manual to guide them through the hardware and software setup and ultimately learn how to use SolidWorks, MATLAB/Simulink, and Unity interactively to visualize their simulations in VR. Another key point is that the analyst has considerable control and access over each step in the process, including the dynamic modeling, unlike that commonly found in large, structured dynamic simulation software packages. As an example to illustrate the process, a dynamic simulation of a classic pendulum/slider system was created using MATLAB/Simulink, which in effect numerically solves the ordinary differential equations of motion. The time-dependent displacement data for both the slider’s lateral movement and the pendulum’s angle, along with a time vector in incremental difference form, was saved as an Excel file. In turn, it was read by a C# script residing within Unity to permit an animation playback scenario of the SolidWorks CAD model of the entire pendulum/slider system (previously brought into Unity via CADLink with some reassembly), viewed more generally as an assembly with internal motions. Unity, a popular open-source piece of VR game development software used to produce both 2D and 3D video games and simulations, then serves as a platform to access the virtual world with the aid of an Oculus Rift (or Quest) VR headset and two hand controllers. In the end, the VR viewer can physically move around in the VR environment while at the same time view the playback motion of the pendulum/slider system from varying vantage points, just as one would expect in the real world. This work significantly advances the typical visualization experience with respect to dynamic system simulation & animation in addition to being widely applicable to generic mechanical assemblies.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Hardware-in-the-Loop Simulation for Large-Scale Applications Multi-Degree-of-Freedom Modeling for Electric Powertrains: Inertia Effect of Engine Mounting System On Structural Damping Characteristics in the Electro-Mechanical Impedance Method A Framework for Spatial 3D Collision Models: Theory and Validation Deep Neural Network Real-Time Control of a Motorized Functional Electrical Stimulation Cycle With an Uncertain Time-Varying Electromechanical Delay
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1