About VR removed in future versions of MAtlab/Simulink and connection with Unreal engine

13 vues (au cours des 30 derniers jours)
Hi!
So I saw that in the next versions of Matlab/Simulink, the blocks related to virtual reality (vr sink etc.) will be removed. Now I have built the GUI in the virtual world which then goes with Simulink desktop real time, connected via UDP to a planar robot exchanging data etc.
I have seen that it is recommended for future versions to use Simulink 3d animation with unreal engine, now the problem I am experiencing for example if I use the "Simulation 3 scene configuration" block is that it does not connect to unreal (because of plugins I cannot find, for example "Mathworks interface"). I am using Matlab version 2023b and Unreal engine 5.4.1. Please let me know if anyone has already tried it or can help me thank you very much.
Here in the picture I have attached what my interface looks like in the VR sink block, I wanted to understand how I could translate this with the simulink 3D and unreal engine blocks, thank you

Réponse acceptée

Nishan Nekoo
Nishan Nekoo le 10 Mai 2024
Hi Giada, thank you for reaching out about this! Specific versions of MATLAB can only be used with specific versions of Unreal Engine. For example, MATLAB R2024a only works with Unreal Engine 5.1. See more documentation here: https://www.mathworks.com/help/sl3d/unreal-engine-simulation-environment-requirements-and-limitations.html
However, I am wondering if your workflow even requires the Unreal Editor at all. You have access to Unreal Engine within the MATLAB environment (without needing to download Unreal Engine separately) and I am wondering if you can just leverage that for your workflow (see the examples below).
For example, you can use the Simulation 3D Actor block to create graphical primitives as in the picture you are showing. Here's a simple example using Simulink: https://www.mathworks.com/help/sl3d/build-actor-3d-graphic-primitives-using-simulink.html but you can also use MATLAB to do this programmatically: https://www.mathworks.com/help/sl3d/build-actor-from-3d-graphic-primitives-using-matlab.html
I hope that helps and please let me know if you have any other questions, I am happy to help with your transition from the virtual reality functionality to Unreal Engine functionality. If you have any features to request or run into any issues, definitely reach out as well because we want to make sure you are supported through this transition!
Nishan
  13 commentaires
Nishan Nekoo
Nishan Nekoo le 18 Mai 2024
Modifié(e) : Nishan Nekoo le 18 Mai 2024
Hi Giada, using 3D graphics with Unreal in a Real Time use case is definitely possible, but the configuration and interfaces will need to be set up correctly. Please refer to this video from around 6:00 onwards: https://www.mathworks.com/videos/hardware-in-the-loop-simulation-1698333473102.html
What blocks are you using in your model from SDRT? Can you tell me more about your workflow and what hardware/communication interfaces you are using?
Please reach out to me directly or contact support@mathworks.com for any additional questions. Without being able to see your model via screenshare or understand the rest of your model/workflow, it is a little tricky for me to find the right answers for you.
Nishan
Giada Parodi
Giada Parodi le 22 Mai 2024
Modifié(e) : Giada Parodi le 22 Mai 2024
Hi Nishan, look I tried to follow the webinar you sent me, but there the model configuration is for simulink real time, not desktop real time. So it is not specific for my problem. I will attach my model, please let me know.
With SDRT is giving me this error "The selected system target file 'sldrt.tlc' is not currently supported for concurrent execution."

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulation dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by