Main Content

bodyInfo

Import information for body

Description

info = bodyInfo(importInfo,bodyName) returns the import information for a body in a rigidBodyTree object that is created 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 body in the rigidBodyTree object that was created 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: 'Body01'

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