addFrameVariables
Create kinematic variables from select frame pair in
KinematicsSolver object
Syntax
Description
addFrameVariables(
creates a set of frame variables for a pair of frames. One of the frames serves as the
follower and the other serves as the base. These frame variables share a group name, which
must be a valid MATLAB® variable name, and correspond to a position or velocity relationship between
the base and follower frames.ks,groupName,type,base,follower)
Use the type argument to specify the relationship for frame
variables. There are four types: Translation,
Rotation, LinearVelocity, and
AngularVelocity. The base and
follower arguments must be full paths to frame ports in the model.
The function outputs a table that includes all frame variables. Each row of the table
includes ID, path from the root to the base and follower frames, and unit for its numerical
value of a frame variable. The IDs of the frame variables have the form
groupName.type.primitiveComponent.
Input Arguments
Name-Value Arguments
Version History
Introduced in R2019a