Is there a way to automatically fix misalignment between frames?

1 回表示 (過去 30 日間)
Ajay Anand
Ajay Anand 2022 年 5 月 18 日
コメント済み: Ajay Anand 2022 年 5 月 22 日
Hi everyone,
I am trying to fix the position violation between these two frames but the problem is that the location of these frames can be changed using external parameters.
Therefore, I was wondering if there is a way to automatically perform the rigid transform and avoid having the end user manually change these transformation parameters?
Thank you in advance!

採用された回答

Steve Miller
Steve Miller 2022 年 5 月 22 日
You could try to automate this, but it could be challenging.
Build a model with a Rigid Transform parameterized with MATLAB variables AND a Transform Sensor between the two frames you wish to connect. Log the outputs of the Transform Sensor to identify the offset between the frames
Steps you need to automate in MATLAB
  1. Comment out Rigid Transform
  2. Simulate the model
  3. From the logged simulated results, obtain the first value reported by the Transform Sensor
  4. Change the values of the MATLAB variables to the values reported.
  5. Uncomment Rigid Transform.
Potentially a better way to solve this problem (if possible) is to connect the frames with a joint that will permit a degree of freedom along/about the axis where the offset will occur. Then it doesn't matter if they become misaligned.
--Steve
  1 件のコメント
Ajay Anand
Ajay Anand 2022 年 5 月 22 日
Hi Steve! Thank you for the reply.
I think most likely ill follow you recommendation and use a joint.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by