Regarding Packaging Unreal Engine Scenes

8 次查看(过去 30 天)
I am trying to build custom scenes with unreal engine and I am able to compile and run the scene executable using scene 3D configuration block.
I want to build these scenes so that they run on another system without the requirement of opening through the scene 3D configuration block.
How can this be done?

回答(1 个)

Nishan Nekoo
Nishan Nekoo 2024-10-9
Hi Ketan,
I understand that you are building a custom scene in the Unreal Editor, and that you are currently compiling that scene into an executable and calling it from the Scene Configuration block using the 'Unreal Executable' selection as a Scene Source.
It sounds like you want to continue building these scenes in the Unreal Editor but maybe you don't want to have to open the Unreal Editor via the Scene Configuration block while you are on a different system? If this is what is being asked, then the solution is to disable the MathWorks plugin in the Unreal Editor when you are not doing co-simulation with Simulink. Then, the Unreal project can be opened without using the Scene Configuration block.
I hope that helps and if that didn't answer your question, please let me know!
Nishan
  3 个评论
Nishan Nekoo
Nishan Nekoo 2024-10-10
Hey Ketan, I see! It sounds like you want your Unreal Engine scene along with your Simulink model and Simulation 3D blocks compiled into an executable. Unfortunately, Simulation 3D blocks do not support code generation for now as mentioned on our limitations page, so this workflow is not supported. Know that we are keenly aware of this limitation and may consider supporting this workflow in a future release.
One potential workaround is to use UDP or ROS to transmit data between Simulink and Unreal instead of Simulation 3D blocks. Then compile the Simulink model (without Simulation 3D blocks) into a DLL and call this from Unreal instead. The downside is that you will need to set up your own communication interfaces and it may not be possible to have lock-step, deterministic simulations.
At a high level can you tell me more about what your use case is for building an executable? Is the executable intended for use by other people? I'd love to learn more about your workflow and project!
Ketan
Ketan 2024-10-11
The aim behind building an executable is to allow multiple people to test the algorithm without needing the matlab installed on every computer. I'll try the suggested procedure.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with Aerospace Blockset 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by