Custom scene simulation using unreal engine
13 views (last 30 days)
Show older comments
I have created a scenario using roadrunner and combined it with unreal engine. When I run the simulation with unreal editor selected in the 3d scene configuration block. I am getting following error. Although I have selected same initial position as the driving scenario design file.
Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
MATLAB System block 'untitled/Simulation 3D Vehicle with Ground Following/Simulation 3D Vehicle' error occurred when invoking 'stepImpl' method of 'Simulation3DVehicleTerrainFb'. The error was thrown from '
'C:\Program Files\MATLAB\R2023a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DVehicleTerrainFb.p' at line 0
'C:\Program Files\MATLAB\R2023a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DVehicleTerrainFb.p' at line 0'.
The 3D vehicle no longer detects the ground. Review scene limits or initial position.
0 Comments
Answers (5)
Nishan Nekoo
on 8 Aug 2023
This error appears because the vehicle is initialized outside the scene limits or if the scene has a hole in the ground. It may be 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.
If this does not resolve your error, please send a screenshot of the Unreal visualization to show where the vehicle is initialized.
2 Comments
Nishan Nekoo
on 9 Aug 2023
Hi Tirth, it might be difficult to debug this issue via a chat thread. I'd recommend you reach out to our Tech Support team who can work directly with you to resolve your specific issue.
Does the same error appear no matter what initial position you use or does it work for other initial positions?
Are you referring to this example: https://www.mathworks.com/help/driving/ug/highway-lane-following-with-intelligent-vehicles.html. The documentation contains a lot of detail about the subsystems, please read through and reach out with specific questions if you have them.
saurav seetharam
on 14 Jul 2023
hii,
i am facing the same issue too. could there be a solution to this error.
thankyou
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!