How to run Simulink using unreal engine?
조회 수: 2 (최근 30일)
이전 댓글 표시
I follow this video(Integrating RoadRunner with MATLAB-Simulink Video - MATLAB & Simulink (mathworks.com)).
However, in the last step, when running Simulink and playing Unreal Engine, As shown in the picture below, the vehicle is not created
and only the scene is continuously shown. So how do you make it work like a video?
Additionally, I designed only one vehicle differently from the video, and I uploaded the Simulink design as a capture.
댓글 수: 1
Harshit Gupta
2022년 10월 7일
Are you facing a similar issue when you follow everything exactly as given in the video (i.e. when you don't design even one vehicle differently from the video)?
If the answer to the above question is a yes, then the issue might be because of your camera settings in the Unreal Engine. The camera might be focusing on the road from the front part of the car because of which you are not able to see the car but it is present. If the camera focuses on the road from some offset distance behind the vehicle, you should be able to see the vehicle as well.
답변 (1개)
Rahul
2023년 6월 15일
You need to ensure a couple of steps to get your issue resolved:
Step 1: Ensure you have followed each step to get the simulation working as given in the video- Integrating RoadRunner with MATLAB-Simulink Video - MATLAB & Simulink (mathworks.com)
Step 2: You need to check if the coordinate system of your scene and vehicle are same and the vehicle is placed slightly higher on the road. You can do this by setting the initial position z-coordinate of the Simulation 3D vehicle with Ground following block to be 0.5 or 1.
Step 3: You can also set the Scene view parameter in the Simulation 3D scene configuration block to be the vehicle which you have added the camera to.
Step 4: Once you click play on Unreal Engine, you can control the camera view of the simulation using arrow keys, then you can navigate around and find if you vehicle is appearing anywhere in the scene.
Step 5: If you are using any custom vehicle for the Simulation 3D vehicle with Ground following block, then you should ensure the file is correct.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!