- Comment out Rigid Transform
- Simulate the model
- From the logged simulated results, obtain the first value reported by the Transform Sensor
- Change the values of the MATLAB variables to the values reported.
- Uncomment Rigid Transform.
Is there a way to automatically fix misalignment between frames?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ajay Anand
am 18 Mai 2022
Kommentiert: Ajay Anand
am 22 Mai 2022
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!
0 Kommentare
Akzeptierte Antwort
Steve Miller
am 22 Mai 2022
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
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multibody Dynamics finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!