Linux Plugin "MathWorksSimulation" failed to load because module "MathworksSimulation" could not be loaded
조회 수: 31 (최근 30일)
이전 댓글 표시
My current environment is Ubuntu 20.04, and Matlab 2024b Update 2.
I currently want to customize a default scene of simulink 3d animation, such as the US city block scene, to add a checkerboard so I can calibrate my Lidar and RGB camera mounted on a UAV platform. For this, I understand that I have to customize the default scene using Unreal Engine. Currently, I downloaded the 5.3.0 zip file from their website, and installed it in my root directory, on the default as specified in the documentation here:
Now, firstly, when i use the copyexamplesim3dproject function in matlab to copy the files, my output is:
Copying '/home/hasan/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/sim3dprojects/spkg/plugins/mw_simulation/MathWorksSimulation' to '/UnrealEngine/UnrealEngine-5.3/UnrealEngine/Engine/Plugins/Marketplace/Mathworks/MathWorksSimulation'
Copying '/home/hasan/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/sim3dprojects/spkg/plugins/mw_uav/MathWorksUAVContent' to '/UnrealEngine/UnrealEngine-5.3/UnrealEngine/Engine/Plugins/Marketplace/Mathworks/MathWorksUAVContent'
Copying '/home/hasan/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/sim3dprojects/spkg/plugins/rr_materials/RoadRunnerMaterials' to '/UnrealEngine/UnrealEngine-5.3/UnrealEngine/Engine/Plugins/Marketplace/Mathworks/RoadRunnerMaterials'
Copying '/home/hasan/Documents/MATLAB/SupportPackages/R2024b/toolbox/shared/sim3dprojects/spkg/project/AutoVrtlEnv' to '/home/hasan/UnrealProjects/AutoVrtlEnv'
Ensuring '/home/hasan/UnrealProjects/AutoVrtlEnv/AutoVrtlEnv.uproject' has write permissions
However, when I check the Plugins folder, theres no Marketplace folder created, or any plugins with the mathworks content i can find. The AutovrtlEnv folder and its project did get copied though.
So to counter the lack of plugins, I download the hardware package via the supportsoftwaredownloader, and then copied the plugins manually to the respective folders that the above output shows. After that, I also set unrealeditor as the default for a uproject file, as specified in:
After that, I followed steps 4 and 5. When I did step 5, customized for linux, as shown below:
path = fullfile(getenv('HOME'), 'UnrealProjects', 'AutoVrtlEnv5.3', 'AutoVrtlEnv.uproject')
editor = sim3d.Editor(path)
open(editor)
The code above gives editor=0
as an output and nothing happens.
(My AutoVrtlEnv folder path is: /home/hasan/UnrealProjects/)
If I attempt to open the project file, by clicking on it, it doesn't open, it gives the error:
So I open UnrealEditor on it's own, and try to open the project from there, and I get:
After clicking open a copy, unreal crashes, yet a copy is created where my previous unmigrated AutoVrtlEnv project resided. However, i doubt it worked since i tried opening the migrated file by opening unreal directly again, and it gives me the same "made with a different version of the unreal engine" option. I try opening a copy here again, and this time, it says:
Could be a completely separate issue. I checked the plugins in UnrealEditor after this, and I do find 2 mathworks plugins there. I enable them, and needing a restart, unreal closes but then gives the same message error as shown above about the module "MathWorksSimulation" could not be loaded. Using the Open UnrealEditor button in the Simulink 3d scene configuration block also doesn't seem to work for either projects.
I've tried a few help answers, but I'm on Linux, so I can't exactly run as administrator (sudo matlab doesn't work due to permission denied). I downloaded the 5.3.0 binary from their website. In the end, I want to customize an unreal engine scene and just add a checkerboard pattern to test the Lidar Camera Calibration. Am I missing any environment variables to set? Am I copying things wrong? Is MATLAB not having proper permissions the problem? All of the above? I'd be extremely grateful for any help and a detailed answer, I can't seem to figure out what the issue is.
댓글 수: 0
답변 (1개)
Nishan Nekoo
2024년 12월 3일 20:04
편집: Nishan Nekoo
2024년 12월 3일 20:07
Hello, I am sorry that you are running into issues with setting up the co-simulation. Thank you for the detailed background, I think it will be very helpful in narrowing down the cause of the issue.
It might be a little difficult to debug this issue over MATLAB Answers, so please reach out to support@mathworks.com, provide all the information above, along with the output of the following command:
>> ver -support
Please also provide the log file located in <UE5Project>/Saved/Logs/<UE5Project>.log if available.
We would be happy to investigate this issue.
Nishan
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!