Assertion failed: VehMesh != nullptr UE-AutoVrtlEnv

10 次查看(过去 30 天)
I was trying to simulate theVTOLTiltrotor in Unreal Engine. Whenever I tried to run the simualtion using Default Scenes in Simulation 3D Engine block I am facing this error
Assertion failed: VehMesh != nullptr
[File:C:\TEMP\Bsim3d_2535942_3008\AutoVrtlEnv\Plugins\MathWorksSimulation\Source\MathWorksSimulation\Private\Sim3dVeh.cpp] [Line:
254]
Failed to load
SkeletalMesh'/Game/Maps/VTOLDEMO/VTOLAsset.VTOLAsset'. Please
specify a valid mesh path.
I tried everything, I followed all the steps made sure the verison of Matlab and Unreal Engine are compatible with each other. I am just trying to use the default packages without any modifications to the code.
I tried uninstalling and installing both matlab and unreal engine also tried in another system with fresh installation, even tried running both Matlab and Unreal Engine with admin privileges.

回答(1 个)

Nishan Nekoo
Nishan Nekoo 2025-4-22
Hi @Chaithanya Chowdhary, what version of MATLAB are you using?
If its R2024b, did you follow all the instructions on this page? https://www.mathworks.com/help/uav/ug/visualize-vtol-flight-mission-over-urban-environment.html
You will need to manually import the VTOL Vehicle into Unreal Engine to use it in Unreal Engine Scenes. In particular, this instruction on modifying the path in the VTOL block is important:
To copy the reference path to this asset, right-click the VTOLAsset skeletal mesh object in Content Browser pane and click Copy Reference.
In the Simulation 3D UAV Vehicle block of the Photorealistic subsystem, set the Type parameter to Custom and then set the Path to custom mesh parameter to the reference path.
Hope that helps,
Nishan
  9 个评论
Chaithanya Chowdhary
Hey @Nishan Nekoo I copied the reference of VTOL and used the reference path in the Simulation 3D UAV Vehicle block. But still the error is same. If the disable the MathworkInterface plugin in the project, atleast I was able to run the level in the Unreal Editor. But the simulation is not working.
Thanks for your support and appreciate your effort in helping me in resolving the issue.
I will email support team detailing the issue.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by