How to change orientation of the frames in a simscape multibody model?

32 views (last 30 days)
Hi , i am stuck in trying to change the orientation of the frames in simscape multibody. I am trying to specify motion to the joints in a constrained way for which i need the orientation of the frames of the follower and the base at the joints to be same. How should i proceed in achieving the task ? Any suggestions would be helpful . Thank You.

Answers (1)

Steve Miller
Steve Miller on 2 Apr 2019
Hi - if you add a Rigid Transform block to a line, you can create a new frame that is translated and/or rotated relative to your existing frames. Typically, you would connect the B port to the starting frame, set parameters to define the rotational and translational transformations you wish to apply to the existing frame, and the new frame that lines up with what you need will be available at the F port of the Rigid Transform block.
If you look at the shipping examples, these blocks are used in nearly every example. Run >>sm_four_bar, go into the Mechanics Explorer, and click on one of the Rigid Transform entries in the tree view on the left hand side. You will see the 'B' and 'F' frames highlighed in the 3D view. If you compare those to the transformation defined in the Rigid Transform block, you will see how to use that block.
Thanks,
--Steve

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!