MATLAB: Import robot as a rigidbody tree from simscape model

importrobotMATLABrigidbodytreerobotic system toolboxroboticsRobotics System ToolboxSimscapeSimscape Multibodysimulink

Recently I am trying to import a simscape multibody robot model to a rigidbodytree using 'importrobot' function. Following the documentation, the syntax is [robot,RobotInfo]=importrobot(gcs). I have opened my simscape model by the way. But error occured: "Too many output arguments"
Is it because importrobot from simscape model is not supported? But the documentation clearly states it can. I am using 2018a by the way.

Best Answer

Actually, if you look at the Robotics System Toolbox release notes, the ability to use importrobot on a model is only out in R2018b:
This might have been misleading because importrobot worked with URDF files as of R2017a.
- Sebastian