Angle between two planes in simscape
9 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Amit Pandit
le 14 Juil 2020
Réponse apportée : Aman Vyas
le 12 Août 2020
I am building a simscape model four wheel car. For now i want to measure the angle between two planes(wheel and the world frame).Is the any sensors to measure it directly? Any suggestions![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/331892/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/331892/image.png)
0 commentaires
Réponse acceptée
Aman Vyas
le 12 Août 2020
Hi,
Based on my understanding, you can make use of "Transform Sensor" which is is based on axis–angle representation of rotation in Euclidean space.
For arbitrary rotation in Euclidean space, it can be represented as two values: a unit vector and a scalar angle. The resultant rotation is obtained by taking the dot product of these two quantities.
Hence, in the 'Transform Sensor', the output 'q' represents only the angle, which is half the information. To get the complete rotation, you can enable the axis output and use the dot product of the two to obtain correct angular rotation between the two frames or planes.
You can refer to the attached model to look usage of transform sensor.
Hope it helps!
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Simscape Multibody dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!