Main Content

bodyInfoFromJoint

Import information for given joint name

Description

info = bodyInfoFromJoint(importInfo,jointName) returns the joint information 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 joint in the rigidBodyTree object that was created 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: 'Joint01'

Data Types: char | string

Output Arguments

collapse all

Import information for specific component, specified 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