Is there a way to add a graphical only line between two frames in multibody

조회 수: 5 (최근 30일)
Mark
Mark 2024년 10월 30일
댓글: Yifeng Tang 2025년 2월 25일
Is there a way to add a simple line that connects two points or frames that move arbitrarily large distances in space? This is for multibody simulations.
thank you very much
  댓글 수: 1
Sahas
Sahas 2024년 11월 1일
Hi @Mark,
I am not sure that this property currently exists as an inbuilt function or property, but you can try out and combine the following MathWorks documentation links on Assembly, frames and graphic joints and use it as suitable to you:
I hope this is beneficial!

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

답변 (1개)

Yifeng Tang
Yifeng Tang 2024년 11월 7일
편집: Yifeng Tang 2024년 11월 7일
Hi Mark,
I don't think there is a "native" way to do this. I can think of a clunky way of doing this. I don't like it but maybe it's barly sufficient.
The idea is to have a lot of little spheres, say 20 of them, each connected to the world frame via a cartesian joint. The measured positions of the two points can be fed and distributed to these 20 spheres, such that they form a dotted "line" between the two frames. You may be able to use a custom Simcape language block in the PS domain to handle the vectorized algebra. The individual position of the spheres can then be sent to the actuation input of the cartesian joints to move the sphere to the right place to form a dotted line at any moment.
  댓글 수: 2
Mark
Mark 2025년 2월 24일
Is there a way to code our own custom blocks/features in simscape multibody? Adding a simple line between two points graphically really sounds like something basic that we ought to be able to code.
Yifeng Tang
Yifeng Tang 2025년 2월 25일
Multibody, probably no.
One idea just came to me: do you think it's possible to use the pulley and cable in Multibody to create that visual? A spool with negligible inertia at one point, with the other end fixed at the other point. Never tried this. Just a thought.

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

카테고리

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

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by