Main Content


Import information for block name

Since R2018b


info = bodyInfo(importInfo,blockName) returns the import information for a block in a Simscape™ Multibody™ model that is imported from calling importrobot. 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 importrobot.

Name of a block in the Simscape Multibody model that was imported using importrobot, 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