Error Simulating Model When Enabling the 3D Engine in MATLAB R2020b

19 views (last 30 days)
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.

Answers (3)

Sunil Patidar
Sunil Patidar on 6 Nov 2020
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.
  1 Comment
Jiangfeng Liu
Jiangfeng Liu on 6 Nov 2020
Thanks for your answer, but I have already Unreal v4.23.1. Is that possible, that I have missed some configurations for matlab or Unreal?

Sign in to comment.


Chenhao Yang
Chenhao Yang on 26 Apr 2021
did you found any way to solve this problem? I am still facing it...
  4 Comments
丁文 薛
丁文 薛 on 22 Mar 2022
我运行这个示例时,点击simulink的运行,等到左下角提示正在初始化,以及诊断窗口提示在虚幻引擎里点击play时,再点击虚幻引擎的play才能正常使用示例。如果只点击simulink的运行,一直不点击虚幻引擎的play,过几分钟就会有这个错误产生,应该是因为没有虚幻引擎的响应导致simulink认为连接没有建立。如果过早点击虚幻引擎的play可能也有问题,我没有尝试。
Steven Lord
Steven Lord on 22 Mar 2022
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.

Sign in to comment.


Juri Stadler
Juri Stadler on 10 Feb 2022
Updating Matlab 2020b to Version 7 worked for me.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!