Simulation 3d Scene Configuration not adding camera to simulinkVehicle when co-simulating with Unreal Engine
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ninad Mahesh
am 28 Jan. 2024
Kommentiert: Ninad Mahesh
am 29 Jan. 2024
Hi,
I have a project in MATLAB/Simulink for Adaptive Cruise Control which I am trying to co-simulate with Unreal Engine for an Output. The co-simulation itself runs fine, but the Camera that is supposed to be attached onto my ego Vehicle from the 'Scene View' Parameter from the 'Simulation 3D Scene Configuration block' does not work. Here is a quick video where the problem can be oberserved.
The expected output is wherein the camera follows the car along the Road like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1602266/image.png)
My simluation output:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1602271/image.png)
I am using Unreal Engine 4.27.2 with all the plugins properly Configured.
0 Kommentare
Akzeptierte Antwort
Nishan Nekoo
am 29 Jan. 2024
Hi Ninad,
Under Edit > Project Settings > Project > Maps and Modes (this path might look different in Unreal Engine 4)
Change the "Default GameMode" setting to Sim3dViewerGameMode and the camera should follow the car along the road.
Let me know if that works for you!
Nishan
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!