Error in initializing of unreal engine simulation
4 views (last 30 days)
Show older comments
Hello, once i set up all the plugins and applications in order to cosimulate vehicle in unreal engine program. I execute the simulation in both programs (Matlab-Simulink) and Unreal Engine. An appears this problem:
MATLAB System block 'MPC_controller_3/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\R2024a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DVehicleTerrainFb.p' at line 0
'C:\Program Files\MATLAB\R2024a\toolbox\shared\sim3dblks\sim3dblks\Simulation3DVehicleTerrainFb.p' at line 0'.
The 3D vehicle no longer detects the ground. Review scene limits or initial position.
How can i solve this problem?
Im using the block called "Simulation 3D vehicle with Ground Following"
0 Comments
Answers (1)
Nishan Nekoo
on 17 Jun 2024
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!