Main Content

subtree

Create subtree from robot model

Description

newSubtree= subtree(robot,bodyname)creates a new robot model using the parent name of the body specified bybodynameas the base name. All subsequently attached bodies (including the body withbodynamespecified) are added to the subtree. The originalrobotmodel is unaffected.

Input Arguments

collapse all

Robot model, specified as arigidBodyTreeobject.

Body name, specified as a string scalar or character vector. This body must be on the robot model specified inrobot.

Data Types:char|string

Output Arguments

collapse all

Robot subtree, returned as arigidBodyTreeobject. This new subtree uses the parent name of the body specified bybodynameas the base name. All bodies that are attached in the previous robot model (including the body withbodynamespecified) are added to the subtree.

Extended Capabilities

版本历史

Introduced in R2016b