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

조회 수: 30 (최근 30일)
Jiangfeng Liu
Jiangfeng Liu 2020년 11월 3일
댓글: Steven Lord 2022년 3월 22일
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.

답변 (3개)

Sunil Patidar
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.
  댓글 수: 1
Jiangfeng Liu
Jiangfeng Liu 2020년 11월 6일
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?

댓글을 달려면 로그인하십시오.


Chenhao Yang
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
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.

댓글을 달려면 로그인하십시오.


Juri Stadler
Juri Stadler 2022년 2월 10일
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!

Translated by