[SimMechanics Gen 2] Translation in global world frame

1 visualizzazione (ultimi 30 giorni)
H
H il 15 Set 2014
Risposto: Steve Miller il 29 Ott 2021
Hello,
we want to translate a rigid in respect to the world frame with the rigid transform block. But since our base frame is rotated, we always translate in respect to the base frame and not the world frame. Is it possible to translate our object in respect to the world frame, even though our base frame is rotated?
Thanks!

Risposte (1)

Steve Miller
Steve Miller il 29 Ott 2021
Hi H,
The Rigid Transform block always operates relative to the base frame. If you have a parameterization that is relative to the global frame, you need to apply two transforms: one to transform the base frame orientation to be aligned with the World Frame, and then apply a transform to create the new frame using the offset expressed in the World Frame.
This is probably easiest to understand if you use two Rigid Transform blocks. One to reorient Base -> World, and then a second one to translate to the desired location. If the orientation of the Base frame was important to retain, you would need to apply a third transform to orient the Follower frame to match the original Base frame.
This requirement is common in vehicle suspensions, where the hardpoint locations throughout the set of linkages are all relative to a single reference frame. I usually use mask initializations to handle all the orientation changes. You can see a rather elaborate example in the Simscape Vehicle Templates.
Thanks,
--Steve

Categorie

Scopri di più su Simscape Multibody in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by