Error Simulating Model When Enabling the 3D Engine in MATLAB R2020b
18 次查看(过去 30 天)
显示 更早的评论
When I followed the example 'Design Lane Marker Detector Using Unreal Engine Simulation Environment' and ran open_system('straightRoadSim3D') and sim('straightRoadSim3D'),this error occured:
MATLAB System block 'straightRoadSim3D/Simulation 3D Scene Configuration1/Simulation 3D Engine' error occurred when invoking
'resetImpl' method of 'Simulation3DEngine'. The error was thrown from '
'D:\matlab2020b\toolbox\shared\sim3d\sim3d\+sim3d\EngineInterface.p' at line 0
'D:\matlab2020b\toolbox\shared\sim3d\sim3d\+sim3d\Engine.p' at line 0
'D:\matlab2020b\toolbox\shared\sim3d\sim3d\+sim3d\Project.p' at line 0
'D:\matlab2020b\toolbox\shared\sim3dblks\sim3dblks\Simulation3DEngine.p' at line 0'.
Caused by:
3D simulation engine interface setup error.
It used just default scenes, and i am very confused.
0 个评论
回答(3 个)
Sunil Patidar
2020-11-6
Hi,
The version of Unreal required to run the interface with the Vehicle Dynamics Blockset changes based on the MATLAB Release.
In this case, for version R2020b the relevant version of Unreal is v4.23.
Refer to the following documentation page for more information on version-specificity for other MATLAB releases:
Installing the correct version will likely correct the issue reported above.
Chenhao Yang
2021-4-26
did you found any way to solve this problem? I am still facing it...
4 个评论
丁文 薛
2022-3-22
我运行这个示例时,点击simulink的运行,等到左下角提示正在初始化,以及诊断窗口提示在虚幻引擎里点击play时,再点击虚幻引擎的play才能正常使用示例。如果只点击simulink的运行,一直不点击虚幻引擎的play,过几分钟就会有这个错误产生,应该是因为没有虚幻引擎的响应导致simulink认为连接没有建立。如果过早点击虚幻引擎的play可能也有问题,我没有尝试。
Steven Lord
2022-3-22
From Google Translate:
When I run this example, click simulink to run, wait until the bottom left corner prompts that it is initializing, and the diagnostic window prompts to click play in Unreal Engine, and then click Unreal Engine's play to use the example normally. If you only click on the run of simulink and do not click on the play of Unreal Engine, this error will occur after a few minutes. It should be because there is no response from Unreal Engine, which causes simulink to think that the connection has not been established. It might also be a problem if you hit Unreal Engine's play too early, which I didn't try.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!