Create subtree from robot model
robot— Robot model
Robot model, specified as a
newSubtree— Robot subtree
Robot subtree, returned as a
rigidBodyTree object. This new subtree uses
the parent name of the body specified by
bodyname as the base name.
All bodies that are attached in the previous robot model (including the body with
bodyname specified) are added to the subtree.