- https://www.mathworks.com/help/sm/ug/frames-and-frame-transforms.html
- https://www.mathworks.com/help/sm/ref/graphic.html
- https://www.mathworks.com/help/sm/ug/assembling-multibody-systems.html
Is there a way to add a graphical only line between two frames in multibody
46 ビュー (過去 30 日間)
古いコメントを表示
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
2024 年 11 月 1 日 8:10
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
2024 年 11 月 7 日 7:11
編集済み: Yifeng Tang
2024 年 11 月 7 日 7:11
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simscape Multibody についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!