이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
Can Unreal physics engine be used for simulink models to verify the physics of simulation
조회 수: 7 (최근 30일)
이전 댓글 표시
I recently saw that there is a visualisation block in simulink. It helps to visualise simulink models in a virtual environment of Unreal scenes. I want to know is this visualisation only for photo realistic or it includes physics too (Eg:- Gravity, collisions etc). This is incase of using Prebuilt Unreal scenes that Simulink uses. Looking forward for the response.
채택된 답변
Nishan Nekoo
2023년 10월 10일
The answer is yes, it does include physics and is not just for visualization only!
With reference to this documentation page: https://www.mathworks.com/help/sl3d/scenario-simulation.html
You can use Simulink and MATLAB interfaces to "Access advanced features available in the Unreal Engine, such as collision detection, and the physics engine..."
A basic example:
More complex example and associated webinar series:
댓글 수: 17
VIGNESH BALAJI
2023년 10월 17일
Thanks a lot for providing a detailed information on this. I am interested in the Physics engine feature of Unreal engine. I have a follow up on this, I saw that Unreal scenes can be used with Simulink in 3 ways -
- Using inbuilt scene in Simulink
- Using a custom compiled scene in Simulink
- Using Co-Simulation at the same time running both Unreal and Simulink
Can I use the Physics engine in all the three methods or ways ?
VIGNESH BALAJI
2023년 10월 18일
Thanks a lot for your reply, can you suggest me some inbuit scenes for water interaction and a quadrotor.
Nishan Nekoo
2023년 10월 18일
Unfortunately we do not have any inbuilt scenes for water interaction right now.
VIGNESH BALAJI
2024년 2월 9일
Can I model ropes with unreal ? Is there any examples for it with matlab available ?
Nishan Nekoo
2024년 2월 9일
Hi Vignesh, unfortunately we do not have any examples of modeling ropes (or any other deformable body) with MATLAB in the Unreal environment. Depending on your use case, perhaps the rope behavior can be approximated using multiple primitives linked together heirarchically.
Can you provide more information on what you are hoping to model here?
VIGNESH BALAJI
2024년 2월 9일
Sure, I can provide you a detailed information on it.
I am trying to model hanging ropes (catenaries) which are moving slowly (quasi-statically) in space as their end points move slowly (0.5 m/s) the hanging cable also moves.
I built a simulink model for it with analytical equations for a catenary and did optimisation of potential energies to always get the right shape of the hanging cable. Although the model is working, I have attached a video below as a zip file for your reference. Please take a look at it.
I would like to have a physical simulator (which acts like a model) to verify my correctness of my numerical calculations in my model and it can also be used for my further development to verify the model I am developing.
I hope I explained it. Please do let me know if you have any questions about what I am trying to do.
Nishan Nekoo
2024년 2월 9일
편집: Walter Roberson
2024년 2월 20일
Hi Vignesh,
I think the most effective way to model this in Unreal is to use the Cable Component from Unreal: https://docs.unrealengine.com/4.27/en-US/Basics/Components/CableComponent/
You would need to carefully tune the parameters of the cable and the physics settings in Unreal to get realistic physical behavior.
You can control the movement of those Cable Components from Simulink by following a similar process to the one described in this video: https://www.youtube.com/watch?v=fNd0fVYxkGg&ab_channel=MATLAB
I hope that helps, all the best!
Nishan
VIGNESH BALAJI
2024년 2월 9일
Thanks a lot for the suggestion and resources.
Once, I make this I can put it out as a FEX package like an open source plugin in the community for others to use it for their works.
I do have 2 questions -
- Does Simulink have a direct connection to Unity just like Unreal ?
- I heard Unity has better Cable modelling than Unreal like Obi Rope package ?
Please let me know.
Nishan Nekoo
2024년 2월 9일
Unfortunately, we do not have a similar interface to Unity using Simulink 3D Animation. However, you can use the ROS Toolbox to connect to Unity such as in this example: https://www.mathworks.com/help/ros/ug/pick-and-place-workflow-in-unity-3d-using-ros.html.
I am not familiar with the cable modelling capabilities in either Unreal or Unity so I cannot comment on this topic.
Nishan
VIGNESH BALAJI
2024년 2월 12일
@Nishan Nekoo
Thanks a lot for the suggestions. I have been looking into Unreal engine with simulink. Can you please let me know if there are examples of multi-rotors (quadrotors) with simulink - Unreal connection examples. I was not able to see it on my initial google search.
Nishan Nekoo
2024년 2월 12일
@VIGNESH BALAJI this page has several examples that use the Simulation 3D UAV Vehicle block which models a quadcopter by default.
VIGNESH BALAJI
2024년 2월 13일
@Nishan Nekoo thanks, I tried the example in a simulink project. I did get an error stating it does not support my operating system Ubuntu. On looking further in Matlab Documentation. It says Unreal co-simulation is only possible in Windows and not available on Ubuntu (Linux). Is it true ?
Further, Is it possible to have Force Sensors for the quadrotors in Unreal simulation ? I saw other sensors in UAV toolbox like Lidar, Camera, Ultrasound etc and no force sensor was available. Please let me know the possibility of force sensor as a lot of things are dependent on it.
I am looking forward for your reply.
Nishan Nekoo
2024년 2월 13일
Unfortunately, Linux is not supported for Unreal co-simulation as of release R2023b. Support for Linux may be added in a future MATLAB release.
The Simulation 3D UAV vehicle only visualizes the UAV given a certain translation and rotation in a 3D environment. To analyze the physical behavior of the quadcopter system, I would recommend using the Quadcopter drone model in Simscape and performing physical modeling of the queadcopter system instead.
VIGNESH BALAJI
2024년 2월 20일
편집: VIGNESH BALAJI
2024년 2월 20일
@Nishan Nekoo can you please help me with the answers for this installation procedure to try out Simulink-Gazebo link - https://nl.mathworks.com/matlabcentral/answers/2082173-unable-to-install-gazebo-plugin-for-simulink-co-simulation?s_tid=prof_contriblnk ?
Nishan Nekoo
2024년 2월 20일
Hi @VIGNESH BALAJI I am not sure about the answer to this question, I would recommend reaching out to our Tech Support team who can work directly with you to resolve the issue.
VIGNESH BALAJI
2024년 2월 21일
@Nishan Nekoo Thanks a lot for your answer. I have contacted them in Installation section. I hope i will receive a reply. Thanks a lot for your help :)
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
