Point on surface constraints connection issue.

2 ビュー (過去 30 日間)
Muhammad Bilal Javaid
Muhammad Bilal Javaid 2023 年 10 月 27 日
編集済み: akshatsood 2023 年 11 月 10 日
I want to connect follower pin of rigid transform with the base pin of point on surface contact but it is not connecting to each other why? How can do to connect it with the base of that block. I think it is the incompatible connection but I have to connect it.

回答 (1 件)

akshatsood
akshatsood 2023 年 11 月 10 日
編集済み: akshatsood 2023 年 11 月 10 日
I understand that you want to connect follower pin of "Rigid Transform" block with the base pin of "Point on Surface Constraint" block. However, a direct connection is not possible due to difference in the nature of the ports. Have a look at the snapshots attached below for both the blocks.
For "Rigid Transform" block, both B and F are frame ports that represent base and follower frames respectively.
For "Point on Surface Constraint" block, B is a geometry port while F is a frame port.
Due to differences in the data types propagated by the frame port and the geometry port, it is not feasible to connect them together. Further, you can also observe the incompatibility by using the code for connecting these two blocks. Here is the code snippet for your reference
p1 = get_param(rigidTransform, 'PortHandles');
p2 = get_param(pointOnSurfaceConstraint, 'PortHandles');
add_line(gcs, p1.LConn, p2.RConn);
On executing the above code, you will get the following error which justifies why the connection is not possible.
The points input must only create line connections that follow connection rules of the
appropriate Physical Modeling domains
I hope this helps.

カテゴリ

Help Center および File ExchangeAssembly についてさらに検索

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by