MATLAB System block 'SCRRefere​nceApplica​tion/Simul​ation 3D Vehicle with Ground Following/Simulation 3D Vehicle' error occurred when invoking 'stepImpl' method of 'Simulation3D

When i use matlab 2021a and unreal engine 4.23 for simulation,in unreal editor model ,the question is appear.
The details of the error are as follows:
MATLAB System block 'SCRReferenceApplication/Simulation 3D Vehicle with Ground Following/Simulation 3D Vehicle' error occurred when invoking 'stepImpl' method of 'Simulation3DVehicleTerrainFb'. The error was thrown from '
'D:\Program Files\MATLAB\R2021a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DVehicleTerrainFb.p' at line 0
'D:\Program Files\MATLAB\R2021a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DVehicleTerrainFb.p' at line 0'.
The 3D vehicle no longer detects the ground. Review scene limits or initial position.

2 commentaires

Hello, was this a custom map that you were using? Can you provide more details about your workflow?
猛
le 8 Août 2023
Modifié(e) : le 8 Août 2023
Thank you for your reply. I used custom map. I first built a road model in RoadRunner, then exported it as fbx file, and then imported it into UE. Using vdynblks/SceneInterrogationReferenceApplicationExample as the Simulink model, operating model and then open the Ureal Editor click play. The vehicle model appears, but it does not appear on the road, then the simulation stops and the Diagnostics Viewer displays the following error:
The Ureal Editor displays the following screen before the error is reported:

Connectez-vous pour commenter.

 Réponse acceptée

This error appears because the vehicle is initialized outside the scene limits. It appears that you are not initializing the initial position of the vehicle correctly: https://www.mathworks.com/help/driving/ref/simulation3dvehiclewithgroundfollowing.html#mw_38d9dce2-9b3a-4028-9ae9-ecc2ea8e8674
Please set the parameter from the link above in the "Simulation 3D Vehicle with Ground Following" block so that the vehicle is iniitalized within the scene limits.

7 commentaires

Hello Nishan,
I have the same problem. I I first built a road model in RoadRunner, then exported it as fbx file, and then imported it into UE. The car appears on the street but i get the error nevertheless. Do you know how to fix it?
Hi @Jakob Meißner, it is hard to tell but from the image it looks like the height that the vehicle is initialized may be slightly below the surface of the road, can you try to initialize the vehicle higher up (higher z value) so that the wheels appear fully above the road at t = 0?
If this does not work, can you please send your FBX file and Simulink model so that we can reproduce this error? What version of MATLAB are you using?
see attached the files. I tried to initialize the vehicle higher up but it didnt work. When I add a vehicle at the same point in RoadRunner it works. I use Matlab R2023a.
Thank you
Hi Jakob, I just wanted to clarify your workflow since I was able to get this to work fine without an error.
  1. From Simulation 3D Scene Configuration, select Open Unreal Editor for a project that already exists
  2. In Unreal Editor, import the FBX file using File > Import into Level
  3. Reparent Blueprint as described here: https://www.mathworks.com/help/driving/ug/customize-scenes-using-simulink-and-unreal-editor.html#mw_bbd01c58-e04a-4fd5-9693-a4a23b9b0323
  4. Run the simulation in Simulink and click Play in Unreal
Following just these steps, I did not get any error and the simulation runs for 10 seconds.
Are you doing something different from the above?
Nishan
I have a simillar problem. I build my own Roadrunner scene a import it into Unreal engine (i followed the video https://www.youtube.com/watch?v=qKQ9NwoPpb4 ) but I have the same error. However, my car in simulation has the proper initial position (parameter of z axis is slighty higher - to be sure car is on the track) as you can see on the picture. I use Matlab 2023b, UE 4.27.2, Roadrunner 2023b
Hi @Igor Kevický, I have the same problem as you, have you solved this issue?
Hi @zk and @Igor Kevický without having access to your specific RoadRunner scene and Simulink models, it might be difficult to identify what exactly is causing this. I would recommend reaching out to our MathWorks Technical Support team for assistance with this at support@mathworks.com, and they will be able to assist you.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by