Custom scene simulation using unreal engine

11 次查看(过去 30 天)
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.

回答(5 个)

Nishan Nekoo
Nishan Nekoo 2023-8-8
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 个评论
Tirth Maheshkumar Shah
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 2023-8-9
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.

请先登录,再进行评论。


Boyka He
Boyka He 2023-7-14
Any updates on this problem ? Coz I have the same problem.

ROHAN PADMANABHA
ROHAN PADMANABHA 2023-7-14
i also need the answer to this error.

saurav seetharam
saurav seetharam 2023-7-14
hii,
i am facing the same issue too. could there be a solution to this error.
thankyou

Tirth Maheshkumar Shah
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 .

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by