Error in initializing of unreal engine simulation
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Nishan Nekoo
2024-6-17
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!