[SimMechanics Gen 2] Translation in global world frame

1 visualización (últimos 30 días)
H
H el 15 de Sept. de 2014
Respondida: Steve Miller el 29 de Oct. de 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!

Respuestas (1)

Steve Miller
Steve Miller el 29 de Oct. de 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

Categorías

Más información sobre Simscape Multibody en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by