Custom scene simulation using unreal engine

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.

Respuestas (5)

Nishan Nekoo
Nishan Nekoo el 8 de Ag. de 2023

1 voto

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 comentarios

hi Thank you for your reply, but sometimes it still gives the error even if initial position is same as the first waypoints defined in the driving scenario designer. For me It is working for one custom map only. when I try new design of map and follow the same step i did earlier then The vehicle spawns in the correct point in unreal engine and then simulation stops with no ground found error.
It would be great if mathworks gives more detailed information with example on highway lane following with intelligent vehicle. Because it contains lane detection, a kind of ACC controller, camera radar, etc.
Thank you
Nishan Nekoo
Nishan Nekoo el 9 de Ag. de 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.

Iniciar sesión para comentar.

Boyka He
Boyka He el 14 de Jul. de 2023

0 votos

Any updates on this problem ? Coz I have the same problem.
saurav seetharam
saurav seetharam el 14 de Jul. de 2023

0 votos

hii,
i am facing the same issue too. could there be a solution to this error.
thankyou
Tirth Maheshkumar Shah
Tirth Maheshkumar Shah el 15 de Jul. de 2023

0 votos

However, I am still having issue with example, highway intelligent vehicle lane following. In that new scenario is not working for me. If anyone find the solution please let me know .

2 comentarios

ROHAN PADMANABHA
ROHAN PADMANABHA el 15 de Jul. de 2023
still the same ...everything done as per the video.
for me its working.

Iniciar sesión para comentar.

Productos

Versión

R2023a

Preguntada:

el 15 de Mayo de 2023

Comentada:

el 9 de Ag. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by