Main Content

bodyInfoFromBlocks

Import information for block name

Description

bodyInfo = bodyInfoFromBlocks(importInfo,blockName) returns the rigid body information of a Simscape™ Multibody™ block from the rigid body tree import information obtained by using the importrobot function. Specify the rigidBodyTreeImportInfo object from the import process.

Input Arguments

collapse all

Robot import information, specified as a rigidBodyTreeImportInfo object. This object is returned when you use the importrobot function.

Name of a block in the Simscape Multibody model that was imported using the importrobot function, specified as a character vector or string scalar. Partial string matching is accepted and returns a cell array of structures that match the partial string.

Example: 'Prismatic Joint 2'

Data Types: char | string

Output Arguments

collapse all

Import information for specific component, returned as a structure or cell array of structures. This structure contains the information about the imported blocks from Simscape Multibody and the associated components in the rigidBodyTree object. The fields of each structure are:

  • BodyName — Name of the body in the rigidBodyTree object.

  • JointName — Name of the joint associated with BodyName.

  • BodyBlocks — Blocks used from the Simscape Multibody model.

  • JointBlocks — Joint blocks used from the Simscape Multibody model.

Version History

Introduced in R2018b