Editing an Aircraft Actor in Simulink-Unreal Simulation
95 ビュー (過去 30 日間)
古いコメントを表示
Hello,
As part of my project, I am simulating an aircraft using Simulink, and I have set up a Simulink system to communicate with Unreal Engine (as shown in the attached image). The issue I’m facing is that when I open the Unreal project AutoVrtlEnv, which is ported from MATLAB to Unreal, I can edit the airport scene but not the aircraft itself. The aircraft is an actor class that is dynamically spawned in Unreal via the Simulation 3D Aircraft Block.
The problem is that this aircraft actor (as shown in the attached image) does not exist when the simulation is not running—it only appears once the simulation starts. While I can technically edit these dynamically spawned actors by pausing the simulation, any changes I make are lost when the simulation restarts, as the actors are recreated from scratch.
I need to modify the Sim3dMainCamera under the Sim3dMWAirliner actor class. Is there a way to modify or duplicate it so that I can edit it as a separate class without losing my changes?
Any guidance would be greatly appreciated!


6 件のコメント
Nishan Nekoo
約3時間 前
Hi Oscar,
Thanks for the update and I am glad you figured out that it was a calibration issue with the VR Headset, I think that makes sense to me.
To your additional questions:
- I imagine this would be possible via reparenting on initialization via blueprints - but because I don't have experience with VR Headsets, I am not sure what actors get created. If you have that information, you could try to child to the CameraComponent I mentioned in my previous comment at run time, so that their locations are locked to each other. Have you tried something like this and run into specific issues?
- I think the Simulation 3D Message Get is what you are looking for - check out the example at that documentation link. You will need to figure out how to make the headset's view orientation available in Simulink, but I don't imagine that is too difficult once you know what class it is and use some logic similar to what I have above to get the element of that class and extract its orientation data.
I hope that helps!
Nishan
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Aerospace Blockset についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!