필터 지우기
필터 지우기

How can I visualize a rope that connects 2 points in simulink Virtual Reality vrsink-Block?

조회 수: 1 (최근 30일)
Hello,
I am working on a 3D-Pendulum and already visualized the attachment base and the bob. The movement of the bob is already defined completely through physical force-constraints in simulink and I can visualize the movement in the vrsink-block. Now I would like to visualize the rope, that connects the center of the bob with the attachment point. The rope is modeled as a spring-damper and has variable lenght. Which function do I have to use to visually connect these 2 points?
Thanks in advance!

채택된 답변

Jan Houska
Jan Houska 2021년 2월 28일
편집: Jan Houska 2021년 3월 1일
Hi Lukas,
this depends if you want the rope to be rigid or flexible. If rigid, please use a Cylinder node (a very tall one so it looks like a rope) and move/resize/rotate it using a Transform node. Please note that you cannot specify kinematic joints in Simulink 3D Animation, so you must compute the rotation of the rope and feed it into the Transform node yourself.
Showing a flexible rope is also possible, but it would be quite complex to compute the coordinates so that the rope realistically models the behavior of a flexible rope.
Please take a look at the "vrcrane" family of examples (vrcrane_traj, vrcrane_panel, vrcrane_joystick) to see an example how a rope connecting a crane with a load can be modeled.
Good Luck, Jan
  댓글 수: 1
Lukas Weber
Lukas Weber 2021년 3월 1일
Hello Jan,
thank you for your response. The rope is rigid and I will try modeling it as a cylinder node as you mentioned.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by