addFrame
Class: simscape.multibody.RigidBody
Namespace: simscape.multibody
Description
addFrame(
adds a new frame to a rb
,newFrame
,parentFrame
,T
)simscape.multibody.RigidBody
object through a simscape.multibody.RigidTransform
object. Note that the new frame is rigidly
attached to a top-level frame of the RigidBody
object, and the newly added
frame does have a connector by default. To add a connector to a frame, use addConnector
method.
The rb
argument is the RigidBody
object to which you
add the new frame. The newFrame
argument specifies the name of the new
frame. The parentFrame
argument is the name of the top-level frame to
which the new frame is attached. The T
is the
RigidTransform
object used to attach the new frame.
addFrame(___,
adds a new
frame to the side
)rb
object through a RigidTransfom
object that
has the specified orientation. Use a simscape.multibody.FrameSide
object to
specify the side
argument that specifies the orientation of the
RigidTransform
object.
addFrame(
adds a new frame to the rb
,newFrame
,subbodyConnector
)simscape.multibody.RigidBody
object, rb
, through the subbody
connector, subbodyConnector
. The subbodyConnector
argument is a two-element path.
Note that the subbody must be a RigidBody
object that has at least two
connectors. The connector used to attach the new frame must not be the connector that has
already connected to the structure tree of the rb
object.
Input Arguments
Version History
Introduced in R2022a