필터 지우기
필터 지우기

How to run Simulink using unreal engine?

조회 수: 3 (최근 30일)
준규 박
준규 박 2022년 10월 4일
답변: Rahul 2023년 6월 15일
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
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
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.

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by